Skip to content

Commit bceeeb4

Browse files
committed
fix(pullvet): fix event name: issue -> issues
1 parent 3802a94 commit bceeeb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

event.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func CheckSuiteEvent() (*github.CheckSuiteEvent, error) {
6565
}
6666

6767
func IssueEvent() (*github.IssueEvent, error) {
68-
evt, err := github.ParseWebHook("issue", Event())
68+
evt, err := github.ParseWebHook("issues", Event())
6969
if err != nil {
7070
return nil, err
7171
}
@@ -76,7 +76,7 @@ func PullRequest() (*github.PullRequest, string, string, error) {
7676
var pr *github.PullRequest
7777
var owner, repo string
7878
switch EventName() {
79-
case "issue":
79+
case "issues":
8080
issue, err := IssueEvent()
8181
if err != nil {
8282
return nil, "", "", err

0 commit comments

Comments
 (0)