Repository navigation
play.js: --without-hold puts up a draft release for an app whose changes Play won't hold - #208
Conversation
…ges Play won't hold Co-Authored-By: Claude <noreply@anthropic.com>
| const commit = forReview ? ['--changes-in-review', 'error'] : HOLD; | ||
| // Sent for review, or a draft with --without-hold: no hold. Either way a | ||
| // review already under way makes the commit fail rather than be cancelled. | ||
| const commit = lib.commitFlags({ forReview, withoutHold }); |
There was a problem hiding this comment.
--without-hold drops the hold even when published (line 509) is false. Your own comments say that's the dangerous case: on a never-published app, a commit without the hold sends every pending change for review, and an approval can publish the app. The refusal on line 517 tells the person to use the Play Console, not this flag, but nothing stops them from passing it anyway. When they do, the listing, pricing and the rest go for review, and the warning on line 527 doesn't print because it checks only forReview. Please refuse withoutHold && !published before the commit, or at least extend the line-527 warning to (forReview || withoutHold) && !published.
| const alsoWrong = lib.alsoProblem(TRACK, also); | ||
| if (alsoWrong) return refuse(`${alsoWrong}.`); | ||
| if (forReview && !rollout) return refuse('--send-for-review sends a rolled-out release; pass --rollout with it.'); | ||
| if (withoutHold && (rollout || forReview)) return refuse('--without-hold is for a draft release only, not with --rollout or --send-for-review.'); |
There was a problem hiding this comment.
The plan doesn't mention --without-hold. The "checks out for … ready for …" line (504–505) adds , sent for review for --send-for-review, but a run with --without-hold and no --send prints the same plan as a held draft. So the dry run hides the one thing this flag risks: everything waiting in the Play Console goes for review on --send. Please add something like , without the hold (anything else waiting goes for review) to that line when withoutHold is set.
|
Claude review (house rules) |
play.jscouldn't upload a draft release for an app whose changes Play won't hold back from review, and it explained the refusal wrongly.Play's
edits.committakes two options. Google describeschangesNotSentForReviewas making sure "when a rejection happens" that the edit's changes "won't be reviewed until they are explicitly sent for review from within the Google Play Console UI". For an app with no rejected update (Hue Rings, live on production), Play answers "changesNotSentForReview must not be set".play.jspasses that flag on every write except the nightly's, so it couldn't upload a production draft or a testing draft for such an app. It also put every such refusal down to the app never having been published.A draft is still a draft without the hold. Google's
draftstatus means "the release's APKs are not being served to users". So:--without-hold, on a draft release only (production, or a testing track without--rollout; refused with--rolloutor--send-for-review), commits with--changes-in-review errorand no hold. The draft serves nobody, and a review already under way still makes it fail rather than be cancelled. Anything else waiting in the Play Console goes for review with it, so the tool says so, and the docs say to check Publishing overview first.--without-holdor the Console. The message for a never-published app stays. The listing and images steps get the same corrected wording, with no flag.lib.commitFlags, which is tested.--helpand the README's "Rules it keeps" describe the flag.Checked
node --test Tools/Play/play.test.js Tools/Play/games.test.js: 19 pass, including the newcommitFlagscases.--without-hold, it put up the 1.5 production draft and the beta as drafts on internal and closed testing (copied with--also).play.js versionsread them back asdraft, with 1.0.2 and 1006 still the live releases.