-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: new app permissions * feat: new `subject_type` property for `PullRequestReviewComment` events * feat: new properties for `workflow_job` events * feat: new `has_discussions` property on `Repository` schema * fix: update schema for `organization.renamed` event * fix: update types for `registry_package` event * feat: add new properties to `merge_group` event * feat: new properties found on the `repository` object * feat: new `cve_id` for `SecurityAdvisoryEvent` * misc fixes * ci: update sample payloads
- Loading branch information
1 parent
b6e30b0
commit dcae15e
Showing
39 changed files
with
1,077 additions
and
290 deletions.
There are no files selected for viewing
6 changes: 4 additions & 2 deletions
6
src/Octokit.Webhooks/Events/Organization/OrganizationRenamedEvent.cs
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
namespace Octokit.Webhooks.Events.Organization; | ||
|
||
using Octokit.Webhooks.Models.OrganizationEvent; | ||
|
||
[PublicAPI] | ||
[WebhookActionType(OrganizationActionValue.Renamed)] | ||
public sealed record OrganizationRenamedEvent : OrganizationEvent | ||
{ | ||
[JsonPropertyName("action")] | ||
public override string Action => OrganizationAction.Renamed; | ||
|
||
[JsonPropertyName("membership")] | ||
public Octokit.Webhooks.Models.Membership Membership { get; init; } = null!; | ||
[JsonPropertyName("changes")] | ||
public Changes Changes { get; init; } = null!; | ||
} |
14 changes: 14 additions & 0 deletions
14
src/Octokit.Webhooks/Events/RegistryPackage/RegistryPackageAction.cs
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,14 @@ | ||
namespace Octokit.Webhooks.Events.RegistryPackage; | ||
|
||
[PublicAPI] | ||
public sealed record RegistryPackageAction : WebhookEventAction | ||
{ | ||
public static readonly RegistryPackageAction Published = new(RegistryPackageActionValue.Published); | ||
|
||
public static readonly RegistryPackageAction Updated = new(RegistryPackageActionValue.Updated); | ||
|
||
private RegistryPackageAction(string value) | ||
: base(value) | ||
{ | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/Octokit.Webhooks/Events/RegistryPackage/RegistryPackageActionValue.cs
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,8 @@ | ||
namespace Octokit.Webhooks.Events.RegistryPackage; | ||
|
||
public static class RegistryPackageActionValue | ||
{ | ||
public const string Published = "published"; | ||
|
||
public const string Updated = "updated"; | ||
} |
9 changes: 9 additions & 0 deletions
9
src/Octokit.Webhooks/Events/RegistryPackage/RegistryPackagePublishedEvent.cs
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,9 @@ | ||
namespace Octokit.Webhooks.Events.RegistryPackage; | ||
|
||
[PublicAPI] | ||
[WebhookActionType(RegistryPackageActionValue.Published)] | ||
public sealed record RegistryPackagePublishedEvent : RegistryPackageEvent | ||
{ | ||
[JsonPropertyName("action")] | ||
public override string Action => RegistryPackageAction.Published; | ||
} |
9 changes: 9 additions & 0 deletions
9
src/Octokit.Webhooks/Events/RegistryPackage/RegistryPackageUpdatedEvent.cs
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,9 @@ | ||
namespace Octokit.Webhooks.Events.RegistryPackage; | ||
|
||
[PublicAPI] | ||
[WebhookActionType(RegistryPackageActionValue.Updated)] | ||
public sealed record RegistryPackageUpdatedEvent : RegistryPackageEvent | ||
{ | ||
[JsonPropertyName("action")] | ||
public override string Action => RegistryPackageAction.Updated; | ||
} |
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
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,14 @@ | ||
namespace Octokit.Webhooks.Models; | ||
|
||
[PublicAPI] | ||
public sealed record ContainerMetadata | ||
{ | ||
[JsonPropertyName("labels")] | ||
public IDictionary<string, dynamic>? Labels { get; init; } | ||
|
||
[JsonPropertyName("manifest")] | ||
public IDictionary<string, dynamic>? Manifest { get; init; } | ||
|
||
[JsonPropertyName("tag")] | ||
public ContainerMetadataTag? Tag { get; init; } | ||
} |
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,11 @@ | ||
namespace Octokit.Webhooks.Models; | ||
|
||
[PublicAPI] | ||
public sealed record ContainerMetadataTag | ||
{ | ||
[JsonPropertyName("digest")] | ||
public string? Digest { get; init; } | ||
|
||
[JsonPropertyName("name")] | ||
public string? Name { get; init; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Octokit.Webhooks.Models.OrganizationEvent; | ||
|
||
[PublicAPI] | ||
public sealed record Changes | ||
{ | ||
[JsonPropertyName("login")] | ||
public ChangesLogin Login { get; init; } = null!; | ||
} |
8 changes: 8 additions & 0 deletions
8
src/Octokit.Webhooks/Models/OrganizationEvent/ChangesLogin.cs
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,8 @@ | ||
namespace Octokit.Webhooks.Models.OrganizationEvent; | ||
|
||
[PublicAPI] | ||
public record ChangesLogin | ||
{ | ||
[JsonPropertyName("from")] | ||
public string From { get; init; } = null!; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace Octokit.Webhooks.Models; | ||
|
||
[PublicAPI] | ||
[JsonConverter(typeof(JsonStringEnumMemberConverterWithFallback))] | ||
public enum PackageType | ||
{ | ||
Unknown = -1, | ||
[EnumMember(Value = "npm")] | ||
Npm, | ||
[EnumMember(Value = "maven")] | ||
Maven, | ||
[EnumMember(Value = "rubygems")] | ||
RubyGems, | ||
[EnumMember(Value = "docker")] | ||
Docker, | ||
[EnumMember(Value = "nuget")] | ||
NuGet, | ||
[EnumMember(Value = "CONTAINER")] | ||
Container, | ||
} |
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
12 changes: 12 additions & 0 deletions
12
src/Octokit.Webhooks/Models/PullRequestReviewCommentSubjectType.cs
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,12 @@ | ||
namespace Octokit.Webhooks.Models; | ||
|
||
[PublicAPI] | ||
[JsonConverter(typeof(JsonStringEnumMemberConverterWithFallback))] | ||
public enum PullRequestReviewCommentSubjectType | ||
{ | ||
Unknown = -1, | ||
[EnumMember(Value = "line")] | ||
Line, | ||
[EnumMember(Value = "file")] | ||
File, | ||
} |
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
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
Oops, something went wrong.