-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fcaee5
commit 5ff8fd3
Showing
3 changed files
with
94 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
pkg/github/models/code_scanning_default_setup_escaped_runner_escaped_type.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package models | ||
// Runner type to be used. | ||
type CodeScanningDefaultSetup_runner_type int | ||
|
||
const ( | ||
STANDARD_CODESCANNINGDEFAULTSETUP_RUNNER_TYPE CodeScanningDefaultSetup_runner_type = iota | ||
LABELED_CODESCANNINGDEFAULTSETUP_RUNNER_TYPE | ||
) | ||
|
||
func (i CodeScanningDefaultSetup_runner_type) String() string { | ||
return []string{"standard", "labeled"}[i] | ||
} | ||
func ParseCodeScanningDefaultSetup_runner_type(v string) (any, error) { | ||
result := STANDARD_CODESCANNINGDEFAULTSETUP_RUNNER_TYPE | ||
switch v { | ||
case "standard": | ||
result = STANDARD_CODESCANNINGDEFAULTSETUP_RUNNER_TYPE | ||
case "labeled": | ||
result = LABELED_CODESCANNINGDEFAULTSETUP_RUNNER_TYPE | ||
default: | ||
return nil, nil | ||
} | ||
return &result, nil | ||
} | ||
func SerializeCodeScanningDefaultSetup_runner_type(values []CodeScanningDefaultSetup_runner_type) []string { | ||
result := make([]string, len(values)) | ||
for i, v := range values { | ||
result[i] = v.String() | ||
} | ||
return result | ||
} | ||
func (i CodeScanningDefaultSetup_runner_type) isMultiValue() bool { | ||
return false | ||
} |