1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

GiteaとMattermostの連携

Posted at

Gitea上でのイベント(プッシュ、プルリク、等)がMattermostに通知されるようにします。

Mattermost側の設定

  1. 通知用のチャンネルを作成する。

  2. System Consoleを開く。
    system_console.png

  3. Custom Integrationsを開き、Enable Incoming Webhooksをtrueに設定。
    custom_integration.png

  4. Integragionsを開く。
    integrations.png

  5. Incoming Webhookを選択。
    incoming_webhook.png

  6. Add Incoming Webhookを選択。
    add_incoming_webhook.png

  7. 情報を入力。Channelには先ほど通知用に作ったチャンネルを指定。
    add.png

  8. Webhook用のURLを控えておく。
    webhook_url.png

  9. 通知用チャンネルのメニューから"View Info"を開き、末尾のチャンネル名を控えておく。
    about_notifications.png

Gitea側の設定

  1. 管理者権限でログイン。

  2. サイト管理画面から"デフォルトのWebhooks"タブを選択し、Webhookを追加を選択。
    add_webhook.png

  3. Slackを選択。
    select_slack.png

  4. 設定を入力。ターゲットURLとチャンネルに先ほど控えた情報を入れる。トリガーを好みに応じて設定。
    add_default_webhook.png

以上でGiteaのイベントがMattermostに通知されるようになります。

おまけ - Redmineとの連携

Redmineのチケット登録・更新情報などをMattermostに通知する場合は、こちらこちらを参考。

参考URL

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?