-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Octokit Bot <[email protected]>
- Loading branch information
1 parent
0964075
commit 52628a5
Showing
79 changed files
with
213 additions
and
85 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
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,72 @@ | ||
// <auto-generated/> | ||
using Microsoft.Kiota.Abstractions.Serialization; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System; | ||
namespace GitHub.Models { | ||
public class PullRequestWebhook : PullRequest, IParsable | ||
{ | ||
/// <summary>Whether to allow auto-merge for pull requests.</summary> | ||
public bool? AllowAutoMerge { get; set; } | ||
/// <summary>Whether to allow updating the pull request's branch.</summary> | ||
public bool? AllowUpdateBranch { get; set; } | ||
/// <summary>Whether to delete head branches when pull requests are merged.</summary> | ||
public bool? DeleteBranchOnMerge { get; set; } | ||
/// <summary>The default value for a merge commit message.- `PR_TITLE` - default to the pull request's title.- `PR_BODY` - default to the pull request's body.- `BLANK` - default to a blank commit message.</summary> | ||
public PullRequestWebhook_merge_commit_message? MergeCommitMessage { get; set; } | ||
/// <summary>The default value for a merge commit title.- `PR_TITLE` - default to the pull request's title.- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").</summary> | ||
public PullRequestWebhook_merge_commit_title? MergeCommitTitle { get; set; } | ||
/// <summary>The default value for a squash merge commit message:- `PR_BODY` - default to the pull request's body.- `COMMIT_MESSAGES` - default to the branch's commit messages.- `BLANK` - default to a blank commit message.</summary> | ||
public PullRequestWebhook_squash_merge_commit_message? SquashMergeCommitMessage { get; set; } | ||
/// <summary>The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).</summary> | ||
public PullRequestWebhook_squash_merge_commit_title? SquashMergeCommitTitle { get; set; } | ||
/// <summary>Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**</summary> | ||
public bool? UseSquashPrTitleAsDefault { get; set; } | ||
/// <summary> | ||
/// Creates a new instance of the appropriate class based on discriminator value | ||
/// </summary> | ||
/// <returns>A <see cref="PullRequestWebhook"/></returns> | ||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> | ||
public static new PullRequestWebhook CreateFromDiscriminatorValue(IParseNode parseNode) | ||
{ | ||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); | ||
return new PullRequestWebhook(); | ||
} | ||
/// <summary> | ||
/// The deserialization information for the current model | ||
/// </summary> | ||
/// <returns>A IDictionary<string, Action<IParseNode>></returns> | ||
public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers() | ||
{ | ||
return new Dictionary<string, Action<IParseNode>>(base.GetFieldDeserializers()) | ||
{ | ||
{"allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, | ||
{"allow_update_branch", n => { AllowUpdateBranch = n.GetBoolValue(); } }, | ||
{"delete_branch_on_merge", n => { DeleteBranchOnMerge = n.GetBoolValue(); } }, | ||
{"merge_commit_message", n => { MergeCommitMessage = n.GetEnumValue<PullRequestWebhook_merge_commit_message>(); } }, | ||
{"merge_commit_title", n => { MergeCommitTitle = n.GetEnumValue<PullRequestWebhook_merge_commit_title>(); } }, | ||
{"squash_merge_commit_message", n => { SquashMergeCommitMessage = n.GetEnumValue<PullRequestWebhook_squash_merge_commit_message>(); } }, | ||
{"squash_merge_commit_title", n => { SquashMergeCommitTitle = n.GetEnumValue<PullRequestWebhook_squash_merge_commit_title>(); } }, | ||
{"use_squash_pr_title_as_default", n => { UseSquashPrTitleAsDefault = n.GetBoolValue(); } }, | ||
}; | ||
} | ||
/// <summary> | ||
/// Serializes information the current object | ||
/// </summary> | ||
/// <param name="writer">Serialization writer to use to serialize this model</param> | ||
public override void Serialize(ISerializationWriter writer) | ||
{ | ||
_ = writer ?? throw new ArgumentNullException(nameof(writer)); | ||
base.Serialize(writer); | ||
writer.WriteBoolValue("allow_auto_merge", AllowAutoMerge); | ||
writer.WriteBoolValue("allow_update_branch", AllowUpdateBranch); | ||
writer.WriteBoolValue("delete_branch_on_merge", DeleteBranchOnMerge); | ||
writer.WriteEnumValue<PullRequestWebhook_merge_commit_message>("merge_commit_message", MergeCommitMessage); | ||
writer.WriteEnumValue<PullRequestWebhook_merge_commit_title>("merge_commit_title", MergeCommitTitle); | ||
writer.WriteEnumValue<PullRequestWebhook_squash_merge_commit_message>("squash_merge_commit_message", SquashMergeCommitMessage); | ||
writer.WriteEnumValue<PullRequestWebhook_squash_merge_commit_title>("squash_merge_commit_title", SquashMergeCommitTitle); | ||
writer.WriteBoolValue("use_squash_pr_title_as_default", UseSquashPrTitleAsDefault); | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/GitHub/Models/PullRequestWebhook_merge_commit_message.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,15 @@ | ||
// <auto-generated/> | ||
using System.Runtime.Serialization; | ||
using System; | ||
namespace GitHub.Models { | ||
/// <summary>The default value for a merge commit message.- `PR_TITLE` - default to the pull request's title.- `PR_BODY` - default to the pull request's body.- `BLANK` - default to a blank commit message.</summary> | ||
public enum PullRequestWebhook_merge_commit_message | ||
{ | ||
[EnumMember(Value = "PR_BODY")] | ||
PR_BODY, | ||
[EnumMember(Value = "PR_TITLE")] | ||
PR_TITLE, | ||
[EnumMember(Value = "BLANK")] | ||
BLANK, | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/GitHub/Models/PullRequestWebhook_merge_commit_title.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,13 @@ | ||
// <auto-generated/> | ||
using System.Runtime.Serialization; | ||
using System; | ||
namespace GitHub.Models { | ||
/// <summary>The default value for a merge commit title.- `PR_TITLE` - default to the pull request's title.- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").</summary> | ||
public enum PullRequestWebhook_merge_commit_title | ||
{ | ||
[EnumMember(Value = "PR_TITLE")] | ||
PR_TITLE, | ||
[EnumMember(Value = "MERGE_MESSAGE")] | ||
MERGE_MESSAGE, | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/GitHub/Models/PullRequestWebhook_squash_merge_commit_message.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,15 @@ | ||
// <auto-generated/> | ||
using System.Runtime.Serialization; | ||
using System; | ||
namespace GitHub.Models { | ||
/// <summary>The default value for a squash merge commit message:- `PR_BODY` - default to the pull request's body.- `COMMIT_MESSAGES` - default to the branch's commit messages.- `BLANK` - default to a blank commit message.</summary> | ||
public enum PullRequestWebhook_squash_merge_commit_message | ||
{ | ||
[EnumMember(Value = "PR_BODY")] | ||
PR_BODY, | ||
[EnumMember(Value = "COMMIT_MESSAGES")] | ||
COMMIT_MESSAGES, | ||
[EnumMember(Value = "BLANK")] | ||
BLANK, | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/GitHub/Models/PullRequestWebhook_squash_merge_commit_title.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,13 @@ | ||
// <auto-generated/> | ||
using System.Runtime.Serialization; | ||
using System; | ||
namespace GitHub.Models { | ||
/// <summary>The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).</summary> | ||
public enum PullRequestWebhook_squash_merge_commit_title | ||
{ | ||
[EnumMember(Value = "PR_TITLE")] | ||
PR_TITLE, | ||
[EnumMember(Value = "COMMIT_OR_PR_TITLE")] | ||
COMMIT_OR_PR_TITLE, | ||
} | ||
} |
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
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
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
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
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
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.