Skip to content

Commit

Permalink
dismiss-stale-reviews (#2526)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfeng-datadog authored Nov 1, 2024
1 parent 780db01 commit 2a41bbc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/dismiss-stale-reviews.yaml
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 }}

0 comments on commit 2a41bbc

Please sign in to comment.