ittybittyapps / appstoreconnect-cli

An easy to use command-line tool for interacting with the Apple AppStore Connect API
MIT License
173 stars 17 forks source link

Implement sync testers in sync beta group command #163

Closed DechengMa closed 4 years ago

DechengMa commented 4 years ago

Implement sync beta tester feature when run sync beta group command.

Please merge #147 first.

πŸ“ Summary of Changes

Changes proposed in this pull request:

⚠️ Items of Note

TODO

πŸ§πŸ—’ Reviewer Notes

πŸ’ Example

Usage

asc testflight betagroup sync push [--input-path <input-path>] [--dry-run]

πŸ”¨ How To Test

swift run asc testflight betagroup sync push --dry-run swift run asc testflight betagroup sync push

How To

Notes: Please run asc testflight betagroup sync pull first

Add a new tester to group

  1. find group linked tester csv file.(in group file, testers field) Add new invitee information, example:
    Email,First Name,Last Name,Invite Type
    // some existing testers...
    foo@gmail.com,foo,bar,EMAIL // No Space between commas 
  2. Run command asc testflight betagroup sync push

Remove tester from group

  1. find group linked tester csv file
  2. Remove testers you want to delete in csv file. then save.
  3. Run command asc testflight betagroup sync push

Create group and testers together.

  1. create a csv file under ./config/betagroup folder (or input folder), input tester details like this,

    Email,First Name,Last Name,Invite Type // MUST HAVE this header
    foo@gmail.com,foo,bar,EMAIL
  2. Create a file, name whatever you like. under ./config/betagroup folder (or input folder)

    app:
    bundleId: com.example.foo
    groupName: a new group
    testers: relative csv file path create in step 1. eg(`./config/betagroups/newgrouptesters.csv`)
  3. Run command asc testflight betagroup sync push

Update tester

Not supported by API

DechengMa commented 4 years ago

File structure was redesigned so this is no longer needed