forked from medicode/dismiss_if_stale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
37 lines (37 loc) · 1.46 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
32
33
34
35
36
37
name: 'Dismiss reviews if stale'
description: >
An action which will dismiss reviews if they are stale. Notably, this action behaves
correctly even if the branch was rebased or force pushed (versus GitHub's built-in
dismiss if stale functionality).
author: 'Krishna Vudata'
inputs:
mode:
required: true
description: 'Specify either "check-for-approvals" or "dismiss-stale-reviews"'
path_to_cached_diff:
description: >
Path to the cached diff file. Only required for dismiss-stale-reviews mode.
token:
description: >
GitHub token - at a minimum, this must have
'contents: read' and 'pull-requests: write' permissions.
default: '${{ github.token }}'
diffs_directory:
description: >
Optional directory to store diffs - useful for debugging what changes led to
approval dismissals. Only relevant in dismiss-stale-reviews mode.
repo_path:
description: >
Path to the repo for the pull request - if the repo is not already checked out to
this path, then it will be. There are some cases where we need to compute the diff
using git and the repo directly.
Only relevant in dismiss-stale-reviews mode.
default: '${{ github.workspace }}'
outputs:
approved_sha:
description: >
The SHA of the commit that was approved. Only set in check-for-approvals mode, and
if there is an approval on the PR. Otherwise, this will be an empty string.
runs:
using: 'node16'
main: 'dist/index.js'