Skip to content

Commit

Permalink
open current merge request fix #218
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDelille committed Sep 26, 2018
1 parent fc4ca81 commit 9694b59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/mr_browse.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cmd

import (
"fmt"
"log"
"net/url"
"path"
Expand Down Expand Up @@ -53,8 +52,9 @@ var mrBrowseCmd = &cobra.Command{
if err != nil {
log.Fatal(err)
}
for _, mr := range mrs {
fmt.Printf("#%d %s\n", mr.IID, mr.Title, mr.SourceBranch)
if len(mrs) > 0 {
num = int64(mrs[0].IID)
hostURL.Path = path.Join(hostURL.Path, strconv.FormatInt(num, 10))
}
}

Expand Down

0 comments on commit 9694b59

Please sign in to comment.