feat(gh-cli): publish dependency draft releases - #173
Merged
joshjohanning merged 12 commits intoAug 31, 2026
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: bed3e0ff-d6c7-426a-8591-4c4b8e74705c
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 14d24b4b-af6d-42d0-8743-bbda5d4767a8
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 14d24b4b-af6d-42d0-8743-bbda5d4767a8
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 14d24b4b-af6d-42d0-8743-bbda5d4767a8
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 14d24b4b-af6d-42d0-8743-bbda5d4767a8
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 14d24b4b-af6d-42d0-8743-bbda5d4767a8
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 14d24b4b-af6d-42d0-8743-bbda5d4767a8
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The new publish/manifest workflow has failure and race-handling gaps (plus README ordering issues) that can lead to incomplete or misleading results.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review tier: Lite
Findings: 3
New issues introduced by this change (5)
| Severity | Finding |
|---|---|
gh-cli/README.md — This new script entry is out of alphabetical order in the gh-cli README. Other delete-* scripts… |
|
gh-cli/README.md — This new script entry appears before parent-organization-teams.sh, but the README script list is… |
|
gh-cli/merge-pull-requests-by-title.sh — If the PR merge succeeds but the follow-up gh api call fails here, the script continues and… |
|
gh-cli/publish-draft-releases.sh — Release listing errors are currently silenced (2>/dev/null) and the script will treat failures… |
|
gh-cli/publish-draft-releases.sh — Before publishing, the script should re-verify the release is still the same draft (and still a… |
What changed in this PR
Adds a manifest-driven workflow to safely manage draft releases produced by intermediate dependency PR merges in gh-cli, including tooling to publish the correct draft and to clean up intermediate drafts.
Changes:
- Record immediate merges from
merge-pull-requests-by-title.shinto an ignored.release-manifests/latest.json - Add
publish-draft-releases.shto publish the single matching draft release per manifest entry - Add
delete-draft-releases.shto delete intermediate drafts with optional max-age guarding, and document the workflow
| File | Description |
|---|---|
gh-cli/README.md |
Documents the new draft-release publish/delete workflow and notes manifest behavior for immediate merges |
gh-cli/publish-draft-releases.sh |
Publishes a uniquely-matching draft release that contains the recorded merge commit |
gh-cli/merge-pull-requests-by-title.sh |
Writes .release-manifests/latest.json for immediate merges (when not dry-run/auto-merge/version-bump) |
gh-cli/delete-draft-releases.sh |
Deletes uniquely-matching intermediate draft releases with optional max-age safety guard |
.gitignore |
Ignores .release-manifests/ output directory |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 14d24b4b-af6d-42d0-8743-bbda5d4767a8
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 14d24b4b-af6d-42d0-8743-bbda5d4767a8
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 14d24b4b-af6d-42d0-8743-bbda5d4767a8
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 14d24b4b-af6d-42d0-8743-bbda5d4767a8
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 14d24b4b-af6d-42d0-8743-bbda5d4767a8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Stack
Depends on #172.