heroku / cli

Heroku CLI
https://devcenter.heroku.com/articles/heroku-cli
ISC License
852 stars 223 forks source link

CI subcommands ignore `HEROKU_APP` env var, unlike all other commands #1251

Open indirect opened 5 years ago

indirect commented 5 years ago

Do you want to request a feature or report a bug?

Report a bug.

What is the current behavior?

$ uname -a
Darwin Finn.local 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
$ heroku --version
heroku/7.24.4 darwin-x64 node-v11.14.0
$ HEROKU_APP=appname heroku ci
 ›   Error: Required flag:  --pipeline PIPELINE or --app APP

What is the expected behavior?

$ HEROKU_APP=appname heroku ci
=== Showing latest test runs for the appname-pipeline pipeline
✗  14  staging                                       b83aca5  failed

The HEROKU_APP env var is respected by all other CLI commands that I know of. For example, this works: HEROKU_APP=appname heroku apps:info.

RasPhilCo commented 5 years ago

Good catch! Adding this to our backlog.