Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adds RepositoryRulesetBypassActor_actor_type[RepositoryRole, Team] #61

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/github/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "8AA39F9EFC8AECDF973BAADED3494F2713E7379294934AED89D982E37426A4BDBC1269212AFE549DFF33B374670AA02E680173443807BD8126022F444762FEB8",
"descriptionHash": "BCBB3EBFF291241E01FAD8E0C6FB250C6A33437D878C8B72E69A75E886CAD1B05A1633435433950DF918B0E06B173044E905A79A8137E2086C4A88A34F8865BA",
"descriptionLocation": "../../../source-generator/schemas/downloaded.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.13.0",
Expand Down
18 changes: 9 additions & 9 deletions pkg/github/models/repository_ruleset_bypass_actor_actor_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ import (
type RepositoryRulesetBypassActor_actor_type int

const (
REPOSITORYROLE_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE RepositoryRulesetBypassActor_actor_type = iota
TEAM_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
INTEGRATION_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
INTEGRATION_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE RepositoryRulesetBypassActor_actor_type = iota
ORGANIZATIONADMIN_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
REPOSITORYROLE_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
TEAM_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
)

func (i RepositoryRulesetBypassActor_actor_type) String() string {
return []string{"RepositoryRole", "Team", "Integration", "OrganizationAdmin"}[i]
return []string{"Integration", "OrganizationAdmin", "RepositoryRole", "Team"}[i]
}
func ParseRepositoryRulesetBypassActor_actor_type(v string) (any, error) {
result := REPOSITORYROLE_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
result := INTEGRATION_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
switch v {
case "RepositoryRole":
result = REPOSITORYROLE_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
case "Team":
result = TEAM_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
case "Integration":
result = INTEGRATION_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
case "OrganizationAdmin":
result = ORGANIZATIONADMIN_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
case "RepositoryRole":
result = REPOSITORYROLE_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
case "Team":
result = TEAM_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
default:
return 0, errors.New("Unknown RepositoryRulesetBypassActor_actor_type value: " + v)
}
Expand Down