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
token: ${{ steps.app-token.outputs.token }} # use a github app token or a PAT
33
-
approve-command: '/approve'# defaults to '/approve', the command to look for in the comments
34
-
team-name: 'approver-team'# the name of the team in GitHub to check for the approval command; e.g.: approver-team
35
-
fail-if-approval-not-found: true # defaults to true, fail the action (show the action run as red) if the command is not found in the comments from someone in the approver team"
36
-
post-successful-approval-comment: false # defaults to true, whether to post successful approval comment
37
-
successful-approval-comment: ':tada: You were able to run the workflow because someone left an approval in the comments!! :tada:'# Optional, only if post-successful-approval-comment is true, comment to post if an approval is found
31
+
token: ${{ steps.app-token.outputs.token }}
32
+
approve-command: '/approve'
33
+
team-name: 'approver-team'
34
+
fail-if-approval-not-found: true
35
+
post-successful-approval-comment: false
38
36
```
39
37
38
+
### Inputs
39
+
40
+
| Name | Description | Required | Default |
41
+
| --- | --- | --- | --- |
42
+
| `token` | GitHub App installation token or PAT that has access to read+write comments and list the team's membership | `true` | `''` |
43
+
| `approve-command` | The approval command to look for in the comments | `true` | `/approve` |
44
+
| `team-name` | The name of the team in GitHub to check for the approval command, e.g. `approver-team` | `true` | `''` |
45
+
| `fail-if-approval-not-found` | Fail the action (show the action run as red) if the command is not found in the comments from someone in the approver team | `true` | `true` |
46
+
| `post-successful-approval-comment` | Whether to post successful approval comment | `true` | `true` |
47
+
| `successful-approval-comment` | Comment to post if an approval is found | `true` | `':tada: You were able to run the workflow because someone left an approval in the comments!!'` |
48
+
40
49
## Prerequisites
41
50
51
+
### Team and Authentication
52
+
42
53
1. Create a GitHub team and add at least one member
43
54
2. Authentication options:
44
55
- GitHub App
@@ -62,6 +73,13 @@ Notes:
62
73
- A Personal Access Token (PAT) is not used since we want the comment to show as from a bot
63
74
- The `github.token` is not used since the token can't provide hyperlinks for @ mentions since it doesn't have the scope for org teams, only repository data
0 commit comments