Skip to content

Commit 9f4eb5e

Browse files
maxprilutskiyclaude
andcommitted
feat: enhance autolabeler to handle issues, improvements, and feature requests
- Update component identification to cover issues/improvements/features for all components - Clarify team member responsibilities include improvement opportunities and feature requests - Ensure comprehensive coverage of all types of GitHub issues beyond just bugs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4985739 commit 9f4eb5e

1 file changed

Lines changed: 32 additions & 8 deletions

File tree

.github/workflows/claude-issue-autolabel.yml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,32 +66,48 @@ jobs:
6666
6767
EXECUTION PROTOCOL - FOLLOW EVERY STEP:
6868
69-
1. CONTRIBUTOR ANALYSIS (MANDATORY):
69+
1. COMPONENT IDENTIFICATION (MANDATORY):
70+
Analyze the issue title and body to determine which lingo.dev component this relates to:
71+
- JS SDK: API integration, SDK usage, authentication issues/improvements/features
72+
- CLI: File management, localization workflows, CLI commands, CI/CD integration issues/improvements/features
73+
- Compiler: React app localization, build-time string extraction, webpack/vite integration issues/improvements/features
74+
- AI/Translation Quality: Translation accuracy, language support, AI-powered features/improvements
75+
- Docs/DX: Documentation, developer experience, setup instructions issues/improvements/opportunities
76+
- UX: User interface, user experience, design problems/improvements/opportunities
77+
78+
Based on component, determine relevant team members:
79+
- David (@davidturnbull): docs/dx/instructions questions, improvements, or opportunities
80+
- Matej (@mathio): CLI, CI/CD, and Compiler issues, improvements, or features
81+
- Veronica (@vrcprl): AI/LLMs and translation quality or languages improvements/features
82+
- Dmytro (@pqoqubbw) + Matej (@mathio): UX issues/improvements/opportunities
83+
- Max (@maxprilutskiy): everything else, general issues/improvements/features
84+
85+
2. CONTRIBUTOR ANALYSIS (MANDATORY):
7086
Execute: `gh search issues --repo ${{ github.repository }} --author ${{ steps.target_issue.outputs.issue_author }} --json number | jq 'length'`
7187
Determine if first-time or returning contributor.
7288
73-
2. CODEBASE EXPLORATION (MANDATORY):
89+
3. CODEBASE EXPLORATION (MANDATORY):
7490
Execute these commands in sequence:
7591
- `find . -name "*.ts" -o -name "*.js" -o -name "*.json" | grep -E "(src|packages|lib)" | head -20`
7692
- `grep -r "keyword1\|keyword2" src/ packages/ --include="*.ts" --include="*.js" | head -10`
7793
- `cat CODEOWNERS` (if exists)
7894
- `find . -name "package.json" | head -5 | xargs cat`
7995
- `git log --oneline -5 --grep="relevant_keyword"`
8096
81-
3. ISSUE INTELLIGENCE (MANDATORY):
97+
4. ISSUE INTELLIGENCE (MANDATORY):
8298
Execute these searches:
8399
- `gh issue list --state open --search "relevant keywords" --json number,title,state | head -3`
84100
- `gh issue list --state all --search "similar terms" --json number,title,state | head -3`
85101
- `gh pr list --state open --search "related keywords" --json number,title,state | head -3`
86102
87-
4. LABELING (MANDATORY):
103+
5. LABELING (MANDATORY):
88104
Apply labels using: `gh issue edit ${{ steps.target_issue.outputs.issue_number }} --add-label "label-name"`
89105
Must apply:
90106
- Content labels: bug, enhancement, documentation, question, cli, compiler, etc.
91107
- State labels: duplicate (if found), wip (if related PR exists)
92108
- Difficulty labels: "good first issue" (simple, well-defined), "help wanted" (complex/community)
93109
94-
5. COMMENT GENERATION (MANDATORY):
110+
6. COMMENT GENERATION (MANDATORY):
95111
Post separate comments using: `gh issue comment ${{ steps.target_issue.outputs.issue_number }} --body "text"`
96112
97113
COMMENT TYPES TO POST (only if applicable):
@@ -116,9 +132,17 @@ jobs:
116132
"This is similar to #[number] - check that for context" OR "There's already work on this in PR #[number]"
117133
118134
G. MAINTAINER ASSESSMENT (post for complex/breaking changes):
119-
"Maintainer assessment: [technical analysis]. Suggested approach: [specific steps]. Concerns: [any issues]. Next steps: [actionable items]. Tagging [relevant maintainer if found in CODEOWNERS]."
120-
121-
6. FINAL STEP (MANDATORY):
135+
"Maintainer assessment: [technical analysis]. Suggested approach: [specific steps]. Concerns: [any issues]. Next steps: [actionable items]. Tagging relevant team members based on component identified in step 1."
136+
137+
H. TEAM MEMBER TAGGING (post when component identified):
138+
Based on component analysis from step 1, tag relevant team members:
139+
- Docs/DX issues/improvements/opportunities: "cc @davidturnbull for documentation and developer experience"
140+
- CLI/Compiler issues/improvements/features: "cc @mathio for CLI and compiler functionality"
141+
- AI/Translation issues/improvements/features: "cc @vrcprl for AI and translation quality"
142+
- UX issues/improvements/opportunities: "cc @pqoqubbw @mathio for UX improvements"
143+
- General/Other issues/improvements/features: "cc @maxprilutskiy for general oversight"
144+
145+
7. FINAL STEP (MANDATORY):
122146
Execute: `gh issue edit ${{ steps.target_issue.outputs.issue_number }} --add-label "autolabeled"`
123147
124148
ABSOLUTE REQUIREMENTS:

0 commit comments

Comments
 (0)