thoughtbot / parity

Shell commands for development, staging, and production parity for Heroku apps
https://thoughtbot.com
MIT License
889 stars 57 forks source link

Allow pushing from different branches than "main" or "master" #198

Open iduuck opened 2 years ago

iduuck commented 2 years ago

I would like to suggest that it would be configurable where to push from for production. I was recently working on a project, which has a development and a production branch. However, (trying) to deploy with production deploy results in the following:

❯ production deploy
error: src refspec master does not match any
error: failed to push some refs to 'https://git.heroku.com/XXX.git'

While I understand, that this is also a "security" issue, for not pushing wrong branches to production environments, it would be nice to configure, how to push to production.


Lines, where the magic happens: https://github.com/thoughtbot/parity/blob/main/lib/parity/environment.rb#L42-L63

vfonic commented 2 years ago

I get the same error with main branch. 🤷‍♂️