git-worktrees 0.12.2__tar.gz → 0.12.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/CHANGELOG.md +8 -0
  2. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/PKG-INFO +5 -5
  3. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/README.md +4 -4
  4. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/conf.d/worktrees.fish +1 -1
  5. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/docs/commands/merge.md +2 -0
  6. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/.claude-plugin/plugin.json +1 -1
  7. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/.codex-plugin/plugin.json +1 -1
  8. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/plugin.json +1 -1
  9. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/skills/ship-it/SKILL.md +8 -6
  10. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/pyproject.toml +1 -1
  11. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/pr_merge.py +5 -1
  12. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_pr_merge.py +13 -2
  13. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/uv.lock +1 -1
  14. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/worktrees.plugin.zsh +1 -1
  15. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/.claude/settings.json +0 -0
  16. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/.codex/config.toml +0 -0
  17. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/.github/workflows/codeql.yml +0 -0
  18. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/.github/workflows/publish.yml +0 -0
  19. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/.github/workflows/testpypi.yml +0 -0
  20. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/.github/workflows/tests.yml +0 -0
  21. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/.gitignore +0 -0
  22. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/.pre-commit-config.yaml +0 -0
  23. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/.python-version +0 -0
  24. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/.releasetools.yaml +0 -0
  25. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/AGENTS.md +0 -0
  26. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/LICENSE +0 -0
  27. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/Makefile +0 -0
  28. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/completions/gw.fish +0 -0
  29. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/completions/worktrees.fish +0 -0
  30. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/docs/BENCHMARK.md +0 -0
  31. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/docs/DEVELOPMENT.md +0 -0
  32. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/docs/REFERENCE.md +0 -0
  33. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/docs/commands/branch-prune.md +0 -0
  34. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/docs/commands/branch-status.md +0 -0
  35. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/docs/commands/ci-checks.md +0 -0
  36. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/docs/commands/fast-forward.md +0 -0
  37. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/docs/plans/2026-11-05-worktree-pruning-design.md +0 -0
  38. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gw.fish +0 -0
  39. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gwa.fish +0 -0
  40. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gwbc.fish +0 -0
  41. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gwbp.fish +0 -0
  42. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gwbs.fish +0 -0
  43. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gwff.fish +0 -0
  44. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gwl.fish +0 -0
  45. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gwm.fish +0 -0
  46. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gwp!.fish +0 -0
  47. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gwp.fish +0 -0
  48. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gwpa!.fish +0 -0
  49. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gwpa.fish +0 -0
  50. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gwr!.fish +0 -0
  51. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gwr.fish +0 -0
  52. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/functions/gws.fish +0 -0
  53. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/hatch_build.py +0 -0
  54. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/README.md +0 -0
  55. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/hooks/codex.json +0 -0
  56. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/hooks/hooks.json +0 -0
  57. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/session.md +0 -0
  58. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/skills/ci-checks/SKILL.md +0 -0
  59. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/skills/describe-pr/SKILL.md +0 -0
  60. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/skills/describe-pr/format.md +0 -0
  61. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/skills/fast-forward/SKILL.md +0 -0
  62. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/skills/preflight/SKILL.md +0 -0
  63. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/skills/preflight/agents/openai.yaml +0 -0
  64. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/skills/preflight/rules.json +0 -0
  65. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/skills/prune/SKILL.md +0 -0
  66. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/plugin/skills/ship-it/rights.md +0 -0
  67. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/renovate.json +0 -0
  68. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/scripts/README.md +0 -0
  69. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/scripts/benchmark.py +0 -0
  70. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/scripts/bump_version.py +0 -0
  71. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/scripts/verify-publish.bash +0 -0
  72. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/__init__.py +0 -0
  73. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/audit.py +0 -0
  74. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/branch_cli.py +0 -0
  75. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/branch_forge.py +0 -0
  76. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/branches.py +0 -0
  77. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/ci.py +0 -0
  78. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/cli.py +0 -0
  79. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/errors.py +0 -0
  80. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/fast_forward.py +0 -0
  81. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/forge.py +0 -0
  82. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/git.py +0 -0
  83. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/layout.py +0 -0
  84. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/merged.py +0 -0
  85. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/new_branch.py +0 -0
  86. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/pick.py +0 -0
  87. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/progress.py +0 -0
  88. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/prune.py +0 -0
  89. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/render.py +0 -0
  90. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/repo.py +0 -0
  91. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/sync.py +0 -0
  92. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/verdicts.py +0 -0
  93. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/src/worktrees/worktree.py +0 -0
  94. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/audit_schema.py +0 -0
  95. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/conftest.py +0 -0
  96. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_assessment.py +0 -0
  97. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_audit.py +0 -0
  98. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_benchmark.py +0 -0
  99. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_branch_forge.py +0 -0
  100. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_branches.py +0 -0
  101. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_ci.py +0 -0
  102. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_cli.py +0 -0
  103. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_command_defaults.py +0 -0
  104. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_completions.py +0 -0
  105. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_fast_forward.py +0 -0
  106. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_fixture.py +0 -0
  107. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_forge.py +0 -0
  108. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_gates.py +0 -0
  109. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_git_records.py +0 -0
  110. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_new_branch.py +0 -0
  111. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_partial_clone.py +0 -0
  112. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_path_boundaries.py +0 -0
  113. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_plugin.py +0 -0
  114. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_removal.py +0 -0
  115. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_render.py +0 -0
  116. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_shims.py +0 -0
  117. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_spec.py +0 -0
  118. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_sync.py +0 -0
  119. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_version.py +0 -0
  120. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/tests/test_worktree.py +0 -0
  121. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/completions/_gw +0 -0
  122. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gw +0 -0
  123. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gwa +0 -0
  124. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gwbc +0 -0
  125. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gwbp +0 -0
  126. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gwbs +0 -0
  127. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gwff +0 -0
  128. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gwl +0 -0
  129. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gwm +0 -0
  130. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gwp +0 -0
  131. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gwp! +0 -0
  132. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gwpa +0 -0
  133. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gwpa! +0 -0
  134. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gwr +0 -0
  135. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gwr! +0 -0
  136. {git_worktrees-0.12.2 → git_worktrees-0.12.3}/zsh/plugins/worktrees/functions/gws +0 -0
