Repository navigation
Conversation
The updater opened PRs that only moved the pin and added a minor changeset, which would ship an empty release. After generation, skip the commit, push and PR when nothing else changed, and close any open managed updater PR with an explanatory comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
commit: |
There was a problem hiding this comment.
Superseded by the review of
0ed31f9a.
This review, of 3fb0129c
💬 Approved with comments — The no-op detection and the close-with-comment path look correct and have tests. The only finding is an INFO: the docs overstate when an open updater PR gets closed.
Findings: 2 info (2 are inline comments on the diff)
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
🔧 Fix with your agent
Paste the following into your coding agent to investigate and fix these issues.
Fix the following code review issues found in pull request #874.
Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order
## INFO (2)
### [Documentation] README says any open updater PR is closed, but PRs with human edits or extra commits are left unchanged.
- **File:** scripts/README.md:21
### [Documentation] architecture.md says any open updater PR is closed; only an unedited, single-commit updater PR is closed.
- **File:** docs/architecture.md:997
📝 Documentation: 💬 2 info
The docs overstate when an open updater PR is closed.
Recommendation: 💬 Optional Nits
- [INFO] README says any open updater PR is closed, but PRs with human edits or extra commits are left unchanged. (
scripts/README.md:21) - [INFO] architecture.md says any open updater PR is closed; only an unedited, single-commit updater PR is closed. (
docs/architecture.md:997)
View full review
scripts/README.md and docs/architecture.md both say that an unchanged revision closes any open updater PR. scripts/update-openapi.ts returns earlier, without touching the PR, when the PR is not a single updater-generated commit, so human-edited PRs are left open.
✅ All other checks passed
🔒 Security: ✅ LGTM
No security concerns in the updater changes.
📖 AGENTS.md: ✅ LGTM
No repository convention issues found.
📋 Code Quality: ✅ LGTM
changesGeneratedOutput uses git ls-files --modified --others --exclude-standard, and closePullRequest posts the optional comment before closing the PR. Both behave correctly, and both have focused tests. The close path runs only after the --check early return, and only behind the guard that leaves any PR that isn't a single updater commit alone.
⚡ Performance: ✅ LGTM
No performance concerns.
Reviewed commit: 3fb0129c
|
| mean | stddev | min | max | |
|---|---|---|---|---|
| PR | 236.6 ms | 4.3 ms | 226.2 ms | 242.6 ms |
| base | 235.5 ms | 4.1 ms | 228.8 ms | 245.1 ms |
Δ (PR vs base): ↑ +1.1 ms (+0.5%)
Measured with hyperfine on ubuntu-latest (3 warmup runs, 20 timed runs). CI numbers carry ±a few ms of runner jitter; treat small deltas as noise.
|
LGTM |
Only skip opening a PR when the generated output is unchanged; don't close or comment on an existing updater PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
✅ Approved — The no-op skip is placed correctly, has tests, and the docs match the code. No findings.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🔒 Security: ✅ LGTM
No security concerns in the updater changes.
📋 Code Quality: ✅ LGTM
The no-op check runs after pnpm generate and before pnpm check, the commit, the push and the PR. The --check early return and the paths for open PRs are unchanged.
📝 Documentation: ✅ LGTM
scripts/README.md and docs/architecture.md now say that a revision which leaves the generated output unchanged is skipped. This matches the code, which no longer closes open updater PRs.
Reviewed commit: 0ed31f9a
|
LGTM |
Problem
The Update OpenAPI workflow opens a PR for every new
cloudflare/api-schemasrevision, even whenpnpm generatechanges nothing. Those PRs only move the pin and add acf: minorchangeset, so merging one would ship an empty minor release. #865 and #847 were both closed by hand for this reason.Fix
After
pnpm generate,scripts/update-openapi.tslists the changed files. If the only changes are thepackages/cli/package.jsonpin and the new changeset, it skipspnpm check, the commit, the push and the PR. It doesn't touch any PR that's already open.Trade-off
The pin stays on the older revision until a schema change actually affects cf.
🤖 Generated with Claude Code