You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: implement AutoMerge option to AcceptMergeRequest #518
This PR also fixes a bug when the `Delete source branch` setting of the
MR was not respected due to incorrect reference in
`lua/gitlab/actions/merge.lua` to `state.INFO.delete_branch` instead of
`state.INFO.force_remove_source_branch`.
This PR also changes the behaviour of how the `opts` in
`gitlab.merge(opts)` behave:
- Before this PR:
- when `lua require("gitlab").merge()` was run without parameters,
the values visible in the Summary view were used (except for the
bug mentioned above).
- specifying one of `squash` or `delete_branch` in `opts` caused the
other parameter to default to `false` even if Summary view would
show it's set to `true`.
- After this PR:
- running `lua require("gitlab").merge()` without parameters doesn't
change.
- specifying any of the `opts` values (`auto_merge`, `squash`,
`delete_branch`), has no effect on the other options - if not
specified in the `gitlab.merge()` call, the values from the
Summary are used.
This is a breaking change, since theoretically, before, a user could
rely on the fact that ignoring one of the options would set it to
`false` which now is not guaranteed (the value depends on the existing
MR settings).
0 commit comments