@@ -17,6 +17,14 @@ not in here, whatever it cost to build.
17
17
  A release closes with a `### Choices` section when a decision in it is worth
18
18
  the reader's time: what was chosen, and what the alternative failed to do.
19
19
 
20
+ ## 0.12.3 - 2026-11-21
21
+
22
+ ### Fixed
23
+
24
+ `gw merge` merges a pull request that has no checks at all, as in a
25
+ repository without CI, once it is open, ready and mergeable. Failed,
26
+ pending and blocked checks still refuse the merge.
27
+
20
28
  ## 0.12.2 - 2026-11-17
21
29
 
22
30
  ### Changed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: git-worktrees
3
- Version: 0.12.2
3
+ Version: 0.12.3
4
4
  Summary: Git worktree commands that refuse to lose work.
5
5
  Project-URL: Bug reports, https://github.com/MihaiBojin/worktrees/issues/new
6
6
  Project-URL: Source, https://github.com/MihaiBojin/worktrees
@@ -104,7 +104,7 @@ the plugin's tag to the same release, as each manager below describes.
104
104
  ### fish
105
105
 
106
106
  ```console
107
- fisher install MihaiBojin/worktrees@v0.12.2
107
+ fisher install MihaiBojin/worktrees@v0.12.3
108
108
  ```
109
109
 
110
110
  Fisher copies `functions/`, `completions/` and `conf.d/` from the repository
@@ -121,7 +121,7 @@ the untagged one holds the files.
121
121
  Antidote takes a `path:` into the repository, and `branch:` takes a tag:
122
122
 
123
123
  ```
124
- MihaiBojin/worktrees branch:v0.12.2 path:zsh/plugins/worktrees # in zsh_plugins.txt
124
+ MihaiBojin/worktrees branch:v0.12.3 path:zsh/plugins/worktrees # in zsh_plugins.txt
125
125
  ```
126
126
 
127
127
  The plugin puts its own `functions/` and `completions/` on `fpath` and
@@ -196,8 +196,8 @@ its stdout stays the version alone for a script to read.
196
196
  An excerpt of `gw --help`'s release lines with matching CLI and shell releases:
197
197
 
198
198
  ```console
199
- worktrees 0.12.2: git worktree commands that refuse to lose work
200
- The shell plugin here is 0.12.2, the same release as these commands.
199
+ worktrees 0.12.3: git worktree commands that refuse to lose work
200
+ The shell plugin here is 0.12.3, the same release as these commands.
201
201
  ```
202
202
 
203
203
  A shell without the variable has no plugin loaded, or one older than the
@@ -77,7 +77,7 @@ the plugin's tag to the same release, as each manager below describes.
77
77
  ### fish
78
78
 
79
79
  ```console
80
- fisher install MihaiBojin/worktrees@v0.12.2
80
+ fisher install MihaiBojin/worktrees@v0.12.3
81
81
  ```
82
82
 
83
83
  Fisher copies `functions/`, `completions/` and `conf.d/` from the repository
@@ -94,7 +94,7 @@ the untagged one holds the files.
94
94
  Antidote takes a `path:` into the repository, and `branch:` takes a tag:
95
95
 
96
96
  ```
97
- MihaiBojin/worktrees branch:v0.12.2 path:zsh/plugins/worktrees # in zsh_plugins.txt
97
+ MihaiBojin/worktrees branch:v0.12.3 path:zsh/plugins/worktrees # in zsh_plugins.txt
98
98
  ```
99
99
 
100
100
  The plugin puts its own `functions/` and `completions/` on `fpath` and
@@ -169,8 +169,8 @@ its stdout stays the version alone for a script to read.
169
169
  An excerpt of `gw --help`'s release lines with matching CLI and shell releases:
170
170
 
171
171
  ```console
172
- worktrees 0.12.2: git worktree commands that refuse to lose work
173
- The shell plugin here is 0.12.2, the same release as these commands.
172
+ worktrees 0.12.3: git worktree commands that refuse to lose work
173
+ The shell plugin here is 0.12.3, the same release as these commands.
174
174
  ```
175
175
 
176
176
  A shell without the variable has no plugin loaded, or one older than the
@@ -4,4 +4,4 @@
4
4
  # The release this plugin came from, which `gw --help` and `gw version` compare
5
5
  # with their own. Exported, because the environment is all a binary can see
6
6
  # of the shell that started it.
7
- set -gx WORKTREES_PLUGIN_VERSION 0.12.2
7
+ set -gx WORKTREES_PLUGIN_VERSION 0.12.3
@@ -50,6 +50,8 @@ movement.
50
50
 
51
51
  An unchanged head needs fresh checks with `checksState: passed`, an open
52
52
  review that is ready, and merge state `CLEAN`, `HAS_HOOKS` or `UNSTABLE`.
53
+ A review with no checks at all merges on those last two: a repository
54
+ without CI has nothing to wait for.
53
55
  The command reads membership and containment again immediately before
54
56
  submission and refuses changes between those reads. This containment check
