argocd-autopilot icon indicating copy to clipboard operation
argocd-autopilot copied to clipboard

Add flag to make changes a pull request

Open todaywasawesome opened this issue 3 years ago • 2 comments

In most scenarios it's preferable to work off of PRs rather than committing directly to the repo.

argocd-autopilot app create example app=github.com/example.com --pull-request

Likewise, we should support dry-run to export what the files would be. argocd-autopilot app create example app=github.com/example.com --dry-run

todaywasawesome avatar Feb 19 '22 15:02 todaywasawesome

Hey @todaywasawesome, that's could be a nice feature, but just so you know you can specify a different branch today for your gitops repo, for example: https://github.com/roi-codefresh/my-gitops-repo.git?ref=added-app-xyz then if you add the --upsert-branch to your app create command it would:

clone the repo 
  -> checkout from the main branch to the added-app-xyz branch
  -> push the changes to: origin/added-app-xyz

Then in the github UI you will see an option to create a PR from added-app-xyz to main.

roi-codefresh avatar Mar 10 '22 14:03 roi-codefresh

That's a nice workaround in the meantime! Thanks!

todaywasawesome avatar Mar 16 '22 17:03 todaywasawesome