Skip to content

Commit

Permalink
Add support for ready_for_review GitHub PR event
Browse files Browse the repository at this point in the history
  • Loading branch information
nickd-kt committed Feb 20, 2025
1 parent 60f5dd9 commit 4fd8e2e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provider/github/detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

var (
pullRequestOpenSyncEvent = []string{"opened", "synchronize", "synchronized", "reopened"}
pullRequestOpenSyncEvent = []string{"opened", "synchronize", "synchronized", "reopened", "ready_for_review"}
pullRequestLabelEvent = []string{"labeled"}
)

Expand Down
9 changes: 9 additions & 0 deletions pkg/provider/github/detect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,15 @@ func TestProvider_Detect(t *testing.T) {
isGH: true,
processReq: true,
},
{
name: "pull request event converted from draft to active",
event: github.PullRequestEvent{
Action: github.Ptr("ready_for_review"),
},
eventType: "pull_request",
isGH: true,
processReq: true,
},
{
name: "pull request event not supported action",
event: github.PullRequestEvent{
Expand Down

0 comments on commit 4fd8e2e

Please sign in to comment.