From ebc2168cebb2c6489b7dc0e4b68b31d6f7aa2be2 Mon Sep 17 00:00:00 2001 From: Tom Rochette Date: Fri, 5 Jun 2026 02:57:14 -0400 Subject: [PATCH] Create and push branches in reproduce-issue and update reproduction labels (#1541) --- .github/workflows/reproduce-issue.yml | 2 +- .opencode/agent/reproduce-issue.md | 8 ++++---- .opencode/agent/triage.md | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/reproduce-issue.yml b/.github/workflows/reproduce-issue.yml index c67a86c1..089de0fb 100644 --- a/.github/workflows/reproduce-issue.yml +++ b/.github/workflows/reproduce-issue.yml @@ -12,7 +12,7 @@ jobs: group: reproduce-issue-${{ github.event.issue.number }} cancel-in-progress: true permissions: - contents: read + contents: write issues: write steps: - name: Checkout repository diff --git a/.opencode/agent/reproduce-issue.md b/.opencode/agent/reproduce-issue.md index b12a38b8..743dc727 100644 --- a/.opencode/agent/reproduce-issue.md +++ b/.opencode/agent/reproduce-issue.md @@ -31,17 +31,17 @@ Your goal is to create a minimal, working reproduction of the reported bug and l 4. If you can reproduce the bug: - Describe the exact reproduction steps that reliably trigger it. - Identify the root cause or the most likely code location. - - Leave a concise comment on the issue with your findings. - - Add the `confirmed` label if it exists. + - Create a branch named `reproduce/issue-` from the current branch, commit any reproduction scripts, tests, or code you produced, and push the branch. If the branch already exists, force-push with `git push --force`. + - Leave a concise comment on the issue with your findings and a link to the branch. + - Add the `reproducible:true` label to the issue. 5. If you cannot reproduce the bug: - Describe what you tried and why it did not reproduce. - Ask the reporter for specific missing details (browser version, OS, config, steps). - - Add the `needs-info` label if it exists. + - Add the `reproducible:false` and `needs-info` label to the issue. ## Constraints - Do not fix the bug. Only reproduce it. -- Do not push commits or create branches. - Keep comments concise and factual. - If the issue lacks enough detail to even attempt reproduction, say so and ask for the minimum needed. - Use the GitHub CLI (`gh`) to inspect the issue, list labels, add labels, and leave comments. diff --git a/.opencode/agent/triage.md b/.opencode/agent/triage.md index d7d11811..664a30ed 100644 --- a/.opencode/agent/triage.md +++ b/.opencode/agent/triage.md @@ -88,8 +88,8 @@ Only use labels that already exist in this repository. Do not create labels. | `priority:low` | Minor UX polish, niche feature request | | `data-loss` | Risk of losing user data or overwriting files | | `regression` | Bug that worked in a previous release | -| `has-repro` | Confirmed reproducible with clear steps | -| `needs-repro` | No clear reproduction steps provided | +| `reproduction-steps:true` | Clear reproduction steps provided | +| `reproduction-steps:false` | No clear reproduction steps provided | | `needs-info` | Needs more info from reporter to reproduce | ### General guidelines