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

Infer pipeline from git heroku remote #1318

Open
schpet opened this issue Sep 9, 2019 · 0 comments
Open

Infer pipeline from git heroku remote #1318

schpet opened this issue Sep 9, 2019 · 0 comments

Comments

@schpet
Copy link

schpet commented Sep 9, 2019

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

feature! i'd like it if pipeline commands, like heroku ci, could infer the pipeline from the git config instead of asking me to provide --app or --pipeline flags. similar to how commands like heroku config do not require you to provide an --app or ---remote flag if the git heroku remote is set up.

What is the current behavior?

given you've run the following:

heroku git:remote -a example-app-staging --remote staging
heroku git:remote -a example-app-production --remote production
git config heroku.remote staging

your .git/config will have this:

[remote "staging"]
	url = https://git.heroku.com/example-app-staging.git
	fetch = +refs/heads/*:refs/remotes/staging/*
[remote "production"]
	url = https://git.heroku.com/example-app-production.git
	fetch = +refs/heads/*:refs/remotes/production/*
[heroku]
	remote = staging

ci/pipeline commands return an error asking for flags

$ heroku ci:last
 ›   Error: Required flag:  --pipeline PIPELINE or --app APP

What is the expected behavior?

with a heroku git remote setup:

$ heroku ci:last

outputs the last CI run for the pipeline coupled to the heroku git remote.

#1251 is similar!

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

No branches or pull requests

1 participant