From 1142549b239cf8d96b77372e0808fb3efc5be618 Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" <622227+FredKSchott@users.noreply.github.com> Date: Sun, 15 Feb 2026 02:05:52 -0800 Subject: [PATCH] auto-triage improvements: fix labeling (#15523) * update workflows * pass issueDetails to comment.md * fix(triage): detect committed fix changes using git diff instead of git status The fix skill may commit its changes directly, leaving git status --porcelain empty. Use git diff main --stat to detect both committed and uncommitted changes before pushing the fix branch. * fix(triage): use pnpm install --no-frozen-lockfile in reproduce skill * chore: update @flue/cli to 0.0.32 and @flue/client to 0.0.18 --------- Co-authored-by: Fred K. Schott --- .agents/skills/triage/comment.md | 5 +-- .agents/skills/triage/reproduce.md | 4 +-- .flue/workflows/issue-triage.ts | 54 ++++++++++++++++++------------ package.json | 4 +-- pnpm-lock.yaml | 22 ++++++------ 5 files changed, 51 insertions(+), 38 deletions(-) diff --git a/.agents/skills/triage/comment.md b/.agents/skills/triage/comment.md index ff4c2e326e22..1ffbbefe37e2 100644 --- a/.agents/skills/triage/comment.md +++ b/.agents/skills/triage/comment.md @@ -9,7 +9,8 @@ Generate a GitHub issue comment from triage findings. These variables are referenced throughout this skill. They may be passed as args by an orchestrator, or inferred from the conversation when run standalone. - **`triageDir`** — Directory containing the reproduction project (e.g. `triage/issue-123`). If not passed as an arg, infer from previous conversation. -- **`report.md`** — File in `triageDir` that MAY exist. Contains the full context from all previous skills (reproduction, diagnosis, fix). +- **`issueDetails`** - The GitHub API issue details payload. This must be provided explicitly by the user or available from prior conversation context / tool calls. If this data isn't available, you may run `gh issue view ${issue_number}` to load the missing issue details directly from GitHub. +- **`report.md`** — File in `triageDir` that MAY exist. Contains the full context from all previous skills (reproduction, diagnosis, fix). Contains everything that you need to know to generate your comment successfully. - **`branchName`** — The branch name where a fix was pushed. If not passed as an arg, infer from previous conversation. - **`priorityLabels`** — An array of `{ name, description }` objects representing the available priority labels for the repository. Used to select a priority in the comment. @@ -40,7 +41,7 @@ The **Fix** line in the template has three possible forms. Choose the one that m The **Priority** line communicates the severity of this issue to maintainers. Its goal is to answer the question: **"How bad is it?"** -Select exactly ONE priority label from the `priorityLabels` arg. Use the label descriptions to guide your decision, combined with the triage report's root cause and impact analysis. Render the chosen label name in bold (without the `- ` prefix), then follow it with 1-2 sentences explaining **why** you chose that priority. Answer: "who is likely to be affected and under what conditions?". If you are unsure, use your best judgment based on the label descriptions and the triage findings. +Select exactly ONE priority label from the `priorityLabels` arg. Use the label descriptions to guide your decision, combined with the triage report's root cause and impact analysis. Render the chosen label name in square brackets, in bold, formatted with the `- ` prefix removed (Example: `**[P2: Has Workaround].**). Then, follow it with 1-2 sentences explaining **why** you chose that priority. Answer: "who is likely to be affected and under what conditions?". If you are unsure, use your best judgment based on the label descriptions and the triage findings. ### Template diff --git a/.agents/skills/triage/reproduce.md b/.agents/skills/triage/reproduce.md index 1ea0868b4ad7..87442b7ef767 100644 --- a/.agents/skills/triage/reproduce.md +++ b/.agents/skills/triage/reproduce.md @@ -73,7 +73,7 @@ Skip if a repository maintainer has commented that this issue should not be repr Every bug report should include some sort of reproduction. The reproduction project goes in the `triageDir` directory (e.g. `triage/gh-123`). If no `triageDir` is provided, default to `triage/gh-`. -Set up the reproduction project based on what the issue provides you. Once the reproduction project directory has been completed, run `pnpm install` in the workspace top-level root to connect it to the rest of the monorepo. +Set up the reproduction project based on what the issue provides you. Once the reproduction project directory has been completed, run `pnpm install --no-frozen-lockfile` in the workspace top-level root to connect it to the rest of the monorepo. ### StackBlitz Project URL (`https://stackblitz.com/edit/...`) @@ -120,7 +120,7 @@ rm -rf examples/