You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use wrapper script for label operations in issue triage (#968)
* Use wrapper script for label operations in issue triage
Updates /label-issue command and examples to use a dedicated
edit-issue-labels.sh script for label operations instead of raw
gh issue edit. The script validates labels against the repo's existing
labels before applying them. Also tightens gh search permission to
gh search issues.
* Show multiple --add-label flags in label-issue example
- Bash(gh label list:\*) - to get available labels
25
25
- Bash(gh issue view:\*) - to view issue details
26
-
- Bash(gh issue edit:\*) - to apply labels to the issue
27
-
- Bash(gh search:\*) - to search for similar issues
26
+
- Bash(./scripts/edit-issue-labels.sh:\*) - to apply labels to the issue
27
+
- Bash(gh search issues:\*) - to search for similar issues
28
28
29
29
3. Analyze the issue content, considering:
30
30
@@ -44,7 +44,7 @@ TASK OVERVIEW:
44
44
- If you find similar issues using gh search, consider using a "duplicate" label if appropriate. Only do so if the issue is a duplicate of another OPEN issue.
45
45
46
46
5. Apply the selected labels:
47
-
- Use `gh issue edit` to apply your selected labels
47
+
- Use `./scripts/edit-issue-labels.sh --issue NUMBER --add-label LABEL1 --add-label LABEL2` to apply your selected labels
48
48
- DO NOT post any comments explaining your decision
49
49
- DO NOT communicate directly with users
50
50
- If no labels are clearly applicable, do not apply any labels
@@ -54,7 +54,7 @@ IMPORTANT GUIDELINES:
54
54
- Be thorough in your analysis
55
55
- Only select labels from the provided list above
56
56
- DO NOT post any comments to the issue
57
-
- Your ONLY action should be to apply labels using gh issue edit
57
+
- Your ONLY action should be to apply labels using ./scripts/edit-issue-labels.sh
58
58
- It's okay to not add any labels if none are clearly applicable
0 commit comments