[feat]: Support make_latest for create and update release endpoints

This commit is contained in:
Jasper Arildslund
2023-08-03 23:26:58 +02:00
committed by GitHub
parent bbcd33d96e
commit 729f261ecb
4 changed files with 71 additions and 1 deletions
@@ -0,0 +1,14 @@
using Octokit.Internal;
namespace Octokit
{
public enum MakeLatestQualifier
{
[Parameter(Value = "true")]
True = 1,
[Parameter(Value = "false")]
False = 2,
[Parameter(Value = "legacy")]
Legacy = 3,
}
}
+10
View File
@@ -84,6 +84,16 @@ namespace Octokit
/// </value>
public bool GenerateReleaseNotes { get; set; }
/// <summary>
/// Specifies whether this release should be set as the latest release for the repository.
/// Drafts and prereleases cannot be set as latest. Defaults to true for newly published releases.
/// </summary>
/// <value>
/// <c>True</c> set release as latest;
/// <c>Legacy</c> specifies that the latest release should be determined based on the release creation date and higher semantic version.
/// </value>
public MakeLatestQualifier? MakeLatest { get; set; }
internal string DebuggerDisplay
{
get
+9
View File
@@ -63,6 +63,15 @@ namespace Octokit
/// </value>
public bool? Prerelease { get; set; }
/// <summary>
/// Specifies whether this release should be set as the latest release for the repository.
/// Drafts and prereleases cannot be set as latest. Defaults to true for newly published releases.
/// </summary>
/// <value>
/// <c>True</c> set release as latest;
/// <c>Legacy</c> specifies that the latest release should be determined based on the release creation date and higher semantic version.
/// </value>
public MakeLatestQualifier? MakeLatest { get; set; }
internal string DebuggerDisplay
{
get