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

feat: Add default merge method #489

Merged
merged 1 commit into from
Jan 24, 2024
Merged

feat: Add default merge method #489

merged 1 commit into from
Jan 24, 2024

Conversation

ricoberger
Copy link
Contributor

Describe what this PR does / why we need it

This commit adds a new option default_merge_method, which can be used to define the default merge method for the Octo pr merge command.

Until now the Octo pr merge was always using commit when no argument was defined. This can now be customized by the user. A user can select between commit, rebase and squash. If another string is provided it will fallback to commit.

This is especially useful (at least for me 😅) when the enable_builtin option is enabled and the merge command is selected via Telescope where it isn't possible to provide the merge method.

Does this pull request fix one issue?

NONE

Special notes for reviews

  • I'm not very familiar with Lua and writing Neovim plugins, so maybe this PR is completely shit
  • If this isn't a feature you want to add, feel free to just close the PR (sry I was a bit lazy with creating an GitHub issue first to discuss this)

This commit adds a new option `default_merge_method`, which can be used
to define the default merge method for the `Octo pr merge` command.

Until now the `Octo pr merge` was always using `commit` when no argument
was defined. This can now be customized by the user. A user can select
between `commit`, `rebase` and `squash`.
@pwntester
Copy link
Owner

Looks great, thanks for the contribution!

@pwntester pwntester merged commit f77d214 into pwntester:master Jan 24, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants