From 454a30f518fadc08686c278bc798f691acb4630a Mon Sep 17 00:00:00 2001
From: JordanGoasdoue
Date: Wed, 3 Apr 2024 13:10:53 +0200
Subject: [PATCH] chore(scheduler): add SkipDraftPR from lighthouse v0.0.1109
---
docs/scheduler-config.md | 13 ++++++++++++-
pkg/apis/scheduler/v1alpha1/types.go | 2 ++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/docs/scheduler-config.md b/docs/scheduler-config.md
index 82d57a226..b230b202a 100644
--- a/docs/scheduler-config.md
+++ b/docs/scheduler-config.md
@@ -2002,6 +2002,17 @@ bool
that could run but do not run.
+
+
+skip_draft_pr
+
+bool
+
+ |
+
+ SkipDraftPR when enabled, skips triggering pipelines for draft PRs, unless /ok-to-test is added.
+ |
+
Welcome
@@ -2036,5 +2047,5 @@ string
Generated with gen-crd-api-reference-docs
-on git commit 100093a8
.
+on git commit 2befe711
.
diff --git a/pkg/apis/scheduler/v1alpha1/types.go b/pkg/apis/scheduler/v1alpha1/types.go
index 6b91e83af..599dd42a8 100644
--- a/pkg/apis/scheduler/v1alpha1/types.go
+++ b/pkg/apis/scheduler/v1alpha1/types.go
@@ -197,6 +197,8 @@ type Trigger struct {
// ElideSkippedContexts makes trigger not post "Skipped" contexts for jobs
// that could run but do not run.
ElideSkippedContexts *bool `json:"elide_skipped_contexts,omitempty"`
+ // SkipDraftPR when enabled, skips triggering pipelines for draft PRs, unless /ok-to-test is added.
+ SkipDraftPR bool `json:"skip_draft_pr,omitempty"`
}
// Postsubmits is a list of Postsubmit job configurations that can optionally completely replace the Postsubmit job