Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add appstore review-list #610

Merged
merged 11 commits into from
Mar 29, 2025
Merged

Conversation

kenstir
Copy link
Contributor

@kenstir kenstir commented Dec 20, 2024

Fixes #609

  • Add as review-list --id=appid to list reviews. For now, it uses a simple
    text output that is readable in the terminal.

* Sort reviews by date descending
* Print using fmt.Printf not log.Info, so it is readable in the
  terminal
and print (responded) if we responded.
* Add `--after` to limit reviews by date
* Use sort=-createdDate so we don't have to sort
* Use include=response and print body of review if we haven't responded
* Add `--since` to limit reviews by duration
* Exit 2 if no reviews to aid scripting
@blacktop
Copy link
Owner

are there going to be other sub-cmds other than ls ?

@kenstir
Copy link
Contributor Author

kenstir commented Dec 24, 2024

are there going to be other sub-cmds other than ls ?

No I don't think so. I just started using that cmd "in anger" yesterday, and I'm using it to email me a list of all reviews in the last 24h.

for appid in $app1 $app2 $app3; do
    ipsw appstore review ls --since '25h' --id $appid
done

But it's not helpful to list apps by app ID so I think I want another command app ls to list apps, so I could do

for appid in `ipsw appstore app ls --show=appid`; do
    ...

I see there is already an unused function GetApps() so I would start there.

@blacktop
Copy link
Owner

I have no apps w/ reviews. Does this work for you?

@kenstir
Copy link
Contributor Author

kenstir commented Feb 23, 2025

Sure does! I use it in a cron job to mail me any reviews in the last 25 hours like so:

kenstir@trinity ipsw (feat/as-review)
$ ./ipsw --config-quiet appstore review ls --since '25h' --id $appid

kenstir@trinity ipsw (feat/as-review)
$ ./ipsw --config-quiet appstore review ls --after='2025-01-01' --id $appid

-------------------
Jan 21 2025 [★★★★★] by emjewell21
Lists. Android has them.
    (responded Dec 21 2024)

-------------------
Jan  7 2025 [★★★★ ] by MelLifeLongLearner
Due Date Alert
    (responded Jan  4 2025)

2 reviews since Jan  1 2025 00:00:00
2 responses

To respond, visit https://appstoreconnect.apple.com/apps/1400443994/distribution/activity/ios/ratingsResponses

@kenstir kenstir changed the title feat: Add as review ls feat: Add appstore review-list Mar 24, 2025
* Change copyright statement
* Eliminate useless subcommand.  Instead of `as review ls`
  make it `as review-list` (inspired by `device-list`)
* Remove commented-out code
@kenstir
Copy link
Contributor Author

kenstir commented Mar 24, 2025

All review comments have been addressed @blacktop and it's ready for another review. Importantly, I removed the unnecessary sub-cmd ipsw as review ls and renamed it ipsw as review-list, modeled after device-list.

@blacktop
Copy link
Owner

LGTM

@blacktop blacktop merged commit 3bbc35e into blacktop:master Mar 29, 2025
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.

Add appstore review-list command
2 participants