-
Notifications
You must be signed in to change notification settings - Fork 13
/
repo.go
36 lines (28 loc) · 1.31 KB
/
repo.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// SPDX-License-Identifier: Apache-2.0
package constants
// Repo get pipeline types.
const (
// PipelineTypeYAML defines the pipeline type for allowing users
// in Vela to control their pipeline being compiled as yaml.
PipelineTypeYAML = "yaml"
// PipelineTypeGo defines the pipeline type for allowing users
// in Vela to control their pipeline being compiled as Go templates.
PipelineTypeGo = "go"
// PipelineTypeStarlark defines the pipeline type for allowing users
// in Vela to control their pipeline being compiled as Starlark templates.
PipelineTypeStarlark = "starlark"
)
// Repo ApproveBuild types.
const (
// ApproveForkAlways defines the CI strategy of having a repo administrator approve
// all builds triggered from a forked PR.
ApproveForkAlways = "fork-always"
// ApproveForkNoWrite defines the CI strategy of having a repo administrator approve
// all builds triggered from a forked PR where the author does not have write access.
ApproveForkNoWrite = "fork-no-write"
// ApproveOnce defines the CI strategy of having a repo administrator approve
// all builds triggered from an outside contributor if this is their first time contributing.
ApproveOnce = "first-time"
// ApproveNever defines the CI strategy of never having to approve CI builds from outside contributors.
ApproveNever = "never"
)