Files
appwrite/.github/workflows/issue-triage.md
T
Steven Nguyen 94db75fd6c fix: Correct GitHub MCP tool name from list_labels to list_label
The correct tool name in GitHub MCP server is 'list_label' (singular), not 'list_labels' (plural). This was causing the agent to fall back to bash commands like 'gh label list' instead of using the proper MCP tool.
2025-11-06 15:05:45 -08:00

5.5 KiB

on, permissions, env, network, safe-outputs, tools, timeout_minutes, source
on permissions env network safe-outputs tools timeout_minutes source
schedule workflow_dispatch stop-after reaction
cron
0 0 * * *
+30d eyes
read-all
GH_AW_ERROR_PATTERNS
[ {"id":"gh-action-error","pattern":"^::(error)(?:\\s+[^:]*)?::(.+)","level_group":1,"message_group":2,"description":"GitHub Actions workflow command - error"}, {"id":"gh-action-warning","pattern":"^::(warning)(?:\\s+[^:]*)?::(.+)","level_group":1,"message_group":2,"description":"GitHub Actions workflow command - warning"}, {"id":"bracketed-level","pattern":"^\[(ERROR|CRITICAL|WARNING|WARN)\]\s+(.+)","level_group":1,"message_group":2,"description":"Bracketed log level at start of line"}, {"id":"timestamped-copilot","pattern":"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z\s+\[(ERROR|WARN|WARNING|CRITICAL)\]\s+(.+)","level_group":1,"message_group":3,"description":"Timestamped Copilot CLI messages"} ]
defaults
add-labels add-comment
max target
5 *
target
*
web-fetch web-search
10 githubnext/agentics/workflows/issue-triage.md@0837fb7b24c3b84ee77fb7c8cfa8735c48be347a

Agentic Triage

You're a triage assistant for GitHub issues. Your task is to analyze issues created in the last 24 hours and perform initial triage tasks for each of them.

  1. First, use the list_issues tool to retrieve all issues created in the last 24 hours. Filter issues by using the since parameter with a timestamp from 24 hours ago (calculate: current time minus 24 hours in ISO 8601 format).

  2. For each issue found, perform the following triage tasks:

  3. Select appropriate labels for the issue from the provided list. Only apply the good first issue label on verified issues with straightforward fixes.

  4. Retrieve the issue content using the get_issue tool. If the issue is obviously spam, or generated by bot, or something else that is not an actual issue to be worked on, then add an issue comment to the issue with a one sentence analysis and move to the next issue.

  5. Next, use the GitHub tools to gather additional context about the issue:

    • Fetch the list of labels available in this repository using the list_label tool. This will give you the labels you can use for triaging issues.
    • Fetch any comments on the issue using the get_issue_comments tool
    • Search for duplicate and related issues: Use the search_issues tool to find similar issues by searching for key terms from the issue title and description. Look for both open and closed issues that might be related or duplicates.
  6. Analyze the issue content, considering:

    • The issue title and description
    • The type of issue (bug report, feature request, question, etc.)
    • Technical areas mentioned
    • Severity or priority indicators
    • User impact
    • Components affected
  7. Write notes, ideas, nudges, resource links, debugging strategies and/or reproduction steps for the team to consider relevant to the issue.

  8. Select appropriate labels from the available labels list provided above:

    • Choose labels that accurately reflect the issue's nature
    • Be specific but comprehensive
    • Select priority labels if you can determine urgency (high-priority, med-priority, or low-priority)
    • Consider platform labels (android, ios) if applicable
    • Search for similar issues, and if you find similar issues consider using a "duplicate" label if appropriate. Only do so if the issue is a duplicate of another OPEN issue.
    • Only select labels from the provided list above
    • It's okay to not add any labels if none are clearly applicable
  9. Apply the selected labels:

    • Use the update_issue tool to apply the labels to the issue
    • DO NOT communicate directly with users
    • If no labels are clearly applicable, do not apply any labels
  10. Add an issue comment to the issue with your analysis:

  • Start with "🎯 Agentic Issue Triage"
  • Provide a brief summary of the issue
  • If duplicate or related issues were found, add a section listing them with links (e.g., "### 🔗 Potentially Related Issues" followed by a bullet list of related issues with their titles and links)
  • Mention any relevant details that might help the team understand the issue better
  • Include any debugging strategies or reproduction steps if applicable
  • Suggest resources or links that might be helpful for resolving the issue or learning skills related to the issue or the particular area of the codebase affected by it
  • Mention any nudges or ideas that could help the team in addressing the issue
  • If you have possible reproduction steps, include them in the comment
  • If you have any debugging strategies, include them in the comment
  • If appropriate break the issue down to sub-tasks and write a checklist of things to do.
  • Use collapsed-by-default sections in the GitHub markdown to keep the comment tidy. Collapse all sections except the short main summary at the top.
  1. After processing all issues, provide a summary of how many issues were triaged. If no issues were created in the last 24 hours, simply note that no new issues needed triage.