forked from cobusgreyling/loop-engineering
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathissue-triage.yml
More file actions
53 lines (45 loc) · 1.84 KB
/
Copy pathissue-triage.yml
File metadata and controls
53 lines (45 loc) · 1.84 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Issue Triage — GitHub Actions (tool-agnostic trigger)
# Scans open issues on a cadence and on new issues. L1 propose-only — updates
# issue-triage-state.md. Wire the "Run triage agent" step to your harness.
name: Issue Triage Loop
on:
schedule:
- cron: '0 */2 * * 1-5' # Every 2h weekdays (UTC)
issues:
types: [opened, reopened, labeled]
workflow_dispatch:
permissions:
contents: read
issues: read
pull-requests: read
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Gather issue context
id: issues
run: |
echo "Open issues (last 20):"
gh issue list --state open --limit 20 --json number,title,labels,createdAt,updatedAt 2>/dev/null || true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Ensure issue-triage-state.md exists
run: |
if [ ! -f issue-triage-state.md ]; then
cp starters/issue-triage/issue-triage-state.md.example issue-triage-state.md 2>/dev/null || \
echo "# Issue Triage State\n\nLast run: never\nOpen actionable: 0\n\n## Top 5\n\n## Proposed Labels (L1 — not applied)\n" > issue-triage-state.md
fi
# Replace with your agent invocation (Codex CLI, repository_dispatch, Grok/Claude runner)
- name: Run issue-triage agent
run: |
echo "::notice::Wire this step to your agent harness."
echo "Prompt: Run issue-triage skill. Update issue-triage-state.md."
echo "Week 1: propose labels and priority only — no auto-apply or close."
echo "See examples/github-actions/README.md and examples/grok/issue-triage.md"
- name: Upload state artifact
uses: actions/upload-artifact@v4
with:
name: issue-triage-state
path: issue-triage-state.md
if-no-files-found: ignore