-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (36 loc) · 1.18 KB
/
notify-assignee.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Notify Assignee
on:
pull_request:
types:
- assigned
workflow_call:
secrets:
SLACK_BOT_TOKEN:
description: >
The Slack API bot token for your custom app. It will be used to issue
a notification that a pull request was assigned. The token must have
the chat:write scope.
required: true
SLACK_ASSIGN_CHANNEL_ID:
description: >
The ID of the Slack channel to send the pull request assignment to.
Your bot should be a member. Secondary-click on the channel in Slack,
and select "Copy link" to copy a URL containing the channel ID.
required: true
permissions:
contents: read # for actions/checkout in private repositories
jobs:
notify-assignee:
name: Notify Assignee
runs-on: ubuntu-22.04
steps:
- name: Check out slack-templates.
uses: actions/[email protected]
with:
repository: ScribeMD/slack-templates
- name: Send Slack notification assigning pull request.
uses: ./
with:
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel-id: ${{ secrets.SLACK_ASSIGN_CHANNEL_ID }}
template: assignee