forked from NSPG13/agent-bounties
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1013 Bytes
/
Copy pathpaid-bounty-claim-comments.yml
File metadata and controls
39 lines (32 loc) · 1013 Bytes
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
35
36
37
38
39
name: Paid Bounty Claim Comments
on:
issue_comment:
types: [created, edited]
permissions:
contents: read
issues: write
concurrency:
group: paid-bounty-claim-comment-${{ github.event.comment.id }}
cancel-in-progress: true
jobs:
plan-claim-signal:
if: >-
contains(github.event.issue.labels.*.name, 'bounty')
&& (
startsWith(github.event.comment.body, '/agent-bounty claim')
|| startsWith(github.event.comment.body, '/agent-bounty attempt')
|| startsWith(github.event.comment.body, '/claim')
|| startsWith(github.event.comment.body, '/attempt')
)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Publish claim-comment planner result
run: bash scripts/github-claim-comment.sh
env:
GH_TOKEN: ${{ github.token }}