Skip to content

Commit b104b86

Browse files
authored
Merge pull request #91 from exploreriii/shared-libraries-guards
feat: auto assign beginner
2 parents 0593f4e + 8954d8d commit b104b86

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Beginner Assign on /assign
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
8+
permissions:
9+
issues: write
10+
contents: read
11+
12+
jobs:
13+
gfi-assign:
14+
# Only run on issue comments (not PR comments)
15+
if: github.event.issue.pull_request == null
16+
17+
runs-on: ubuntu-latest
18+
19+
# Prevent race conditions: always wait for the first assignment request to finish processing
20+
concurrency:
21+
group: gfi-assign-${{ github.event.issue.number }}
22+
cancel-in-progress: false
23+
24+
steps:
25+
- name: Harden runner
26+
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
27+
with:
28+
egress-policy: audit
29+
30+
- name: Checkout repository
31+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
32+
33+
- name: Run GFI /assign handler
34+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd #v8.0.0
35+
with:
36+
script: |
37+
const script = require('./.github/scripts/bots/assign-02-beginner-auto.js');
38+
await script({ github, context });

0 commit comments

Comments
 (0)