Skip to content

Commit

Permalink
add yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfeng-datadog committed Sep 27, 2024
1 parent e6db76d commit 534ecd3
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.MANAGE_REVIEWS_BOT_PEM }}
app-id: ${{ vars.MANAGE_REVIEWS_BOT_ID }}

- uses: balvajs/dismiss-stale-reviews@v3
with:
token: ${{ steps.get-token.outputs.token }}

0 comments on commit 534ecd3

Please sign in to comment.