Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

Commit 51bed8c

Browse files
committed
Comment test
1 parent 3729ea0 commit 51bed8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/git/customScm/comment_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func TestComment(t *testing.T) {
4040
repo := "getting-started-app"
4141
appName := "preview-app"
4242
hash := "abc123"
43+
pullNumber := 0
4344
logUrl := "https://gimlet.io"
4445
previewUrl := "https://gimlet.io"
4546
processing := fmt.Sprintf(bodyProcessing, appName, hash, logUrl)
@@ -57,7 +58,7 @@ func TestComment(t *testing.T) {
5758
token, _, _ := tokenManager.Token()
5859
gitSvc := NewGitService(config)
5960

60-
commentId, err := gitSvc.CreateComment(token, owner, repo, 67, &processing)
61+
commentId, err := gitSvc.CreateComment(token, owner, repo, pullNumber, &processing)
6162
if err != nil {
6263
panic(err)
6364
}

0 commit comments

Comments
 (0)