From 0d208b7957faa098f9f462cfe076ed90e5bf05dd Mon Sep 17 00:00:00 2001 From: Kristijan Husak Date: Fri, 15 Mar 2019 15:14:26 +0100 Subject: Update bitbucket pull request url. --- pkg/commands/pull_request.go | 2 +- pkg/commands/pull_request_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/commands') diff --git a/pkg/commands/pull_request.go b/pkg/commands/pull_request.go index 7f0a55334..11905f01d 100644 --- a/pkg/commands/pull_request.go +++ b/pkg/commands/pull_request.go @@ -34,7 +34,7 @@ func getServices() []*Service { }, { Name: "bitbucket.org", - PullRequestURL: "https://bitbucket.org/%s/%s/pull-requests/new?t=%s", + PullRequestURL: "https://bitbucket.org/%s/%s/pull-requests/new?source=%s&t=1", }, { Name: "gitlab.com", diff --git a/pkg/commands/pull_request_test.go b/pkg/commands/pull_request_test.go index 3e997e9c5..4db29f518 100644 --- a/pkg/commands/pull_request_test.go +++ b/pkg/commands/pull_request_test.go @@ -64,7 +64,7 @@ func TestCreatePullRequest(t *testing.T) { } assert.Equal(t, cmd, "open") - assert.Equal(t, args, []string{"https://bitbucket.org/johndoe/social_network/pull-requests/new?t=feature/profile-page"}) + assert.Equal(t, args, []string{"https://bitbucket.org/johndoe/social_network/pull-requests/new?source=feature/profile-page&t=1"}) return exec.Command("echo") }, func(err error) { @@ -83,7 +83,7 @@ func TestCreatePullRequest(t *testing.T) { } assert.Equal(t, cmd, "open") - assert.Equal(t, args, []string{"https://bitbucket.org/johndoe/social_network/pull-requests/new?t=feature/events"}) + assert.Equal(t, args, []string{"https://bitbucket.org/johndoe/social_network/pull-requests/new?source=feature/events&t=1"}) return exec.Command("echo") }, func(err error) { -- cgit v1.2.3