using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Used to update a release. /// /// /// API: https://developer.github.com/v3/repos/releases/#create-a-release /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class ReleaseUpdate { /// /// Gets the name of the tag. /// /// /// The name of the tag. /// public string TagName { get; set; } /// /// Specifies the commitish value that determines where the Git tag is created from. Can be any branch or /// commit SHA. Unused if the Git tag already exists. Default: the repository’s default branch /// (usually master). /// /// /// The target commitish. /// public string TargetCommitish { get; set; } /// /// Gets or sets the name of the release. /// /// /// The name. /// public string Name { get; set; } /// /// Gets or sets the text describing the contents of the tag. /// /// /// The body. /// public string Body { get; set; } /// /// Gets or sets a value indicating whether this is a draft (unpublished). /// Default: false /// /// /// true if draft; otherwise, false. /// public bool? Draft { get; set; } /// /// Gets or sets a value indicating whether this is prerelease. /// /// /// true if prerelease; otherwise, false. /// public bool? Prerelease { get; set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Name: {0} TagName: {1}", Name, TagName); } } } }