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

overwrite destination branch as a argument #23

Closed
Nr18 opened this issue Feb 6, 2022 · 0 comments
Closed

overwrite destination branch as a argument #23

Nr18 opened this issue Feb 6, 2022 · 0 comments

Comments

@Nr18
Copy link
Collaborator

Nr18 commented Feb 6, 2022

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
The default behaviour is that the destination branch is pulled from a configuration file. When the profile has no destination configured it falls back on a default config. When this default is not correct you now need a profile specific configuration. This makes sense for repos that you use often but you do not want to configure this for a "one off" repository.

By supporting an overwrite option we make it easier to create a pull request for these "one off" repository. Or when you have multiple phases like: feature branch --> development --> main you can create the pr from feature branch to development using a default. And from development to main using an overwrite.

For example:

# Creates PR from `feature branch` --> `development`
pull-request-codecommit 
# Do review and get approval
# Pull the merged changes
git checkout development
git pull
# Creates PR from `development` --> `main`
pull-request-codecommit main

Describe alternatives you've considered

Additional context

@Nr18 Nr18 added the feature label Feb 6, 2022
@Nr18 Nr18 added this to the Release v0.3.0 milestone Feb 7, 2022
Nr18 pushed a commit that referenced this issue Feb 10, 2022
In some cases you want to overwrite the target branch. By supplying the `--branch my-branch` option you are now able to do just that.

Issue: #23
@Nr18 Nr18 mentioned this issue Feb 10, 2022
3 tasks
@Nr18 Nr18 closed this as completed Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant