Skip to content

fix(publish): open no PR for a fix whose issue is already fixed - #174

Merged
merge-loop[bot] merged 3 commits into
mainfrom
cb/publish-skip-fixed-issues
Nov 11, 2026
Merged

merge-loop[bot] merged 3 commits into
mainfrom
cb/publish-skip-fixed-issues

Conversation

@joaquim-verges

@joaquim-verges joaquim-verges commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Problem

A patrol's publish step offered to open a PR for a fix whose issue was already fixed: resolved by a different PR, with its GitHub issue closed. It happens when a verified fix never got a PR recorded, for example after a false skip, and the change then landed by hand. The stored-skip recheck in #173 revives exactly those held-back fixes, so the next real publish would have opened duplicate PRs for changes already on main. A patrol dry run today drafted two such PRs.

Change

  • runPublisher treats a fixed issue like a dismissed one at the top of its selector, so it owes neither a PR nor an issue.
  • The issue branch's own fixed/dismissed exclusion was then redundant and is removed.
  • Regression reopening reads the unfiltered issue list, so a fixed issue that fails again still reopens as before.

Verification

  • New test: a verified fix whose issue is fixed with a closed GitHub issue publishes nothing and makes no gh calls. It fails on its own assertion without the guard (the PR is drafted) and passes with it.
  • pnpm typecheck, pnpm check, pnpm knip and pnpm test (1086 passed) all pass locally.

🤖 Generated with Claude Code


Assisted by Nebula.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

A fixed issue was resolved, often by a PR that someone opened by hand. Its
GitHub issue is closed. Publish still offered a PR for the issue's own
verified fix whenever that fix had no PR recorded, so a patrol would open a
duplicate PR for a change that is already on main. The recheck of stored
skips in #173 made this more likely, because it can revive a held-back fix.

Treat a fixed issue like a dismissed one at the top of the selector, so it
owes neither a PR nor an issue. The issue branch already excluded fixed
issues, so that duplicate check goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Nebula AI Agent <277912164+nebula-ai-agent[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
bugpatrol Skipped Skipped Nov 11, 2026 3:35pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Bugpatrol review: cli

No problem introduced · tested 6f574c5 against main dab7c7b

Tested

  • --help
  • issue list (unaffected by change)

Not tested

  • runPublisher's publish selector (the changed fixed-issue guard): only reachable via bugpatrol publish, which the app guide forbids running (starts agents / calls GitHub)
  • regression reopening of a fixed issue from the unfiltered issue list: same: only reachable via the publish/retest agent flow, which cannot be run here

Updated on each push. Tests only what the diff can affect. Does not block the merge.

@joaquim-verges joaquim-verges added the mergepatrol Queue this PR: Mergepatrol rebases, tests and merges it label Nov 11, 2026 — with Nebula AI Agent
@merge-loop

merge-loop Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Merged as d24ae17.

The agent found nothing to fix in the code.
@merge-loop
merge-loop Bot merged commit d24ae17 into main Nov 11, 2026
10 of 12 checks passed
@merge-loop merge-loop Bot removed the mergepatrol Queue this PR: Mergepatrol rebases, tests and merges it label Nov 11, 2026

This branch was previously deployed

1 inactive deployment
Preview — 6f574c5a Deployed Nov 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant