You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c282f5d
Browse filesBrowse the repository at this point in the historyBrowse files
Address review feedback on the update-bundle skill
- Report unknown direct commits as null instead of an empty list when a
comparison is too long to check.
- Classify renamed files by their previous name as well, so moving code
into .github/ still counts as a change.
- Check every number passed to `milestone assign` before any write, and
reject zero and out-of-range values.
- In the skill: require gh, jq and composer up front, drop repositories
whose direct commits the maintainer declined, re-check each plan against
the approved snapshot before tagging, wait for an active framework run,
and verify the framework commit pinned in the lockfile rather than
trusting run and commit dates.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .claude/skills/update-bundle/SKILL.md
+43-16Lines changed: 43 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,8 +36,11 @@ wp maintenance doctor
36
36
wp maintenance release plan --bundle --format=json >"$SCRATCH/plan.json"
37
37
```
38
38
39
-
Stop if `doctor` reports a failed check. The plan takes a few hundred API
40
-
requests, so the rate limit `doctor` shows should leave room for that.
39
+
Stop if `doctor` reports a failed check. Stop as well if it reports `gh`,
40
+
`jq` or `composer` as missing: `doctor` only warns about them, but this skill
41
+
needs all three, and finding out in phase 4 would leave tags without lockfile
42
+
updates. The plan takes a few hundred API requests, so the rate limit `doctor`
43
+
shows should leave room for that.
41
44
42
45
`--bundle` covers every package in the composer.lock of wp-cli/wp-cli-bundle:
43
46
the `*-command` packages, plus wp-cli-tests, php-cli-tools, spyc and
@@ -54,7 +57,7 @@ For each repository, the JSON holds:
54
57
|`blockers`| What `needs_human` is about, by `code`, see below |
55
58
|`open_items`| Issues/PRs still open on the milestone the unreleased changes are on |
56
59
|`open_pull_requests`| Open, non-draft, non-bot PRs that have no open milestone |
57
-
|`direct_commits`| Commits pushed without a PR that change more than those development files |
60
+
|`direct_commits`| Commits pushed without a PR that change more than those development files. `null` when there are too many commits since `latest_tag` for GitHub to compare; check those by hand|
58
61
|`open_milestones`| Open milestones that are a version newer than `latest_tag`, lowest first |
59
62
60
63
## Phase 2: Milestone questions
@@ -98,9 +101,11 @@ Questions by blocker or field:
98
101
should go on M?" M is N when R is released in this run, and R otherwise.
99
102
Leaving a PR unchecked leaves it alone. Open PRs never block a release.
100
103
-**`direct_commits`**: "`<repo>` has commits pushed without a PR, which R
101
-
would ship without mentioning them: `<sha> <message>`. Release anyway?" If a
102
-
repository has direct commits but no merged PR, `release generate` can't
103
-
release it. Report it for the maintainer to handle by hand.
104
+
would ship without mentioning them: `<sha> <message>`. Release anyway?" A
105
+
*no* excludes the repository from phase 3, even though its plan stays
106
+
`ready`. Record the exclusion in the log. If a repository has direct commits
107
+
but no merged PR, `release generate` can't release it. Report it for the
108
+
maintainer to handle by hand.
104
109
-**`invalid_version`, `no_version_tag`**: no question. List them in the final
105
110
report as needing manual attention.
106
111
@@ -118,7 +123,9 @@ instead of working around it.
118
123
119
124
## Phase 3: Release proposal and approval
120
125
121
-
Every repository that is now `ready` gets a proposal. Gather all of them
126
+
Every repository that is now `ready` and that the maintainer did not exclude
127
+
in phase 2 gets a proposal. Save its plan JSON in the log as the approved
128
+
snapshot. Gather all of them
122
129
before asking. For each one, preview the notes:
123
130
124
131
```bash
@@ -138,7 +145,11 @@ also settles how to merge in phase 4:
138
145
/ *Approve the bot's PR and merge; ask a reviewer for mine* / *Leave all
139
146
merges to me*.
140
147
141
-
Then release each approved package:
148
+
Then release each approved package. Right before each one, re-run
149
+
`wp maintenance release plan <repo> --format=json` and compare it with the
150
+
approved snapshot: the same `latest_tag`, `release`, `pull_requests` and
151
+
`direct_commits`. If anything was merged or pushed since, don't tag it. Ask
152
+
again about that repository once the others are released.
0 commit comments