From 4cbdfa6e43529850a41301ce2dbadd4c560942bb Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Mon, 6 Oct 2025 12:37:20 +0200 Subject: [PATCH] Issue triage tweaks --- .github/workflows/issue-triage.lock.yml | 10 ++++++---- .github/workflows/issue-triage.md | 7 ++++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/issue-triage.lock.yml b/.github/workflows/issue-triage.lock.yml index df931684c..2fd28aa37 100644 --- a/.github/workflows/issue-triage.lock.yml +++ b/.github/workflows/issue-triage.lock.yml @@ -3,7 +3,7 @@ # gh aw compile # For more information: https://github.com/githubnext/gh-aw/blob/main/.github/instructions/github-agentic-workflows.instructions.md # -# Effective stop-time: 2025-10-07 10:02:15 +# Effective stop-time: 2025-10-07 10:36:38 name: "Agentic Triage" on: @@ -266,7 +266,7 @@ jobs: WORKFLOW_NAME="Agentic Triage" # Check stop-time limit - STOP_TIME="2025-10-07 10:02:15" + STOP_TIME="2025-10-07 10:36:38" echo "Checking stop-time limit: $STOP_TIME" # Convert stop time to epoch seconds @@ -1119,7 +1119,8 @@ jobs: - 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. - @import? CONTRIBUTING.md + @import .github/CONTRIBUTING.md + @import .github/ISSUE_TEMPLATE/bug-report.md EOF - name: Append XPIA security instructions to prompt @@ -1367,6 +1368,7 @@ jobs: env: GITHUB_AW_SAFE_OUTPUTS: ${{ env.GITHUB_AW_SAFE_OUTPUTS }} GITHUB_AW_SAFE_OUTPUTS_CONFIG: "{\"add-comment\":{\"max\":1},\"add-labels\":{\"max\":5},\"missing-tool\":{}}" + GITHUB_AW_ALLOWED_DOMAINS: "github.com,tailwindcss.com,play.tailwindcss.com" with: script: | async function main() { @@ -2649,7 +2651,7 @@ jobs: AGENT_OUTPUT: ${{ needs.agent.outputs.output }} WORKFLOW_NAME: "Agentic Triage" WORKFLOW_DESCRIPTION: "No description provided" - WORKFLOW_MARKDOWN: "# Agentic Triage\n\nYou're a triage assistant for Tailwind CSS GitHub issues. Your task is to analyze issue #${{ github.event.issue.number }} and perform some initial triage tasks related to that issue.\n\n1. 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 do nothing and exit the workflow.\n\n2. Next, use the GitHub tools to get the issue details\n\n - Fetch the list of labels available in this repository. Use 'gh label list' bash command to fetch the labels. This will give you the labels you can use for triaging issues.\n - Retrieve the issue content using the `get_issue`\n - Fetch any comments on the issue using the `get_issue_comments` tool\n - Find similar issues if needed using the `search_issues` tool\n - List the issues to see other open issues in the repository using the `list_issues` tool\n\n3. Analyze the issue content, considering:\n\n - The issue title and description\n - The type of issue (bug report, feature request, question, etc.)\n - Technical areas mentioned\n - Severity or priority indicators\n - User impact\n - Components affected\n\n4. Verify that the GitHub issue is related to Tailwind CSS and appears to be a bug. Feature requests and ideas should be created in the discussions area. If the GitHub issue does not appear to be a Tailwind CSS bug, read the `CONTRIBUTING.md` file and write a helpful comment explaining how we track bugs here.\n\n5. Validate that the GitHub issue contains instructions of a reproduction. Inline instructions or URL to a reproduction are valid. If no reproduction is found, read the `CONTRIBUTING.md` file and write a helpful comment asking for one. Then, add the `needs reproduction` tag.\n\n6. Select appropriate labels for the issue from the provided list.\n\n7. Write notes, ideas, nudges, resource links, debugging strategies and/or reproduction steps for the team to consider relevant to the issue.\n\n8. Select appropriate labels from the available labels list provided above:\n\n - Choose labels that accurately reflect the issue's nature\n - Be specific but comprehensive\n - Consider platform labels (android, ios) if applicable\n - 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.\n - Only select labels from the provided list above\n - It's okay to not add any labels if none are clearly applicable\n\n9. Apply the selected labels:\n\n - Use the `update_issue` tool to apply the labels to the issue\n - DO NOT communicate directly with users\n - If no labels are clearly applicable, do not apply any labels\n\n10. Add an issue comment to the issue with your analysis:\n - Start with \"🤖 Automatic Triage\"\n - Provide a brief summary of the issue\n - Mention any relevant details that might help the team understand the issue better\n - Include any debugging strategies or reproduction steps if applicable\n - 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\n - Mention any nudges or ideas that could help the team in addressing the issue\n - If you have possible reproduction steps, include them in the comment\n - If you have any debugging strategies, include them in the comment\n - If appropriate break the issue down to sub-tasks and write a checklist of things to do.\n - 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.\n\n@import? CONTRIBUTING.md\n" + WORKFLOW_MARKDOWN: "# Agentic Triage\n\nYou're a triage assistant for Tailwind CSS GitHub issues. Your task is to analyze issue #${{ github.event.issue.number }} and perform some initial triage tasks related to that issue.\n\n1. 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 do nothing and exit the workflow.\n\n2. Next, use the GitHub tools to get the issue details\n\n - Fetch the list of labels available in this repository. Use 'gh label list' bash command to fetch the labels. This will give you the labels you can use for triaging issues.\n - Retrieve the issue content using the `get_issue`\n - Fetch any comments on the issue using the `get_issue_comments` tool\n - Find similar issues if needed using the `search_issues` tool\n - List the issues to see other open issues in the repository using the `list_issues` tool\n\n3. Analyze the issue content, considering:\n\n - The issue title and description\n - The type of issue (bug report, feature request, question, etc.)\n - Technical areas mentioned\n - Severity or priority indicators\n - User impact\n - Components affected\n\n4. Verify that the GitHub issue is related to Tailwind CSS and appears to be a bug. Feature requests and ideas should be created in the discussions area. If the GitHub issue does not appear to be a Tailwind CSS bug, read the `CONTRIBUTING.md` file and write a helpful comment explaining how we track bugs here.\n\n5. Validate that the GitHub issue contains instructions of a reproduction. Inline instructions or URL to a reproduction are valid. If no reproduction is found, read the `CONTRIBUTING.md` file and write a helpful comment asking for one. Then, add the `needs reproduction` tag.\n\n6. Select appropriate labels for the issue from the provided list.\n\n7. Write notes, ideas, nudges, resource links, debugging strategies and/or reproduction steps for the team to consider relevant to the issue.\n\n8. Select appropriate labels from the available labels list provided above:\n\n - Choose labels that accurately reflect the issue's nature\n - Be specific but comprehensive\n - Consider platform labels (android, ios) if applicable\n - 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.\n - Only select labels from the provided list above\n - It's okay to not add any labels if none are clearly applicable\n\n9. Apply the selected labels:\n\n - Use the `update_issue` tool to apply the labels to the issue\n - DO NOT communicate directly with users\n - If no labels are clearly applicable, do not apply any labels\n\n10. Add an issue comment to the issue with your analysis:\n - Start with \"🤖 Automatic Triage\"\n - Provide a brief summary of the issue\n - Mention any relevant details that might help the team understand the issue better\n - Include any debugging strategies or reproduction steps if applicable\n - 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\n - Mention any nudges or ideas that could help the team in addressing the issue\n - If you have possible reproduction steps, include them in the comment\n - If you have any debugging strategies, include them in the comment\n - If appropriate break the issue down to sub-tasks and write a checklist of things to do.\n - 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.\n\n@import .github/CONTRIBUTING.md\n@import .github/ISSUE_TEMPLATE/bug-report.md\n" with: script: | const fs = require('fs'); diff --git a/.github/workflows/issue-triage.md b/.github/workflows/issue-triage.md index cb20e3e38..250f86590 100644 --- a/.github/workflows/issue-triage.md +++ b/.github/workflows/issue-triage.md @@ -13,6 +13,10 @@ safe-outputs: add-labels: max: 5 add-comment: + allowed-domains: + - github.com + - tailwindcss.com + - play.tailwindcss.com tools: web-fetch: @@ -83,4 +87,5 @@ You're a triage assistant for Tailwind CSS GitHub issues. Your task is to analyz - 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. -@import? CONTRIBUTING.md +@import .github/CONTRIBUTING.md +@import .github/ISSUE_TEMPLATE/bug-report.md