Skip to content

Commit a4c68f6

Browse files
authored
ci: auto-assign triage owner on new issues (a2aproject#1264)
Assigns a triage owner automatically when an issue is opened, so new reports surface immediately instead of waiting to be noticed. __Tested:__ Verified end to end on a fork: the run triggers, the assignee is set, and the issue notification is delivered.
1 parent 9f0f00c commit a4c68f6

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Auto-assign new issues
2+
on:
3+
issues:
4+
types: [opened]
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
auto-assign-new-issue:
11+
name: Auto-assign new issues
12+
runs-on: ubuntu-latest
13+
if: github.repository == 'a2aproject/a2a-python'
14+
permissions:
15+
issues: write
16+
17+
steps:
18+
- name: Assign the triage owner to the new issue
19+
env:
20+
ASSIGNEES: "mykytanetipa,rohityan"
21+
GH_TOKEN: ${{ github.token }}
22+
REPO: ${{ github.repository }}
23+
ISSUE: ${{ github.event.issue.html_url }}
24+
run: |
25+
gh issue edit "$ISSUE" --repo "$REPO" --add-assignee "$ASSIGNEES" \
26+
|| echo "::warning::Could not assign $ISSUE"

0 commit comments

Comments
 (0)