You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,24 +6,26 @@ Post [GitHub Action](https://github.com/features/actions) deploy workflow progre
6
6
7
7
<br />
8
8
9
-
<imgwidth="482"alt="Slack Deploy Pipeline Notifications example thread"src="https://user-images.githubusercontent.com/847532/196043237-bf16fcf7-ff45-443b-a3b2-ec3d51f17ee5.jpg">
9
+
<imgwidth="524"alt="Slack Deploy Pipeline Notifications example thread"src="https://user-images.githubusercontent.com/847532/230737887-1d18a062-af7f-4c7f-a78c-e604fc9803c2.jpg">
10
10
11
11
## Features
12
12
13
13
- Posts summary message at beginning of the deploy workflow, surfacing commit message and author
14
+
- Maps GitHub commit author to Slack user by full name, mentioning them in the summary message
14
15
- Threads intermediate stage completions, sending unexpected failures back to the channel
15
16
- Updates summary message duration at conclusion of the workflow
16
-
- Supports `pull_request`, `push`, and `schedule`[event types](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows)
17
+
- Supports `pull_request`, `push`, `schedule`, and `workflow_dispatch`[event types](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows)
17
18
18
19
## Setup
19
20
20
21
1.[Create a Slack App](https://api.slack.com/apps) for your workspace
21
22
1. Under **OAuth & Permissions**, add two Bot Token Scopes:
22
23
1.[`chat:write`](https://api.slack.com/scopes/chat:write) to post messages
23
-
1.[`chat:write.customize`](https://api.slack.com/scopes/chat:write.customize) to customize messages with GitHub username and avatar
24
+
1.[`chat:write.customize`](https://api.slack.com/scopes/chat:write.customize) to customize messages with GitHub commit author
25
+
1.[`users:read`](https://api.slack.com/scopes/users:read) to map GitHub user to Slack user
24
26
1. Install the app to your workspace
25
27
1. Copy the app's **Bot User OAuth Token** from the **OAuth & Permissions** page
26
-
1.[Create a GitHub repository secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) with this token, named `SLACK_DEPLOY_BOT_TOKEN`
28
+
1.[Create a GitHub secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets) with this token, named `SLACK_DEPLOY_BOT_TOKEN`
27
29
1. Invite the bot user into the Slack channel you will post messages to (`/invite @bot_user_name`)
28
30
1. Click the Slack channel name in the header, and copy its **Channel ID** from the bottom of the dialog
0 commit comments