Releases: Djuuu/git-mr
3.6.0
3.5.0
3.4.0
3.3.0
Version 3.2.1
Version 3.2.0
- Add
--no-commits
option - Use git configuration as an alternative to environment variables
- Allow
mr status
&mr open
on non-checked out branches
Version 3.1.1
Version 3.1.0
Version 3.0.0
-
Signature of most commands was changed to accept the source branch as an argument.
This allows showing the status of any merge request from current project, without having to actually switch to the related branch.To force the issue code (if not detected properly) or the target branch, the
-c|--code
and-t|--taget
options can now be used. -
"Extended" merge request description improvements.
The-e|--extended
option now works withgit mr update
(for new commits added to the description).
Formatting was fixed to avoid unnecessary new lines.Note: to always use extended descriptions (using the full commit body instead of just the summary), you can set
GIT_MR_EXTENDED=1
in your environment variables.
(This was already possible before, but was not explicitely documented.) -
Added pipeline status to status block ✔ ❌ ⏱
-
mr update
now adds new commits right after the existing commits in current description.
You can use the-n
|--new-section
option to add the "## Update" title separator as before,
or specify a custom title:-n
|--new-section
"My new title"
-
mr update
now has a-r
|--replace-commits
option.
This replaces the whole commit list in the description.
This can be useful after a branch cleanup, where commits were squashed and/or rewritten. -
mr merge
now has a--force
option.
This allows merging even when there are unresolved threads. -
mr menu update
now updates all related merge requests.
To update only current merge request (from current projet / branch), use the--current
option.Command output was tweaked to better highlight the menu in the updated description.
-
New
mr ok
transition.
Also, transition commands (ip|cr|qa|ok
) will now list the available Jira transitions if theJIRA_*_ID
variable is not set. -
Display adjustments.
Improved usage of terminal links:- merge request title links to merge request page (instead of showing the raw merge request URL)
- unread thread count links to first unresolved thread
- pipeline status indicator links to last merge request pipeline
Support of terminal hyperlinks may vary across terminal applications. See: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda.
If you still want to display merge request url in status blocks, you can set
GIT_MR_NO_TERMINAL_LINK=1
(this will also disable other terminal links). -
Optimization:
git mr
now runs ~40% faster.
System calls were optimized to avoid unnecessary subprocesses.
Some API calls now run in parallel. -
Miscellaneous improvements and bugfix.
- fixed
mr hook
when in a submodule - fixed terminal link escaping issues
- additional checks (when on main branch, remote branch existence and synchronization)
- ...
- fixed
-
Completion script
See https://github.com/Djuuu/git-mr#completion -
macOS compatibility (with some requirements)
See https://github.com/Djuuu/git-mr#command-installation -
Tests & CI
Thanks to Github actions.