mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 12:26:18 +00:00
[feat]: Support make_latest for create and update release endpoints
This commit is contained in:
committed by
GitHub
parent
bbcd33d96e
commit
729f261ecb
@@ -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,
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user