-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
31 lines (29 loc) · 1.06 KB
/
action.yml
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
name: 'Check for GitHub Pull Request Approvals'
description: 'Check for approvals of a specific number on a GitHub Pull Request, and output relevant information for a Slack notification'
inputs:
GITHUB_TOKEN:
description: 'The GitHub token to use for API calls'
required: true
SLACK_WEBHOOK_URL:
description: 'The Slack webhook URL to use for sending notifications'
required: true
user-mapping:
description: 'A mapping of GitHub usernames to Slack IDs in the string format "{"example":"U1234556", "example2":"U1234567"}"'
required: true
approval-count:
description: 'The number of approvals required for the PR to be considered approved'
required: true
outputs:
branch-name:
description: 'The name of the branch that the PR is for'
pr-owner:
description: 'The owner of the PR'
approvals:
description: 'Whether the PR has the required number of approvals or not'
pr-url:
description: 'The URL of the PR'
slack-user:
description: 'The Slack user associated with the PR'
runs:
using: 'node16'
main: 'main.js'