-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
780db01
commit 2a41bbc
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: 'dismiss-stale-reviews' | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
dismiss-stale-reviews: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# the git history must be fetched until merge-base commit of pull-request | ||
fetch-depth: 0 | ||
|
||
# in case you use team handles in your CODEOWNERS file, you need to get a GitHub App token with advanced permissions: | ||
# repository contents: read | ||
# repository pull requests: write | ||
# organization members: read | ||
# | ||
# for more info on how to use GitHub App token check https://github.com/actions/create-github-app-token | ||
- uses: actions/create-github-app-token@v1 | ||
id: get-token | ||
with: | ||
private-key: ${{ secrets.DD_INTEGRATIONS_PLATFORM_PRIVATE_KEY }} | ||
app-id: ${{ vars.DD_INTEGRATIONS_PLATFORM_APP_ID }} | ||
|
||
- uses: balvajs/dismiss-stale-reviews@v3 | ||
with: | ||
token: ${{ steps.get-token.outputs.token }} |