Skip to content

Commit ccfcfd9

Browse files
authored
fix: fix pull request url format mismatch (#1927)
#1924
1 parent 9d782cf commit ccfcfd9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/librarian/tag_and_release.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
)
3333

3434
const (
35-
pullRequestSegments = 5
35+
pullRequestSegments = 7
3636
tagAndReleaseCmdName = "tag-and-release"
3737
releasePendingLabel = "release:pending"
3838
releaseDoneLabel = "release:done"

internal/librarian/tag_and_release_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func TestDeterminePullRequestsToProcess(t *testing.T) {
7676
{
7777
name: "with pull request config",
7878
cfg: &config.Config{
79-
PullRequest: "github.com/googleapis/librarian/pulls/123",
79+
PullRequest: "https://github.com/googleapis/librarian/pulls/123",
8080
},
8181
ghClient: &mockGitHubClient{
8282
getPullRequestCalls: 1,
@@ -95,15 +95,15 @@ func TestDeterminePullRequestsToProcess(t *testing.T) {
9595
{
9696
name: "invalid pull request number",
9797
cfg: &config.Config{
98-
PullRequest: "github.com/googleapis/librarian/pulls/abc",
98+
PullRequest: "https://github.com/googleapis/librarian/pulls/abc",
9999
},
100100
ghClient: &mockGitHubClient{},
101101
wantErrMsg: "invalid pull request number",
102102
},
103103
{
104104
name: "get pull request error",
105105
cfg: &config.Config{
106-
PullRequest: "github.com/googleapis/librarian/pulls/123",
106+
PullRequest: "https://github.com/googleapis/librarian/pulls/123",
107107
},
108108
ghClient: &mockGitHubClient{
109109
getPullRequestCalls: 1,

0 commit comments

Comments
 (0)