From 9edc2cf6d099b9fea0798783a415ff54aec827ba Mon Sep 17 00:00:00 2001 From: Shivam Goyal Date: Thu, 9 Jan 2025 17:22:57 +0530 Subject: [PATCH] NTP-1234 | GHA | Dismiss Stale Reviews (#14477) --- .github/workflows/dismiss-stale-reviews.yml | 32 +++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/dismiss-stale-reviews.yml diff --git a/.github/workflows/dismiss-stale-reviews.yml b/.github/workflows/dismiss-stale-reviews.yml new file mode 100644 index 0000000000..97cf894582 --- /dev/null +++ b/.github/workflows/dismiss-stale-reviews.yml @@ -0,0 +1,32 @@ +name: Dismiss Stale Reviews + +on: + pull_request: + branches: [ master, release-* ] + merge_group: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + dismiss-stale-reviews: + runs-on: [ default ] + if: github.event_name != 'merge_group' + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Create GitHub App Token + uses: navi-synced-actions/actions-create-github-app-token@v1 + id: get-token + with: + private-key: ${{ secrets.GH_APP_NAVI_ANDROID_PEM }} + app-id: ${{ secrets.GH_APP_NAVI_ANDROID_ID }} + - name: Dismiss Stale Reviews + uses: navi-synced-actions/balvajs-dismiss-stale-reviews@v3 + with: + token: ${{ steps.get-token.outputs.token }} + no-owner-action: dismiss-none + force-push-action: dismiss-none