-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
pull_request.{demilestoned, milestoned}
events (#237)
- Loading branch information
1 parent
3842a28
commit 14cc92c
Showing
5 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
14 changes: 14 additions & 0 deletions
14
src/Octokit.Webhooks/Events/PullRequest/PullRequestDemilestoned.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.PullRequest; | ||
|
||
using Milestone = Octokit.Webhooks.Models.Milestone; | ||
|
||
[PublicAPI] | ||
[WebhookActionType(PullRequestActionValue.Demilestoned)] | ||
public sealed record PullRequestDemilestoned : PullRequestEvent | ||
{ | ||
[JsonPropertyName("action")] | ||
public override string Action => PullRequestAction.Demilestoned; | ||
|
||
[JsonPropertyName("milestone")] | ||
public Milestone Milestone { get; init; } = null!; | ||
} |
14 changes: 14 additions & 0 deletions
14
src/Octokit.Webhooks/Events/PullRequest/PullRequestMilestoned.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.PullRequest; | ||
|
||
using Milestone = Octokit.Webhooks.Models.Milestone; | ||
|
||
[PublicAPI] | ||
[WebhookActionType(PullRequestActionValue.Milestoned)] | ||
public sealed record PullRequestMilestoned : PullRequestEvent | ||
{ | ||
[JsonPropertyName("action")] | ||
public override string Action => PullRequestAction.Milestoned; | ||
|
||
[JsonPropertyName("milestone")] | ||
public Milestone Milestone { 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