@smbcloud / smbcloud-ascapi Mirror · read-only / commits / 1d6899f
Fork 0

Read-only mirror of github.com/smbcloudXYZ/smbcloud-ascapi.

Mirrored from https://github.com/smbcloudXYZ/smbcloud-ascapi.git

Synced Nov 25, 09:15 UTC

Add --changes-not-sent-for-review to play tracks set-notes

bundles upload and tracks promote already take the flag, so on an app with rejected changes pending set-notes was the one write command that could not commit. It failed with "Changes cannot be sent for review automatically". Also fix the first-release doc: it still said asc has no bundle upload, and it now records what was verified against a published app and how the flag behaves in both states. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Seto Elkahfi committed Nov 9, 2026 at 11:55 UTC 1d6899f749b167f2be0efb1ffa2269cf0503720d
4 files changed +46 -15
.agents/AGENTS.md
+3 -1
@@ -333,7 +333,9 @@ CLI-only, like review submission. `bundles upload` puts an `.aab` on a track in
333 one edit: it uploads, compares Play's SHA-256 with the local file's, optionally
334 attaches a ProGuard `mapping.txt`, replaces a `draft` or `inProgress` release on
335 the track (`completed` ones stay), commits and reads the track back. It prints
336 -the `versionCode` Play assigned, for `tracks set-notes` or `tracks promote`. The
336 +the `versionCode` Play assigned, for `tracks set-notes` or `tracks promote`. `bundles upload`, `tracks promote` and `tracks set-notes` take
337 +`--changes-not-sent-for-review` for an app with rejected changes pending; Play rejects the flag
338 +when nothing is pending, so it is opt-in. The
339 default status is `draft`. `--dry-run` is local only (the file is a zip with
340 `base/manifest/AndroidManifest.xml`, the mapping file exists) and needs no
341 credentials; it cannot report the version code. A real upload uses up its
crates/cli/src/main.rs
+6
@@ -580,6 +580,10 @@ enum PlayTracksCommand {
580 /// Read the notes from a UTF-8 file; one trailing newline is dropped.
581 #[arg(long)]
582 notes_file: Option<PathBuf>,
583 + /// Commit with changesNotSentForReview, for apps that have rejected
584 + /// changes pending.
585 + #[arg(long)]
586 + changes_not_sent_for_review: bool,
587 },
588 /// Promote a version code from one track to another, for example
589 /// internal to production, in one edit. A staged rollout is the default
@@ -1447,6 +1451,7 @@ async fn run_play(
1451 locale,
1452 notes,
1453 notes_file,
1454 + changes_not_sent_for_review,
1455 } => {
1456 let notes = text_arg(notes, notes_file, "--notes-file")?
1457 .context("--notes or --notes-file is required")?;
@@ -1457,6 +1462,7 @@ async fn run_play(
1462 &version_code,
1463 &locale,
1464 &notes,
1465 + changes_not_sent_for_review,
1466 dry_run,
1467 )
1468 .await
crates/frontend/src/play.rs
+18 -10
@@ -340,6 +340,7 @@ pub struct NotesSet {
340 pub track: Track,
341 }
342
343 +#[allow(clippy::too_many_arguments)]
344 pub async fn set_track_notes(
345 client: &PlayClient,
346 package: &str,
@@ -347,18 +348,25 @@ pub async fn set_track_notes(
348 version_code: &str,
349 locale: &str,
350 notes: &str,
351 + changes_not_sent_for_review: bool,
352 dry_run: bool,
353 ) -> Result<NotesSet, String> {
352 - let planned = in_edit!(client, package, !dry_run, |c, id| {
353 - Box::pin(async move {
354 - let mut track = c.get_track(package, id, track_name).await.map_err(err)?;
355 - track.set_release_notes(version_code, locale, notes)?;
356 - if !dry_run {
357 - c.update_track(package, id, &track).await.map_err(err)?;
358 - }
359 - Ok(track)
360 - })
361 - })?;
354 + let planned = in_edit!(
355 + client,
356 + package,
357 + !dry_run,
358 + changes_not_sent_for_review,
359 + |c, id| {
360 + Box::pin(async move {
361 + let mut track = c.get_track(package, id, track_name).await.map_err(err)?;
362 + track.set_release_notes(version_code, locale, notes)?;
363 + if !dry_run {
364 + c.update_track(package, id, &track).await.map_err(err)?;
365 + }
366 + Ok(track)
367 + })
368 + }
369 + )?;
370 if dry_run {
371 return Ok(NotesSet {
372 dry_run,
docs/google-play-new-app.md
+19 -4
@@ -14,7 +14,7 @@ release is published, the API takes over.
14 |---|---|---|---|
15 | 1 | Create the app | Console only | The androidpublisher discovery document has no create endpoint. |
16 | 2 | Service account | Once per developer account | See [one-time setup](#one-time-setup-per-developer-account). One account serves every app. |
17 -| 3 | First `.aab` | Console | `asc` has no bundle upload yet (issue #61). Upload it as a draft internal release, then roll it out in Console. |
17 +| 3 | First `.aab` | Console | `asc play bundles upload` puts it on a track as a draft release. On a draft app, roll it out in Console. |
18 | 4 | Version-code warning ("significantly higher than your previous") | Console | Click "Proceed anyway". A `YYYYMMDDhh` version code stays under the 2,100,000,000 cap through 2099. |
19 | 5 | One-time products | `asc play products create` | Only after an uploaded build declares `com.android.vending.BILLING`. Play does not allow creating the product before that. |
20 | 6 | Listing text, images, release notes | `asc play listings update`, `images replace`, `tracks set-notes` | Works on a draft app. All three committed. |
@@ -52,9 +52,24 @@ Done by hand once; every app on the account reuses it.
52
53 ## After the first publish
54
55 -Later releases are expected to go through the API: `asc play tracks promote` and staged rollout.
56 -Untested for Onde Onde until Google approves its first open test. When someone runs a dry run of
57 -`tracks promote` against a published app and it succeeds, change "expected" to "verified" here.
55 +Later releases go through the API: `asc play bundles upload`, `asc play tracks promote` and
56 +staged rollout. On 2026-11-09, `tracks promote --dry-run` from internal to alpha, beta and
57 +production succeeded against the published `com.ondeinference.OndeOnde`. A real promote on that app
58 +is still untested.
59 +
60 +### When the app has rejected changes
61 +
62 +While a rejection is pending, Play refuses a plain commit:
63 +
64 +```
65 +Changes cannot be sent for review automatically. Please set the query parameter
66 +changesNotSentForReview to true.
67 +```
68 +
69 +Pass `--changes-not-sent-for-review` to `bundles upload`, `tracks promote` and `tracks set-notes`.
70 +The changes are committed but not sent; pressing "Send changes for review" in Publishing overview
71 +is a Console step. Once the changes are sent, Play says the opposite for the same flag
72 +(`changesNotSentForReview must not be set`), so leave it off when nothing is pending.
73
74 ## Account rules that affect the first release
75