diff --git a/pkg/provider/github/detect.go b/pkg/provider/github/detect.go index f757079cd..17875900e 100644 --- a/pkg/provider/github/detect.go +++ b/pkg/provider/github/detect.go @@ -12,7 +12,7 @@ import ( ) var ( - pullRequestOpenSyncEvent = []string{"opened", "synchronize", "synchronized", "reopened"} + pullRequestOpenSyncEvent = []string{"opened", "synchronize", "synchronized", "reopened", "ready_for_review"} pullRequestLabelEvent = []string{"labeled"} ) diff --git a/pkg/provider/github/detect_test.go b/pkg/provider/github/detect_test.go index 4646880c2..a14fc1a8e 100644 --- a/pkg/provider/github/detect_test.go +++ b/pkg/provider/github/detect_test.go @@ -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{