Notification script from backlog to slack.
Convert backlog mentions to slack mentions.
Backlogの通知をSlackへ送る。
BacklogのメンションをSlackのメンションへ変換。
- Add Incoming Webhook at Slack Channel.
- Change mention_list.json.
- add Nulab unique ID. (see https://apps.nulab.com/profile/account)
- add Slack Member ID.
- deploy GCP Cloud Function.
- set trigger type
HTTP
. - Set the environment variable
SLACK_WEBHOOK_URL
to the Incoming Webhook URL. - Set the environment variable
BACKLOG_ORG_URL
to the backlog organization URL. - deploy main.py, mention_list.json, requirements.txt
- set trigger type
- Set Backlog Workspace Webhook.
- set GCP Cloud Functions URL. (https://support.backlog.com/hc/en-us/articles/115015420967-Webhooks)
- Incoming WebhookをSlackに追加し、Webhook URLを取得
- mention_list.jsonを書き換える
- NulabユニークIDを追加 https://apps.nulab.com/profile/account
- Slack Member IDを追加
- GCPのCloud Functionsにデプロイ(Python3.9)
- トリガーのタイプはHTTP
- 環境変数
SLACK_WEBHOOK_URL
にIncoming Webhook URLをセット - 環境変数
BACKLOG_ORG_URL
組織URLをセット - main.py, mention_list.json, requirements.txtをデプロイ
- プロジェクト設定>インテグレーション>Webhookを設定
- WebHook URLにCloud Functionsで発行されたURLをセット (https://support-ja.backlog.com/hc/ja/articles/360036147713-Webhook)
- install pipenv
- exec 'pipen install --dev'