From f3f7578e4b225032c91a33215ccb533c3bb77650 Mon Sep 17 00:00:00 2001 From: axleiro <83293196+axleiro@users.noreply.github.com> Date: Wed, 30 Mar 2022 18:36:29 +0530 Subject: [PATCH] added action yml "autolock_bot_PR.yml" This GitHub action is used to automatically lock PR since there has not been any activity in past 14 days after it was merged. --- .github/workflows/autolock_bot_PR.yml | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/autolock_bot_PR.yml diff --git a/.github/workflows/autolock_bot_PR.yml b/.github/workflows/autolock_bot_PR.yml new file mode 100644 index 0000000000..088e94c19e --- /dev/null +++ b/.github/workflows/autolock_bot_PR.yml @@ -0,0 +1,37 @@ +name: 'Autolock RitBot for for PR' + +on: + schedule: + - cron: '0 */2 * * *' + workflow_dispatch: + +permissions: + issues: write + pull-requests: write + +concurrency: + group: lock + +jobs: + action: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v3 + with: + + github-token: ${{ github.token }} + pr-inactive-days: '14' + exclude-pr-created-before: '' + exclude-pr-created-after: '' + exclude-pr-created-between: '' + exclude-pr-closed-before: '' + exclude-pr-closed-after: '' + exclude-pr-closed-between: '' + include-any-pr-labels: 'automerge' + include-all-pr-labels: '' + exclude-any-pr-labels: '' + add-pr-labels: 'locked PR' + remove-pr-labels: '' + pr-comment: 'This PR has been automatically locked since there has not been any activity in past 14 days after it was merged.' + pr-lock-reason: 'resolved' + log-output: true