cli-tools icon indicating copy to clipboard operation
cli-tools copied to clipboard

Feature: option to reject previous builds and submissions on ASC submission

Open VeArnold opened this issue 3 years ago • 1 comments

This PR aims to introduce a few enchantments to existing logic. Namely, if there's an active submission in either App Store or TestFlight, any further attempts to create new submissions will fail. In this PR, options are introduced to solve this issue for both App Store review and TestFlight review.

As a result, the following action:

  • app-store-connect publish

was updated, and now has the following optional flags:

  • --cancel-previous-submissions (used before submission to ASC)
  • --expire-previous-builds (used before submission to TestFlight)

The logic used within the flags is achieved by adding four new actions to the CLI tools:

  • app-store-connect review-submissions list
  • app-store-connect review-submissions cancel-review-submissions
  • app-store-connect builds expire
  • app-store-connect builds expire-previous-builds

QA:

  • review submissions are correctly listed
  • canceling submissions accepts single and multiple types
  • expire-previous-builds expires all builds except the one passed as an argument
  • expire targets a specific build and expires it

Resolves https://github.com/codemagic-ci-cd/cli-tools/issues/288.

VeArnold avatar Dec 01 '22 13:12 VeArnold

Please update description with information about what actions were updated, removed and added.

priitlatt avatar Dec 01 '22 13:12 priitlatt

@VeArnold, great job with this feature development! 👍

priitlatt avatar Feb 02 '23 15:02 priitlatt