Skip to content

Commit 66c3557

Browse files
author
github-actions[bot]
committed
feat: Updated OpenAPI spec
1 parent cb2bb1e commit 66c3557

8 files changed

+6163
-6427
lines changed

src/libs/GitHub/Generated/GitHub.JsonSerializerContextTypes.g.cs

Lines changed: 6140 additions & 6148 deletions
Large diffs are not rendered by default.

src/libs/GitHub/Generated/GitHub.Models.BranchRestrictionPolicy.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public sealed partial class BranchRestrictionPolicy
4848
/// </summary>
4949
[global::System.Text.Json.Serialization.JsonPropertyName("teams")]
5050
[global::System.Text.Json.Serialization.JsonRequired]
51-
public required global::System.Collections.Generic.IList<global::GitHub.BranchRestrictionPolicyTeam> Teams { get; set; }
51+
public required global::System.Collections.Generic.IList<global::GitHub.Team> Teams { get; set; }
5252

5353
/// <summary>
5454
///
@@ -82,7 +82,7 @@ public BranchRestrictionPolicy(
8282
string teamsUrl,
8383
string appsUrl,
8484
global::System.Collections.Generic.IList<global::GitHub.BranchRestrictionPolicyUser> users,
85-
global::System.Collections.Generic.IList<global::GitHub.BranchRestrictionPolicyTeam> teams,
85+
global::System.Collections.Generic.IList<global::GitHub.Team> teams,
8686
global::System.Collections.Generic.IList<global::GitHub.BranchRestrictionPolicyApp> apps)
8787
{
8888
this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url));

src/libs/GitHub/Generated/GitHub.Models.BranchRestrictionPolicyTeam.Json.g.cs

Lines changed: 0 additions & 92 deletions
This file was deleted.

src/libs/GitHub/Generated/GitHub.Models.BranchRestrictionPolicyTeam.g.cs

Lines changed: 0 additions & 151 deletions
This file was deleted.

src/libs/GitHub/Generated/GitHub.Models.RepositoryRulesetBypassActor.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public sealed partial class RepositoryRulesetBypassActor
2323
public required global::GitHub.RepositoryRulesetBypassActorActorType ActorType { get; set; }
2424

2525
/// <summary>
26-
/// When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.<br/>
26+
/// When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.<br/>
2727
/// Default Value: always
2828
/// </summary>
2929
[global::System.Text.Json.Serialization.JsonPropertyName("bypass_mode")]
@@ -46,7 +46,7 @@ public sealed partial class RepositoryRulesetBypassActor
4646
/// The type of actor that can bypass a ruleset.
4747
/// </param>
4848
/// <param name="bypassMode">
49-
/// When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.<br/>
49+
/// When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.<br/>
5050
/// Default Value: always
5151
/// </param>
5252
#if NET7_0_OR_GREATER

src/libs/GitHub/Generated/GitHub.Models.RepositoryRulesetBypassActorBypassMode.g.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace GitHub
55
{
66
/// <summary>
7-
/// When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.<br/>
7+
/// When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created.<br/>
88
/// Default Value: always
99
/// </summary>
1010
public enum RepositoryRulesetBypassActorBypassMode
@@ -17,6 +17,10 @@ public enum RepositoryRulesetBypassActorBypassMode
1717
///
1818
/// </summary>
1919
PullRequest,
20+
/// <summary>
21+
///
22+
/// </summary>
23+
Exempt,
2024
}
2125

2226
/// <summary>
@@ -33,6 +37,7 @@ public static string ToValueString(this RepositoryRulesetBypassActorBypassMode v
3337
{
3438
RepositoryRulesetBypassActorBypassMode.Always => "always",
3539
RepositoryRulesetBypassActorBypassMode.PullRequest => "pull_request",
40+
RepositoryRulesetBypassActorBypassMode.Exempt => "exempt",
3641
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
3742
};
3843
}
@@ -45,6 +50,7 @@ public static string ToValueString(this RepositoryRulesetBypassActorBypassMode v
4550
{
4651
"always" => RepositoryRulesetBypassActorBypassMode.Always,
4752
"pull_request" => RepositoryRulesetBypassActorBypassMode.PullRequest,
53+
"exempt" => RepositoryRulesetBypassActorBypassMode.Exempt,
4854
_ => null,
4955
};
5056
}

src/libs/GitHub/Generated/GitHub.Models.RepositoryRulesetCurrentUserCanBypass.g.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ public enum RepositoryRulesetCurrentUserCanBypass
2121
///
2222
/// </summary>
2323
Never,
24+
/// <summary>
25+
///
26+
/// </summary>
27+
Exempt,
2428
}
2529

2630
/// <summary>
@@ -38,6 +42,7 @@ public static string ToValueString(this RepositoryRulesetCurrentUserCanBypass va
3842
RepositoryRulesetCurrentUserCanBypass.Always => "always",
3943
RepositoryRulesetCurrentUserCanBypass.PullRequestsOnly => "pull_requests_only",
4044
RepositoryRulesetCurrentUserCanBypass.Never => "never",
45+
RepositoryRulesetCurrentUserCanBypass.Exempt => "exempt",
4146
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
4247
};
4348
}
@@ -51,6 +56,7 @@ public static string ToValueString(this RepositoryRulesetCurrentUserCanBypass va
5156
"always" => RepositoryRulesetCurrentUserCanBypass.Always,
5257
"pull_requests_only" => RepositoryRulesetCurrentUserCanBypass.PullRequestsOnly,
5358
"never" => RepositoryRulesetCurrentUserCanBypass.Never,
59+
"exempt" => RepositoryRulesetCurrentUserCanBypass.Exempt,
5460
_ => null,
5561
};
5662
}

0 commit comments

Comments
 (0)