Skip to content

Commit

Permalink
Merge pull request #20 from HavenDV/bot/update-openapi_202408220606
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Aug 22, 2024
2 parents 2ba34c1 + 24c56c4 commit cbd7dc7
Show file tree
Hide file tree
Showing 8 changed files with 6,133 additions and 5,944 deletions.
2 changes: 1 addition & 1 deletion src/libs/GitHub/Generated/GitHub.Models.CheckRun.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public sealed partial class CheckRun
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int Id { get; set; }
public required long Id { get; set; }

/// <summary>
/// The SHA of the commit that is being checked.<br/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

#nullable enable

namespace GitHub
{
/// <summary>
/// Repository rule violation was detected
/// </summary>
public sealed partial class RepositoryRuleViolationError
{
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("message")]
public string? Message { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("documentation_url")]
public string? DocumentationUrl { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
public string? Status { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("metadata")]
public global::GitHub.RepositoryRuleViolationErrorMetadata? Metadata { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

#nullable enable

namespace GitHub
{
/// <summary>
///
/// </summary>
public sealed partial class RepositoryRuleViolationErrorMetadata
{
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("secret_scanning")]
public global::GitHub.RepositoryRuleViolationErrorMetadataSecretScanning? SecretScanning { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

#nullable enable

namespace GitHub
{
/// <summary>
///
/// </summary>
public sealed partial class RepositoryRuleViolationErrorMetadataSecretScanning
{
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("bypass_placeholders")]
public global::System.Collections.Generic.IList<global::GitHub.RepositoryRuleViolationErrorMetadataSecretScanningBypassPlaceholder>? BypassPlaceholders { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

#nullable enable

namespace GitHub
{
/// <summary>
///
/// </summary>
public sealed partial class RepositoryRuleViolationErrorMetadataSecretScanningBypassPlaceholder
{
/// <summary>
/// The ID of the push protection bypass placeholder. This value is returned on any push protected routes.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("placeholder_id")]
public string? PlaceholderId { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("token_type")]
public string? TokenType { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ public enum WebhookWorkflowRunCompletedWorkflowRunConclusion
///
/// </summary>
TimedOut,
/// <summary>
///
/// </summary>
StartupFailure,
}

/// <summary>
Expand All @@ -62,6 +66,7 @@ public static string ToValueString(this WebhookWorkflowRunCompletedWorkflowRunCo
WebhookWorkflowRunCompletedWorkflowRunConclusion.Stale => "stale",
WebhookWorkflowRunCompletedWorkflowRunConclusion.Success => "success",
WebhookWorkflowRunCompletedWorkflowRunConclusion.TimedOut => "timed_out",
WebhookWorkflowRunCompletedWorkflowRunConclusion.StartupFailure => "startup_failure",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -80,6 +85,7 @@ public static string ToValueString(this WebhookWorkflowRunCompletedWorkflowRunCo
"stale" => WebhookWorkflowRunCompletedWorkflowRunConclusion.Stale,
"success" => WebhookWorkflowRunCompletedWorkflowRunConclusion.Success,
"timed_out" => WebhookWorkflowRunCompletedWorkflowRunConclusion.TimedOut,
"startup_failure" => WebhookWorkflowRunCompletedWorkflowRunConclusion.StartupFailure,
_ => null,
};
}
Expand Down
Loading

0 comments on commit cbd7dc7

Please sign in to comment.