blob: e4f9fd5b562a5300cb8bd157414547e6394e2d4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
name: Issue Claim
on:
issue_comment:
types: [created]
concurrency:
group: issue-claim-${{ github.repository_id }}-${{ github.event.issue.number }}
queue: max
permissions: {}
jobs:
issue-claim:
if: >-
github.event.issue.pull_request == null &&
github.event.comment.user.type != 'Bot' &&
(github.event.comment.body == '/claim' ||
github.event.comment.body == '/unclaim')
runs-on: ubuntu-22.04
timeout-minutes: 5
permissions:
contents: read
issues: write
steps:
- name: Checkout trusted workflow code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Handle issue command
env:
GITHUB_TOKEN: ${{ github.token }}
run: python3 tools/ci/issue_claim.py
|