Repository navigation
feat(repos): add devops repos worktrees add that refuses a held issue - #2348
Merged
Merged
Conversation
Plans #2337: a command that creates the worktree of an issue and refuses an issue that a worktree or a pushed branch holds.
The command creates the worktree w-<issue> on <type>/<issue>-<slug> at the fetched origin/main, with no upstream. It refuses an issue that a worktree, the standard directory or a branch of origin already holds, and its dry run reads no request from origin. Part of #2337.
…s status The status table has an Issue column and the JSON has the field issue, read from a branch of the form <type>/<issue>-<slug>. The docs that start a branch name the new command. Part of #2337.
tests/test_agents_md_claims.py keeps the form in the naming table once. Part of #2337.
Archives 2337-worktrees-add and adds the capability repos-worktrees-add to the specs. Closes #2337.
Owner
Author
|
Test evidence for this pull request.
|
dan-petty
marked this pull request as ready for review
October 27, 2026 15:38
dan-petty
pushed a commit
that referenced
this pull request
Oct 27, 2026
🤖 I have created a release *beep* *boop* --- ## [0.7.0](v0.6.5...v0.7.0) (2026-10-27) ### Features * **ci:** limit how many CPU-heavy gates run at once on one host ([#2339](#2339)) ([115d1c1](115d1c1)), closes [#2336](#2336) * **ci:** make devops ci wait for a gate slot before a CPU-heavy check ([#2343](#2343)) ([518db63](518db63)), closes [#2336](#2336) * **devcontainer:** onboard Kilo Code with a kilo.jsonc that exposes the devops-cli MCP server ([#2332](#2332)) ([3a6189e](3a6189e)) * **openspec:** commit the OpenSpec skills for Kilo Code ([#2334](#2334)) ([9b4a824](9b4a824)), closes [#2333](#2333) * **repos:** add devops repos worktrees add that refuses a held issue ([#2348](#2348)) ([a3b164d](a3b164d)), closes [#2337](#2337) ### Bug Fixes * **deps:** upgrade dnspython to fix GHSA-45c3-73f7-pv4m ([#2350](#2350)) ([f50459d](f50459d)) * **k8s:** k8s apply renders the preview under --dry-run and starts no child process ([#2328](#2328)) ([16e26b0](16e26b0)), closes [#2312](#2312) * **k8s:** name the keyring entry when the Grafana admin password is missing ([#2335](#2335)) ([f9dcc79](f9dcc79)) * **repos:** worktrees prune removes only worktrees of merged pull requests ([#2342](#2342)) ([23d864d](23d864d)), closes [#2341](#2341) * **scan:** keep scan progress off stdout when the output format is json ([#2331](#2331)) ([1b17048](1b17048)), closes [#2216](#2216) --- 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>
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.
devops repos worktrees add <issue> --type <type> --slug <slug>creates the worktree of an issue in one place and one branch form, and refuses an issue that another agent already holds.origin/mainand creates.data/agent/worktrees/w-<issue>on the branch<type>/<issue>-<slug>at that tip. The branch has no upstream, so a plaingit pushcannot aim atmain.w-<issue>exists, or whenoriginhas a branch for it. The error names the holder. A local branch with no worktree holds nothing, becausepruneleaves such a branch after a merge.--typeor--slugis a usage error (exit 2) before any git command runs. A missingoriginis named.--dry-runreads the local worktrees only, lists the three git commands and reads nothing fromorigin.devops repos worktrees statusshows the issue of each worktree (a columnIssueand the JSON fieldissue).config/constants.py.tests/test_branch_form.pyfails when it disagrees with thebranch-namepre-commit hook or with the types ofrelease-please-config.json.git checkout -b.The change reads git only. It drops the third source that the issue lists, an open pull request that closes the issue: GitHub's REST API has no closing-reference field, and the GraphQL field
closedByPullRequestsReferenceslists the open release pull request #2329 as closing #2336, which would hold every issue in the release notes. A pull request of this repository always has a pushed head branch, and the check onoriginsees it. The design of the archived change records this.Closes #2337