Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12,288 changes: 6,140 additions & 6,148 deletions src/libs/GitHub/Generated/GitHub.JsonSerializerContextTypes.g.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public sealed partial class BranchRestrictionPolicy
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("teams")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::GitHub.BranchRestrictionPolicyTeam> Teams { get; set; }
public required global::System.Collections.Generic.IList<global::GitHub.Team> Teams { get; set; }

/// <summary>
///
Expand Down Expand Up @@ -82,7 +82,7 @@ public BranchRestrictionPolicy(
string teamsUrl,
string appsUrl,
global::System.Collections.Generic.IList<global::GitHub.BranchRestrictionPolicyUser> users,
global::System.Collections.Generic.IList<global::GitHub.BranchRestrictionPolicyTeam> teams,
global::System.Collections.Generic.IList<global::GitHub.Team> teams,
global::System.Collections.Generic.IList<global::GitHub.BranchRestrictionPolicyApp> apps)
{
this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url));
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public sealed partial class RepositoryRulesetBypassActor
public required global::GitHub.RepositoryRulesetBypassActorActorType ActorType { get; set; }

/// <summary>
/// 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/>
/// 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/>
/// Default Value: always
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("bypass_mode")]
Expand All @@ -46,7 +46,7 @@ public sealed partial class RepositoryRulesetBypassActor
/// The type of actor that can bypass a ruleset.
/// </param>
/// <param name="bypassMode">
/// 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/>
/// 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/>
/// Default Value: always
/// </param>
#if NET7_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace GitHub
{
/// <summary>
/// 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/>
/// 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/>
/// Default Value: always
/// </summary>
public enum RepositoryRulesetBypassActorBypassMode
Expand All @@ -17,6 +17,10 @@ public enum RepositoryRulesetBypassActorBypassMode
///
/// </summary>
PullRequest,
/// <summary>
///
/// </summary>
Exempt,
}

/// <summary>
Expand All @@ -33,6 +37,7 @@ public static string ToValueString(this RepositoryRulesetBypassActorBypassMode v
{
RepositoryRulesetBypassActorBypassMode.Always => "always",
RepositoryRulesetBypassActorBypassMode.PullRequest => "pull_request",
RepositoryRulesetBypassActorBypassMode.Exempt => "exempt",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -45,6 +50,7 @@ public static string ToValueString(this RepositoryRulesetBypassActorBypassMode v
{
"always" => RepositoryRulesetBypassActorBypassMode.Always,
"pull_request" => RepositoryRulesetBypassActorBypassMode.PullRequest,
"exempt" => RepositoryRulesetBypassActorBypassMode.Exempt,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public enum RepositoryRulesetCurrentUserCanBypass
///
/// </summary>
Never,
/// <summary>
///
/// </summary>
Exempt,
}

/// <summary>
Expand All @@ -38,6 +42,7 @@ public static string ToValueString(this RepositoryRulesetCurrentUserCanBypass va
RepositoryRulesetCurrentUserCanBypass.Always => "always",
RepositoryRulesetCurrentUserCanBypass.PullRequestsOnly => "pull_requests_only",
RepositoryRulesetCurrentUserCanBypass.Never => "never",
RepositoryRulesetCurrentUserCanBypass.Exempt => "exempt",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -51,6 +56,7 @@ public static string ToValueString(this RepositoryRulesetCurrentUserCanBypass va
"always" => RepositoryRulesetCurrentUserCanBypass.Always,
"pull_requests_only" => RepositoryRulesetCurrentUserCanBypass.PullRequestsOnly,
"never" => RepositoryRulesetCurrentUserCanBypass.Never,
"exempt" => RepositoryRulesetCurrentUserCanBypass.Exempt,
_ => null,
};
}
Expand Down
Loading
Loading