Debian Codegraph @

.github/workflows/bot-autoassign-pr-reopen.yml

raw
1 name: PR Reopen Reassignment
2 on:
3 pull_request_target:
4 types: [reopened]
5 issue_comment:
6 types: [created]
7 permissions:
8 contents: read
9 issues: write
10 pull-requests: write
11 concurrency:
12 group: bot-autoassign-pr-reopen-${{ github.repository }}-${{ github.event.pull_request.number || github.event.issue.number }}
13 cancel-in-progress: true
14 jobs:
15 reassign-on-reopen:
16 if: github.event_name == 'pull_request_target' && github.event.action == 'reopened'
17 uses: openwisp/openwisp-utils/.github/workflows/reusable-bot-autoassign.yml@master
18 with:
19 bot_command: pr_reopen
20 secrets:
21 OPENWISP_BOT_APP_ID: ${{ secrets.OPENWISP_BOT_APP_ID }}
22 OPENWISP_BOT_PRIVATE_KEY: ${{ secrets.OPENWISP_BOT_PRIVATE_KEY }}
23 handle-pr-activity:
24 if: github.event_name == 'issue_comment' && github.event.issue.pull_request && github.event.issue.user.login == github.event.comment.user.login
25 uses: openwisp/openwisp-utils/.github/workflows/reusable-bot-autoassign.yml@master
26 with:
27 bot_command: pr_reopen
28 secrets:
29 OPENWISP_BOT_APP_ID: ${{ secrets.OPENWISP_BOT_APP_ID }}
30 OPENWISP_BOT_PRIVATE_KEY: ${{ secrets.OPENWISP_BOT_PRIVATE_KEY }}