55
57
  blocks submission during GitHub's retarget-before-rewrite interval. The API
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "worktrees",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "description": "Read CI, rebase onto the head branch, describe, ship and merge pull requests, and prune finished worktrees through the worktrees CLI",
5
5
  "author": {
6
6
  "name": "Mihai Bojin",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "worktrees",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "description": "Read CI, rebase onto the head branch, describe, ship and merge pull requests, and prune finished worktrees through the worktrees CLI",
5
5
  "author": {
6
6
  "name": "Mihai Bojin",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "worktrees",
4
- "version": "0.12.2",
4
+ "version": "0.12.3",
5
5
  "description": "Read CI, rebase onto the head branch, describe, ship and merge pull requests, and prune finished worktrees through the worktrees CLI",
6
6
  "author": {
7
7
  "name": "Mihai Bojin",
@@ -291,9 +291,10 @@ Then wait for CI:
291
291
  gw ci-checks NUMBER --wait --json
292
292
  ```
293
293
 
294
- `passed` goes to step 8. `blocked`, or an `unknown` that stays, is a
295
- blocker: a manual job or missing CI is for a person to decide. `failed` is
296
- fixed, below.
294
+ `passed` goes to step 8, and so does an empty `checks` list once the wait
295
+ returns: a review with no CI ships on the request to ship it. `blocked`, or
296
+ an `unknown` with checks in it, is a blocker: a manual job is for a person
297
+ to decide. `failed` is fixed, below.
297
298
 
298
299
  ### Fixing a failure
299
300
 
@@ -342,7 +343,8 @@ it out yet, which is usual just after a push: read again a minute later,
342
343
  never merge on it, and report it only when it stays.
343
344
 
344
345
  Always squash on GitHub and GitLab. Require `stale: false`,
345
- `checksState: passed` and a non-null `pr.trailers` in that fresh snapshot.
346
+ `checksState: passed` or an empty `checks` list, and a non-null
347
+ `pr.trailers` in that fresh snapshot.
346
348
  Null trailers mean the complete commit list was unavailable: stop and
347
349
  report it. An empty array means the commits have no trailers.
348
350
 
@@ -411,8 +413,8 @@ On the first `head-moved` for this PR, record that its one retry is in use.
411
413
  gw ci-checks NUMBER --wait --json
412
414
  ```
413
415
 
414
- Require `pr.headSha` to equal `NEW_SHA`, `checksState` to be `passed`,
415
- `stale` to be false and `pr.trailers` to be non-null. A different head is
416
+ Require `pr.headSha` to equal `NEW_SHA`, `checksState` to be `passed` or
417
+ `checks` to be empty, `stale` to be false and `pr.trailers` to be non-null. A different head is
416
418
  another movement: stop and report it. Repeat steps 8 and 9 using that
417
419
  completed wait as step 9's fresh snapshot, including its merge-state check.
418
420
  Rebuild the message with that snapshot's `pr.trailers`, then call `gw merge`
@@ -9,7 +9,7 @@ authors = [
9
9
  ]
10
10
  # Static, and the single source of truth for the version. Bump it in a pull
11
11
  # request and run `uv lock`; the release tag only has to agree with it.
12
- version = "0.12.2"
12
+ version = "0.12.3"
13
13
  # The standard library answers every question this asks. A dependency here
14
14
  # would be paid on every invocation, and an invocation is 67 ms of which 25 ms
15
15
  # is the interpreter starting.
@@ -249,7 +249,11 @@ def _ready(snapshot: dict, sha: str) -> None:
249
249
  raise Refused(f"#{pr['number']} head changed from {sha}; read its CI again")
250
250
  if pr["state"] != "OPEN" or pr["draft"]:
251
251
  raise Refused(f"#{pr['number']} is not an open, ready pull request")
252
- if snapshot["stale"] or snapshot["checksState"] != "passed":
252
+ # A review with no checks at all has no CI to wait for: the caller's
253
+ # request to merge is the decision.
254
+ if snapshot["stale"] or (
255
+ snapshot["checks"] and snapshot["checksState"] != "passed"
256
+ ):
253
257
  raise Refused(
254
258
  f"#{pr['number']} checks are {snapshot['checksState']}; merge not submitted"
255
259
  )
@@ -11,7 +11,7 @@ from pathlib import Path
11
11
  import pytest
12
12
  from conftest import argv
13
13
  from test_branches import cli
14
- from test_ci import BASE, HEAD, MERGE, _pr
14
+ from test_ci import BASE, HEAD, MERGE, _check, _pr
15
15
  from test_sync import origin
16
16
 
17
17
  PR = "repos/owner/repo/pulls/7"
@@ -209,7 +209,8 @@ def test_changed_pr_refuses_before_submission(world, github, changed) -> None:
209
209
  _pr(state="CLOSED"),
210
210
  _pr(isDraft=True),
211
211
  _pr(mergeStateStatus="UNKNOWN"),
212
- _pr(statusCheckRollup=[]),
212
+ _pr(statusCheckRollup=[_check(conclusion="FAILURE")]),
213
+ _pr(statusCheckRollup=[_check(status="IN_PROGRESS", conclusion="")]),
213
214
  ],
214
215
  )
215
216
  def test_requires_ready_ci_at_the_supplied_head(world, github, snapshot) -> None:
@@ -219,6 +220,16 @@ def test_requires_ready_ci_at_the_supplied_head(world, github, snapshot) -> None
219
220
  assert not writes(github)
220
221
 
221
222
 
223
+ def test_a_review_without_checks_merges(world, github) -> None:
224
+ github.answer(
225
+ {"$view": _pr(statusCheckRollup=[]), "$api": {PR: pull(), ASYNC: merged()}}
226
+ )
227
+ proc = run(world, github)
228
+ assert proc.returncode == 0, proc.stderr
229
+ assert json.loads(proc.stdout)["status"] == "merged"
230
+ assert writes(github)
231
+
232
+
222
233
  @pytest.mark.parametrize(
223
234
  "response,expected,code",
224
235
  [
@@ -49,7 +49,7 @@ wheels = [
49
49
 
50
50
  [[package]]
51
51
  name = "git-worktrees"
52
- version = "0.12.2"
52
+ version = "0.12.3"
53
53
  source = { editable = "." }
54
54
 
55
55
  [package.optional-dependencies]
@@ -12,4 +12,4 @@ autoload -Uz gw gwa gwbc gwbp gwbs gwff gwl gwm gwp 'gwp!' gwpa 'gwpa!' gwr 'gwr
12
12
  # The release this plugin came from, which `gw --help` and `gw version` compare
13
13
  # with their own. Exported, because the environment is all a binary can see
14
14
  # of the shell that started it.
15
- export WORKTREES_PLUGIN_VERSION=0.12.2
15
+ export WORKTREES_PLUGIN_VERSION=0.12.3
File without changes
File without changes
File without changes