Skip to content

Commit 8988396

Browse files
committed
Only trigger pull request open event to pass test
1 parent 00755d8 commit 8988396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/repo_webhook_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ func Test_WebhookPullRequest(t *testing.T) {
539539
sessionUser4 := loginUser(t, "user4")
540540

541541
// ignore the possible review_requested event to keep the test deterministic
542-
testAPICreateWebhookForRepo(t, sessionUser2, "user2", "repo1", provider.URL(), "pull_request")
542+
testAPICreateWebhookForRepo(t, sessionUser2, "user2", "repo1", provider.URL(), "pull_request_only")
543543

544544
testAPICreateBranch(t, sessionUser2, "user2", "repo1", "master", "master2", http.StatusCreated)
545545
// 2. trigger the webhook

0 commit comments

Comments
 (0)