Skip to content

Commit

Permalink
issues: fix --web flag for list (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
craftamap committed Jun 17, 2021
1 parent cb1ca41 commit c51591f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/commands/issue/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/logrusorgru/aurora"
"github.com/pkg/browser"
"github.com/spf13/cobra"
"github.com/wbrefvem/go-bitbucket"
)

var (
Expand All @@ -35,8 +34,8 @@ func Add(issueCmd *cobra.Command, globalOpts *options.GlobalOptions) {
logging.Error(err)
}

linkWrapper := repo.Links["Html"].(*bitbucket.SubjectTypesRepositoryEvents)
link := linkWrapper.Href + "/issues"
linkBase := repo.Links["html"].(map[string]interface{})["href"].(string)
link := linkBase + "/issues"
err = browser.OpenURL(link)
if err != nil {
logging.Error(err)
Expand Down

0 comments on commit c51591f

Please # to comment.