Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

feat mr: remove prefix in ID of MR just like Issue #790

Merged
merged 1 commit into from
Jul 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion commands/mr/mrutils/mrutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func MRFromArgsWithOpts(
var branch string

if len(args) > 0 {
mrID, err = strconv.Atoi(args[0])
mrID, err = strconv.Atoi(strings.TrimPrefix(args[0], "!"))
if err != nil {
branch = args[0]
} else if mrID == 0 { // to check for cases where the user explicitly specified mrID to be zero
Expand Down