Skip to content

play.js: --without-hold puts up a draft release for an app whose changes Play won't hold - #208

Merged
fleon merged 1 commit into
mainfrom
play-drafts-without-hold
Nov 23, 2026
Merged

fleon merged 1 commit into
mainfrom
play-drafts-without-hold

Conversation

@fleon

@fleon fleon commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

play.js couldn'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.commit takes two options. Google describes changesNotSentForReview as 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.js passes 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 draft status 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 --rollout or --send-for-review), commits with --changes-in-review error and 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.
  • The refusal, for an app Play has published, now says that Play holds changes back only after a rejected update, and points to --without-hold or the Console. The message for a never-published app stays. The listing and images steps get the same corrected wording, with no flag.
  • The commit options live in lib.commitFlags, which is tested. --help and 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 new commitFlags cases.
  • A real run, on Hue Rings (live on production, no rejected update):
    • Without the flag, Play refused the hold, and the tool sent nothing.
    • With --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 versions read them back as draft, with 1.0.2 and 1006 still the live releases.

…ges Play won't hold

Co-Authored-By: Claude <noreply@anthropic.com>
@fleon
fleon marked this pull request as ready for review November 22, 2026 22:47
Comment thread Tools/Play/play.js
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 });

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--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.

Comment thread Tools/Play/play.js
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.');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

claude Bot commented Nov 22, 2026

Copy link
Copy Markdown

Claude review (house rules)
Reviewed 4 files (Tools/Play/README.md, lib.js, play.js, play.test.js) against AGENTS.md; this repository has no CONTRIBUTING.md.
Left 2 inline comments.

@fleon
fleon merged commit 26578ca into main Nov 23, 2026
15 checks passed
@fleon
fleon deleted the play-drafts-without-hold branch November 23, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant