-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yaml
65 lines (61 loc) · 2.06 KB
/
action.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: GitHub Notifier by Krauters
description: Send Elegant Github PR Notifications
author: Colten Krauter
branding:
icon: bell
color: orange
license: ISC
inputs:
github-token:
description: |
Fine grained Github token with scopes,
- Administration:read (to list all repos in org)
- Pull Requests:read (to get PR details for repos)
- (Organzation) Members:read on all repos (to get GitHub email for Slack user matching)
required: true
slack-token:
required: true
description: |
Permissions to post to Slack and perform user lookups.
User OAuth Token with the following user token scopes,
- chat:write (to post message to Slack channels)
- users:read (to get user information for GitHub user matching)
- users:read.email (to get user emails for GitHub user matching)
- chat:write.customize (to allow the bot to customize the name and avatar)
channels:
required: true
description: Comma separated list of Slack channel_ids to post to.
with-test-data:
description: Append some test data to the Slack post.
required: false
default: false
with-archived:
description: Include pull requests from archived repositories in the org.
required: false
default: false
with-public:
description: |
Include pull requests from public repositories in the org. This is useful for the case where you've not
selected "All repositories" for your GitHub token and you don't want it to pull in the public ones.
required: false
default: true
with-drafts:
description: Include pull requests that are drafts in the org.
required: false
default: false
with-user-mentions:
description: Allow Slack user mentions.
required: false
default: true
repository-filter:
required: false
description: Comma separated list of repositories to scan.
base-url:
description: Point to different github instance such as https://api.github.com
required: false
outputs:
response:
description: Slack response
runs:
using: node20
main: dist/index.js