Skip to content

Commit

Permalink
chore(scheduler): add SkipDraftPR from lighthouse v0.0.1109
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanGoasdoue committed Apr 3, 2024
1 parent 9e2e61f commit 454a30f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/scheduler-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -2002,6 +2002,17 @@ bool
that could run but do not run.</p>
</td>
</tr>
<tr>
<td>
<code>skip_draft_pr</code></br>
<em>
bool
</em>
</td>
<td>
<p>SkipDraftPR when enabled, skips triggering pipelines for draft PRs, unless /ok-to-test is added.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="scheduler.jenkins-x.io/v1alpha1.Welcome">Welcome
Expand Down Expand Up @@ -2036,5 +2047,5 @@ string
<hr/>
<p><em>
Generated with <code>gen-crd-api-reference-docs</code>
on git commit <code>100093a8</code>.
on git commit <code>2befe711</code>.
</em></p>
2 changes: 2 additions & 0 deletions pkg/apis/scheduler/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 454a30f

Please sign in to comment.