Class GitHubReleaseOptions
- Namespace
- Ando.Operations
- Assembly
- ando.dll
Options for creating a GitHub release.
public class GitHubReleaseOptions
- Inheritance
-
GitHubReleaseOptions
- Inherited Members
Properties
Draft
Create as draft release.
public bool Draft { get; }
Property Value
Files
Files to upload as release assets.
public List<string> Files { get; }
Property Value
GenerateNotes
Auto-generate release notes.
public bool GenerateNotes { get; }
Property Value
NoPrefix
Don't add 'v' prefix to tag.
public bool NoPrefix { get; }
Property Value
Notes
Release notes.
public string? Notes { get; }
Property Value
Prerelease
Mark as pre-release.
public bool Prerelease { get; }
Property Value
Tag
Tag name for the release.
public string? Tag { get; }
Property Value
Title
Release title.
public string? Title { get; }
Property Value
Methods
AsDraft()
Creates as a draft release.
public GitHubReleaseOptions AsDraft()
Returns
AsPrerelease()
Marks as a pre-release.
public GitHubReleaseOptions AsPrerelease()
Returns
WithFiles(params string[])
Adds files to upload as release assets.
public GitHubReleaseOptions WithFiles(params string[] files)
Parameters
filesstring[]
Returns
WithGeneratedNotes()
Auto-generates release notes from commits.
public GitHubReleaseOptions WithGeneratedNotes()
Returns
WithNotes(string)
Sets the release notes.
public GitHubReleaseOptions WithNotes(string notes)
Parameters
notesstring
Returns
WithTag(string)
Sets the tag name.
public GitHubReleaseOptions WithTag(string tag)
Parameters
tagstring
Returns
WithTitle(string)
Sets the release title.
public GitHubReleaseOptions WithTitle(string title)
Parameters
titlestring
Returns
WithoutPrefix()
Don't add 'v' prefix to tag.
public GitHubReleaseOptions WithoutPrefix()