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

Commit

Permalink
Merge pull request #790 from atusy/mr-prefix
Browse files Browse the repository at this point in the history
feat mr: remove prefix in ID of MR just like Issue
  • Loading branch information
profclems authored Jul 14, 2021
2 parents 0232a0c + 5ec0110 commit f7c7d6e
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit f7c7d6e

Please sign in to comment.