Skip to content

Commit 298d9d6

Browse files
committed
feat(examples): allow custom instructions for issue cleanup triage summary
1 parent 0eedc99 commit 298d9d6

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

examples/workflows/issue-cleanup/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The Issue Cleanup workflow is designed to automate the triage of stale issues by
88

99
1. **Check Code Validity**: Determines if an issue is still relevant against the current codebase. If the issue has already been resolved implicitly, it will close the issue with an explanation.
1010
2. **Find Duplicates**: Checks if the issue has a more recent duplicate. If a duplicate exists, it closes the issue and links to the duplicate.
11-
3. **Summarize for Triage**: If an issue is still valid and unique, it provides a summary comment categorizing it as either `Maintainer-only` (epic, sensitive, internal) or `Help-wanted` (community-friendly).
11+
3. **Summarize for Triage**: If an issue is still valid and unique, it provides a summary comment based on customizable instructions (e.g., categorizing it as `Maintainer-only` or `Help-wanted`).
1212

1313
## Usage
1414

examples/workflows/issue-cleanup/gemini-issue-cleanup.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ You MUST use your tools (like `grep_search`, `read_file`, and `run_shell_command
3131
3232
### Step 3: Provide Triage Summary
3333
- If the issue is still valid and NOT a duplicate, add a brief summary comment for further triaging.
34-
- State whether the issue should be categorized as:
35-
- **Maintainer-only**: (e.g., epic, core architecture, sensitive fixes, internal tasks, or issues requiring deep investigation)
36-
- **Help-wanted**: (e.g., good for community, general bugs, features, or tasks ready for external help)
37-
- Your comment should be brief and clearly explain *why* it fits that category.
38-
- Use `gh issue comment !{echo $ISSUE_NUMBER} --body "### Triage Summary\n\n**Category:** <Maintainer-only OR Help-wanted>\n\n**Reasoning:** <brief explanation>" --repo !{echo $REPOSITORY}`
34+
- To formulate your summary, follow these custom instructions:
35+
```
36+
!{echo $CUSTOM_INSTRUCTIONS}
37+
```
38+
- Use `gh issue comment !{echo $ISSUE_NUMBER} --body "### Triage Summary\n\n<your summary based on custom instructions>" --repo !{echo $REPOSITORY}`
3939
- STOP execution. You are done with this issue.
4040
"""

examples/workflows/issue-cleanup/gemini-issue-cleanup.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
ISSUE_NUMBER: '${{ matrix.issue_number }}'
7171
REPOSITORY: '${{ github.repository }}'
7272
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN || github.token }}'
73+
CUSTOM_INSTRUCTIONS: 'State whether the issue should be categorized as **Maintainer-only** (epic, core architecture, sensitive fixes, internal tasks, or issues requiring deep investigation) or **Help-wanted** (good for community, general bugs, features, or tasks ready for external help). Your comment should be brief and clearly explain *why* it fits that category.'
7374
with:
7475
# Modify the auth settings depending on your environment
7576
gcp_location: '${{ vars.GOOGLE_CLOUD_LOCATION }}'

0 commit comments

Comments
 (0)