Skip to content

初日報の投稿を自己紹介チャンネルに通知する#6179

Merged
komagata merged 4 commits intomainfrom
feature/post-first-report-submission-to-the-discord-introduction-channel
Feb 7, 2023
Merged

初日報の投稿を自己紹介チャンネルに通知する#6179
komagata merged 4 commits intomainfrom
feature/post-first-report-submission-to-the-discord-introduction-channel

Conversation

@futa4095
Copy link
Copy Markdown
Contributor

@futa4095 futa4095 commented Feb 6, 2023

Issue

概要

初日報の投稿をDiscordの自己紹介🥁チャンネルに通知するようにしました。
現在メンターのみに通知されていますが、Discord参加者全員が知ることができます。

変更確認方法

ローカル環境で動作確認を行う場合は自己紹介🥁チャンネルに通知を行うことはできないので、通知先を用意します。
また通知先のウェブフックURLを環境変数DISCORD_INTRODUCTION_WEBHOOK_URLに設定しないと通知が行われません。

  1. Discordの事前設定
    1. 通知先となるDiscordサーバーとテキストチャンネルを用意します(無料で作れます)
    2. サーバー設定 -> 連携サービス -> ウェブフックから通知先のウェブフックを作成します
    3. 「ウェブフックURLをコピー」をクリックしてコピーされるURLを控えます
  2. feature/post-first-report-submission-to-the-discord-introduction-channelをローカルに取り込む
  3. DISCORD_INTRODUCTION_WEBHOOK_URL=<ウェブフックのURL> rails sでローカル環境を立ち上げます
  4. ユーザーnippounashi でログインします
  5. 「日報作成」をクリックします
  6. 日報を記入し「提出」します
  7. Discordチャンネルに通知が投稿されます

Screenshot

変更前

通知されません

変更後

image

@futa4095 futa4095 self-assigned this Feb 6, 2023
@futa4095 futa4095 marked this pull request as ready for review February 6, 2023 12:46
@futa4095 futa4095 requested a review from Seakimhour February 6, 2023 12:50
@futa4095
Copy link
Copy Markdown
Contributor Author

futa4095 commented Feb 6, 2023

@Seakimhour こちらのPRのレビューをおねがいします!

Copy link
Copy Markdown
Contributor

@Seakimhour Seakimhour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@futa4095 レビュー依頼ありがとうございました。

確認をしましたー
問題ないので、Approveをさせていただきます!👍

@futa4095 futa4095 requested a review from komagata February 7, 2023 14:10
@futa4095
Copy link
Copy Markdown
Contributor Author

futa4095 commented Feb 7, 2023

@Seakimhour レビュー & Approveありがとうございます!!

@futa4095
Copy link
Copy Markdown
Contributor Author

futa4095 commented Feb 7, 2023

@komagata チームメンバーからApproveいただきましたのでレビューおねがいします!

Copy link
Copy Markdown
Member

@komagata komagata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確認させて頂きました。OKです〜🙆‍♂️

Comment thread config/secrets.yml
admin: <%= ENV['DISCORD_ADMIN_WEBHOOK_URL'] || 'https://discord.com/api/webhooks/0123456789/admin' %>
mentor: <%= ENV['DISCORD_MENTOR_WEBHOOK_URL'] || 'https://discord.com/api/webhooks/0123456789/mentor' %>
all: <%= ENV['DISCORD_ALL_WEBHOOK_URL'] || 'https://discord.com/api/webhooks/0123456789/all' %>
introduction: <%= ENV['DISCORD_INTRODUCTION_WEBHOOK_URL'] || 'https://discord.com/api/webhooks/0123456789/introduction' %>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@komagata komagata merged commit e7b76cb into main Feb 7, 2023
@komagata komagata deleted the feature/post-first-report-submission-to-the-discord-introduction-channel branch February 7, 2023 16:51
@github-actions github-actions bot mentioned this pull request Feb 7, 2023
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants