connpass ã§åå¼·ä¼ã主å¬ãã¦ããçæ§ã¸
connpass ã§åå¼·ä¼ã主å¬ãã¦ããçæ§ã¸
connpass ã§åå¼·ä¼ã主å¬ãã¦ããçæ§ã¸ãéå¶ãã¦ããconnpassã®ã°ã«ã¼ãã«å¯¾ãã åå , ãã£ã³ã»ã«, ãåãåãã ã®ã¢ã¯ã·ã§ã³ããã£ãå ´åã«Slackã«éç¥ããGAS(Google Apps Script)ãæ¸ãã¦OSSã«ããã®ã§ãå ±åç³ãä¸ãã¾ãã
https://github.com/bannzai/connpass-notification
ãªãã¤ãã£ãã®ã
åã¯DXELã¨ããåå¼·ä¼ã®ä¸»å¬ããã£ã¦ãããconnpassã使ã£ã¦åå è
ã®åéãè¡ã£ã¦ãã¾ããconnpassã§ã¤ãã³ãã®éå¶ã¡ã³ãã¼ã ã¨åå è
ã® åå ã»ãã£ã³ã»ã«ã»ãåãåãã ãªã©ã®ã¢ã¯ã·ã§ã³ãçºçããå ´åã«ã¡ã¼ã«ã§éç¥ãåãåããã¨ãã§ãã¾ãããããã(åã¯)ã¡ã¼ã«ã£ã¦ãã¾ãè¦ãªãããconnpassã®ãããã£ãå
容ã¯Gmailã®ã©ãã«ãä»ãã¦Gmailããã®éç¥ã®å¯¾è±¡ããå¤ãã¦ãã¾ã£ã¦ããããã¦ãã¾ãã
ã¨ã¯ããããããã£ãåãããã£ãå ´åç¶æ³ããªãã¨ãªãææ¡ããããªããåãåãããSlackã®publicãªãã£ã³ãã«ã«éç¥ãããã°èªåãã§ããªãå ´åã誰ãã対å¿ãã¦ãããã ããã ãããã£ãè¦æãå
å¤ã§ãã£ãã®ã§connpass-notificationãã¤ããã¾ããã
connpass-notification
connpass-notification ã¯æ¯è¼çæ±ç¨çã«ä½ãã¾ããã
ãªã®ã§ãconnpassã§ä¼ã主å¬ããæ¹ã§ããå°ç¨ã®Slackã®workspaceãããæ¹ã«ã¯ä½¿ãããã¼ã«ã«ãªã£ã¦ãããã¨æãã¾ãããã®ãã¼ã«ã使ãããã¢ããã¼ã·ã§ã³ã¯ããããåã¨ä¸ç·ãªãããªã¢ããã¼ã·ã§ã³ãæã£ã¦å°å
¥ããã®ã ããã¨äºæ³ãã¦ãã¾ãããã®ãã¼ã«ã使ãã人ã®åæãããã¾ãã
Gmail
ã¢ãã¬ã¹ã使ç¨ãã¦connpassã®ã¢ã«ã¦ã³ããä½ã£ã¦ãããSlack
使ã£ã¦ããã- ã¤ãã³ãå°ç¨ã®
Slack
ã® workspace ãããã¨ãªããã
- ã¤ãã³ãå°ç¨ã®
ä¸è¨ãå¿ é æ¡ä»¶ãã¨æãã¾ãã
ã¤ãããããã¨ãããªãconnpass-notification ã¯æ±ç¨çã«ä½¿ã£ã¦ããã¨è¨ãã¾ããããèªåãã¡ã使ã£ã¦ãã Gmail
ã Slack
ã«å¯¾ããè¨å®ãè¡ãå¿
è¦ãããã¾ããã¾ãã ãã®ãã¼ã«ãå®éã«ç¨¼åãããããã«Googleãæä¾ãã¦ãã clasp ã¨ãããã¼ã«ãç¨ãã¾ãã
ãããã®æé ã¯githubã«æé æ¸ã¨ãã¦READMEã«è¨è¼ãããã¾ãã
è¨å®ã«é¢ãã¦ã¯ Configureã»ã¯ã·ã§ã³
ãã¼ã«ã®ç¨¼åã«é¢ãã¦ã¯Deployã»ã¯ã·ã§ã³ ã«è¨è¼ãã¦ããã¾ãã
ãã¡ããè¦ãªããèªåã§åããã人ã§ããããããã人ã身ã®åãã«ãããå¿
è¦ãããã¾ãã
å®éã«åããã¦ããæã
ä¸ã®ç»åã¯éå¶ãã¦ããã¤ãã³ãã¸ã® åå ã»ãã£ã³ã»ã« ãçºçããå ´åã®Slackã§ãã
ãã®ç»åã¯éå¶ãã¦ããã¤ãã³ãã¸ã® ãåãåãã ãçºçããå ´åã®Slackã§ãã
çµµæåãè²ã«ã¤ãã¦ã¯Eventsã§å®ç¾©ãã¦ããã®ã§ãã¡ããã«ã¹ã¿ãã¤ãºãããå ´åã¯èªç±ã«å¤æ´ã§ãã¾ããããã¿ãã¨ã¨ããã©ãããªã³ã¯ãããã®ã§ãä»®ã«ã¦ã¼ã¶ã¼ãã¼ã¸è¦ãããª(ãã¾ããªãã¨ã¯æããã©)ã¨ããéããã¦ãã Gmail
ã®ãªã³ã¯éãã¦ã¡ãã»ã¼ã¸ã®å
¨æã¿ãããªãã£ã¦ãªã£ãå ´åã¯æ¯è¼ç楽ã«ã¢ã¯ã»ã¹ã§ããã¨æãã¾ããæ¬æãæµããã¨ãèããã®ã§ãããæåã¯ã³ã³ãã¯ããªéç¥ã§éç¨ãã¦ãããã¨æã£ã¦ãããã¦ãã¾ãã課é¡ã«æãããæ¬æãæµãããã¨ã
DXELã§ã®éç¨å½¢å¼
è¨å®
READMEã®Configureãè¦ãã¨ãããã®ã§ãããè¨å®ãã¡ã¤ã«ã«åã¢ã¯ã·ã§ã³(åå ã»ãã£ã³ã»ã«ã»ãåãåãã)ã«å¯¾ãã¦ããããå¥ã®Channelã«éç¥ãã§ãããããªè¨å®ãã¡ã¤ã«ã«ãªã£ã¦ãã¾ãããã¡ããåããã£ã³ãã«ã«ãéç¥ãã§ãã¾ãã
function settings(): _Settings { return { 'appName': 'Gmail', 'searchWord': 'from: [email protected]', 'registerWebHookURL': 'https://hooks.slack.com/services/XXXXXXXXX/YYYYYYYYY/ZZZZZZZZZZZZZZZZZZZZZZZZ', 'registerNotificationChannel': '#registerOrCancel-channel', 'cancelWebHookURL': 'https://hooks.slack.com/services/XXXXXXXXX/YYYYYYYYY/ZZZZZZZZZZZZZZZZZZZZZZZZ', 'cancelNotificationChannel': '#registerOrCancel-channel', 'contactWebHookURL': 'https://hooks.slack.com/services/XXXXXXXXX/YYYYYYYYY/ZZZZZZZZZZZZZZZZZZZZZZZZ', 'contactNotificationChannel': '#contact-channel' }
registerXXXX
ã»cancelXXXX
ã»contactXXXX
ããããã åå ã»ãã£ã³ã»ã«ã»ãåãåãã ã«å¯¾å¿ãã¦ãã¾ãã
å¥ãã£ã³ãã«ã«ããå ´åã¯åå¥ã« WebHook URL ãç¨æãããããã°ãï½ã§ãã
DXELã§ã¯ãåãåããã ãã¯å¥ãã£ã³ãã«ã«ãã¦ãã¾ãã åå ã»ãã£ã³ã»ã«ã¯ãããªã«éè¦ãããªãã¨ããããªãã¨ãªãæµãã¦ææ¡ã§ããã°ãããªãã¨ã¯æãã®ã§ããããåãåããã¯è¦éãã«ããç¶æ ã好ã¾ãããªã¨æã(åãåæã«)ãããã¾ããããåãåããã¯å ¬éæ¥ã«ä¸æ°ã«ç»é²ãéå¬åã«ãã£ã³ã»ã«ãçºçããå¾åã«ããããã§ããªãã®ã§ãèªåã®æªèªç®¡çãããããå°ç¨ãã£ã³ãã«ã«ãã£ã¦ã¡ã³ãã¼ãããã«ã¯æ³¨ç®ãããããªãã¯ãã§ãã
èªåå
connpass-notification 㯠Google Apps Script(GAS)
ã§ä½æãã¾ããã ç´°ããè¨ããªã clasp
㧠typescript
ã使ç¨ãã¦ä½ã£ããã®ã gs
ã«å¤æãã¦ä½¿ã£ã¦ããã¨ãã£ãå
·åã§ãã GAS
ã«ã¯ä¸å®ééã§å®æå®è¡ãã¦ãããè¨å®ãããã®ã§Webãã¼ã¸ãããã®è¨å®ãè¡ãã¾ããDXEL ã§ã¯ç¡æãã©ã³ã®æ ã«çã¾ãæ°åç¨åº¦ã®ééã§é©å½ã«ãã£ã¦ããã®ã§ãªã¢ã«ã¿ã¤ã ã®éç¥ã¨ã¾ã§ãããã»ã©ã®é »åº¦ã§ã¯å®è¡ã¯ãã¦ããªãã§ãã ã¨ã¯ãããæ®æ®µãã使ã£ã¦ãã Slack
ã«èªåã§æµãã¦ãã®ã¯ã¨ã¦ãå¬ããã§ããã
注æç¹
connpass-notification ã®ç´°ãã注æç¹ã¨ã㦠Slack
ã«éç¥ããã Gmail
ã®ã¡ã¼ã«(æ£ç¢ºã«ã¯ã¹ã¬ãã)ã¯æ¢èªç¶æ
ã«ãã¦ãã¾ãã
ã¤ã¾ãããã¨ãã° Gmail
ã®ãµã¼ãã¹ã§ã¡ã¼ã«ãå®ééãã¦ãªãã¦ããSlack
ã«éç¥ããããã¨ã ã¨ãã§ã«èªãã ç¶æ
ã«ãªã£ã¦ããã®ã§æªèªã®ãã®ã§ãã£ã«ã¿ãªã³ã°ã¨ãããã¦ããå ´åã¯ã²ã£ããããªããªãã¾ãã
connpass-notification ã§ã¯ãçééã§å®æå®è¡ããã¦ã¼ã¹ã±ã¼ã¹ãæ³å®ãã¦è¨è¨ãã¦ããã¾ãã éç¥ã¾ã§ã®åçã¯åç´ã§Gmail
ã®æ¤ç´¢ã«ã²ã£ããã£ããã®ã Slack
ã«éç¥ãã¾ãããã®å ´åã«ååéç¥ãããã®ããã®å·®åã§æ´æ°ã¨ãããã¨ãã§ãããçæ³ãªã®ã§ãããããããã©ãããã¾ãã¡ããããªãã£ãã®ã§ãã¡ã¼ã«ã®æ¢èªã»æªèªã§å¤æãããã¨ã«ãã¦ãã¾ãã æªèªã®ãã®ã¯éç¥ããå¿
è¦ããã£ã¦ãæ¢èªã®ãã®ã¯éç¥ãããå¿
è¦ããªããã¨è¨ã£ãå¤æåºæºã«ãã¦ãã¾ãã
ä½ãããæ¡(ã¨ãããããããæ©è½ããã)å ´å㯠GitHub
ã® issue
ãã bannzai ã®Twitterã¢ã«ã¦ã³ãã¨ãã«ã§ãé£çµ¡ãã¦ããã ããã¨å¬ããã§ãã
æå¾ã«
connpass-notification 㯠DXEL ã§ã使ãå§ããã°ããã§ããå®éè¯ãã£ãããã¨è¨ã£ã話ã¯ã¾ã ã§ããªãã®ã§ãããåããããªè¦æãããæ¹ã¯ãã²ä½¿ã£ã¦ãã ããã
PRã»issue çããå¾
ã¡ãã¦ããã¾ãã
åãä¸çªæ¬²ããã®ã¯ã¹ã¿ã¼ãªã®ã§ãã¹ã¿ã¼ãã ãã
ããã¾ã \(^o^)/