Skip to content

Commit 9c4e9cb

Browse files
zakisktheakshaypant
authored andcommitted
fix: fix TestGithubGHEPullRequestOkToTest
after changes in #2682, IssueCommentEvent paylaod is required to have issue number in it to use across event processing and as event payload is manually sent to controller in TestGithubGHEPullRequestOkToTest, issue number was not included and it failing due to the reason. Signed-off-by: Zaki Shaikh <zashaikh@redhat.com>
1 parent c51c085 commit 9c4e9cb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/github_pullrequest_oktotest_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ func TestGithubGHEPullRequestOkToTest(t *testing.T) {
7575
PullRequestLinks: &github.PullRequestLinks{
7676
HTMLURL: github.Ptr(fmt.Sprintf("%s/pull/%d", runevent.URL, g.PRNumber)),
7777
},
78+
Number: github.Ptr(g.PRNumber),
7879
},
7980
Repo: &github.Repository{
8081
DefaultBranch: &runevent.DefaultBranch,

0 commit comments

Comments
 (0)