lindell / multi-gitter

Update multiple repositories in with one command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Add a flag to allow only pushing the Feature Branch without creating a PR, or pushing directly to an existing branch

daemocles opened this issue · comments

Feature Branch only flag
Add a flag to the run command to disable creating a pull request, to only create the feature branch.

My use case
In my case, I have multiple repositories which I want to run scripts against to create feature branches.
However I don't want to create a pull request to the default branch.
Instead I wish to create multiple pull requests from the feature branch to different protected branches in a sequential order.
To do this, I would like to add an option to only create the feature branch, and then create pull requests afterwards

Implementation

  • I would like to contribute this feature if it's a suitable addition to multi-gitter
  • I have no intention of adding this feature myself.

and then create pull requests afterwards

Do you mean to do this manually, or are you suggesting a change to enable this in multi-gitter as well?

Ideally I would also like to add a separate feature to declare multiple branches to create pull requests to.

It might be better to add a feature flag to declare multiple branches to create pull requests to instead, or both if someone wanted to perform the pull requests manually

I'm not sure I understand your last comment. Could you please elaborate.

But the initial feature of creating the branches without creating PR is something I think should be accepted. The question is just what to call it. We already have skip-pr, but it's referring to merging directly into the head branch.

I believe branch-only, feature-branch-only, or push-only might be good flag names. If there is one you prefer I'd appreciate the feedback

As for my last comment, I was describing a feature where we can declare multiple branches to create pull requests to in a single call
For example, I have 3 branches (dev, test, main)
I want to run my script off of the main branch and create pull requests to those 3 branches

Included in release v0.51.0 🎉