Class GitHubPrOptions
- Namespace
- Ando.Operations
- Assembly
- ando.dll
Options for creating a GitHub pull request.
public class GitHubPrOptions
- Inheritance
-
GitHubPrOptions
- Inherited Members
Properties
Base
Base branch to merge into (default: main).
public string? Base { get; }
Property Value
Body
Body/description of the pull request.
public string? Body { get; }
Property Value
Draft
Create as draft PR.
public bool Draft { get; }
Property Value
Head
Head branch containing the changes.
public string? Head { get; }
Property Value
Title
Title of the pull request.
public string? Title { get; }
Property Value
Methods
AsDraft()
Creates as a draft PR.
public GitHubPrOptions AsDraft()
Returns
WithBase(string)
Sets the base branch.
public GitHubPrOptions WithBase(string baseBranch)
Parameters
baseBranchstring
Returns
WithBody(string)
Sets the PR body/description.
public GitHubPrOptions WithBody(string body)
Parameters
bodystring
Returns
WithHead(string)
Sets the head branch.
public GitHubPrOptions WithHead(string headBranch)
Parameters
headBranchstring
Returns
WithTitle(string)
Sets the PR title.
public GitHubPrOptions WithTitle(string title)
Parameters
titlestring