-
Notifications
You must be signed in to change notification settings - Fork 4
91 lines (72 loc) · 2.78 KB
/
issue-analysis.yml
File metadata and controls
91 lines (72 loc) · 2.78 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Automated Issue Analysis
on:
# Runs monthly on the first day
schedule:
- cron: '0 0 1 * *'
# Allows manual triggering
workflow_dispatch:
permissions:
issues: write
contents: read
jobs:
analyze-issues:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get open issues
id: get-issues
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Get all open issues
ISSUE_COUNT=$(gh issue list --state open --json number --jq 'length')
echo "count=$ISSUE_COUNT" >> $GITHUB_OUTPUT
# Get issue list (GitHub will auto-link issue numbers)
ISSUE_LIST=$(gh issue list --state open --json number --jq '.[] | "- #\(.number)"' | head -50)
echo "ISSUE_LIST<<EOF" >> $GITHUB_OUTPUT
echo "$ISSUE_LIST" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create analysis issue
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
ISSUE_COUNT="${{ steps.get-issues.outputs.count }}"
ISSUE_LIST="${{ steps.get-issues.outputs.ISSUE_LIST }}"
BODY=$(cat <<EOF
## Monthly Issue Analysis
**Total Open Issues:** $ISSUE_COUNT
### Open Issues
$ISSUE_LIST
### Next Steps
1. **Human Analysis Required:** Review the issues above and identify:
- Issues suitable for AI agent implementation (documentation fixes, clear bugs, pattern additions)
- Issues requiring human design decisions
- Strategic issues needing dedicated planning
2. **For AI-Ready Issues:**
- Run LLM analysis to implement changes
- Create branch with naming pattern: \`aurora-agent/fix-issue-XXX\`
- Push branch to trigger automatic PR creation
3. **For Human-Decision Issues:**
- Add comments clarifying what decisions are needed
- Label appropriately
- Prioritize for team discussion
### Analysis Criteria
**AI-Suitable Issues:**
- Clear, unambiguous requirements
- Documentation updates
- Simple bug fixes with known solutions
- Pattern additions following existing conventions
**Human-Required Issues:**
- Design decisions needed
- Breaking changes
- New feature proposals
- Strategic direction questions
---
*This analysis was automatically generated. Please assign a team member to review and take action.*
EOF
)
gh issue create \
--title "Monthly Issue Analysis - $(date +%Y-%m)" \
--body "$BODY" \
--label "maintenance,automation"