fastlane / fastlane

🚀 The easiest way to automate building and releasing your iOS and Android apps
https://fastlane.tools
MIT License
39.66k stars 5.72k forks source link

Supply should detect the current release status and set it to draft when the app has never been released #21491

Open lacostej opened 1 year ago

lacostej commented 1 year ago

New Issue Checklist

Issue Description

If you've never published your app, and are publishing to your draft internal track, if you haven't explicitly set the release_status to draft the upload will fail with

[!] Google Api Error: Invalid request - Only releases with status draft may be created on draft app.

Supply options default to "COMPLETED" and this is used when updating the track.

Because of this, one is forced to add release_status: 'draft' as argument to upload_to_play_store, and then remove that argument when the app is finally published.

It would be better if fastlane was fetching the current status from the Play store instead of using the default COMPLETED status. That way we wouldn't have to modify the commands before publishing the app, and after publishing it.

nathanfallet commented 2 weeks ago

I have the same problem. Actually, what is the difference between having the "draft" status or "completed" status when releasing to "internal"? (we're not distributing the app to production)