Skip to content

fix(roadmap): a new-branch run takes no closed draft - #6693

Merged
dan-petty merged 2 commits into
mainfrom
fix/6687-new-branch-run-reuses-closed-draft
Nov 21, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/6687-new-branch-run-reuses-closed-draft

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

A publish of the implement phases that runs again now writes to the right draft and the right record (review of #6670).

  • prepare always writes implement.pr, so a new branch takes no closed draft of an earlier Job.
  • _open_draft updates an open draft of the App on the branch, so a publish that died before the mark opens no second draft; a pull request of another account stops the item.
  • A withdraw that pushed clears implement.base at once, so a publish that runs again returns the item to New.
  • An issue title with a closing keyword stops the item before the push; closing_keyword_in counts only an issue reference.
  • The dry-run plan lists the delete of a refused draft, the calls of each withdraw and the fetch of the lease.
  • SECURITY.md, three docstrings, a setting and two spec texts describe the phases.

Closes #6687
Change: openspec/changes/archive/2026-11-21-6687-new-branch-run-reuses-closed-draft/

- prepare always writes implement.pr: the pull request of the target, or
  none for a new branch.
- _open_draft finds the open draft of the branch before it opens one, so
  a publish that died before the mark opens no second draft and deletes
  no branch.
- A withdraw that ran clears implement.base at once, so a publish that
  runs again returns the item to New.
- A title of the issue with a closing keyword stops the item before the
  push.
- The dry-run plan lists the delete of a refused draft, the new
  repository and fetch of each withdraw, and the fetch of the lease.
- SECURITY.md, three docstrings, a setting description and two spec
  texts describe the phases.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 21, 2026
- _open_draft updates an open draft of the branch only when the App's
  bot opened it; an open pull request of another account stops the item,
  with no write to it and no delete of the branch.
- The withdraw clears implement.base right after its push, before the
  close of the draft, and only when it pushed.
- The stop for an issue title with a closing keyword has its own reason.
- closing_keyword_in counts only an issue reference: #12, owner/repo#12
  or an issues URL.
@dan-petty
dan-petty marked this pull request as ready for review November 21, 2026 22:03
@dan-petty
dan-petty merged commit 9ae7d7b into main Nov 21, 2026
32 checks passed
@dan-petty
dan-petty deleted the fix/6687-new-branch-run-reuses-closed-draft branch November 21, 2026 22:49
dan-petty pushed a commit that referenced this pull request Nov 21, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.190.0](v0.189.0...v0.190.0)
(2026-11-21)


### Features

* **k8s:** run a three-node SeaweedFS object store
([#6689](#6689))
([3f81cdb](3f81cdb))
* **roadmap:** the Service reads each runner container by name
([#6695](#6695))
([84c0627](84c0627)),
closes [#6690](#6690)


### Bug Fixes

* **roadmap:** a new-branch run takes no closed draft
([#6693](#6693))
([9ae7d7b](9ae7d7b))
* **roadmap:** the base replay of a step runs the checkout Python
([#6692](#6692))
([db5de9b](db5de9b))


### Code Refactoring

* **roadmap:** fix-checks rebases onto main in its agent phase
([#6694](#6694))
([a2092bd](a2092bd)),
closes [#6639](#6639)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): a new-branch run reuses a closed draft

1 participant