Table of Contents

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

string

Body

Body/description of the pull request.

public string? Body { get; }

Property Value

string

Draft

Create as draft PR.

public bool Draft { get; }

Property Value

bool

Head

Head branch containing the changes.

public string? Head { get; }

Property Value

string

Title

Title of the pull request.

public string? Title { get; }

Property Value

string

Methods

AsDraft()

Creates as a draft PR.

public GitHubPrOptions AsDraft()

Returns

GitHubPrOptions

WithBase(string)

Sets the base branch.

public GitHubPrOptions WithBase(string baseBranch)

Parameters

baseBranch string

Returns

GitHubPrOptions

WithBody(string)

Sets the PR body/description.

public GitHubPrOptions WithBody(string body)

Parameters

body string

Returns

GitHubPrOptions

WithHead(string)

Sets the head branch.

public GitHubPrOptions WithHead(string headBranch)

Parameters

headBranch string

Returns

GitHubPrOptions

WithTitle(string)

Sets the PR title.

public GitHubPrOptions WithTitle(string title)

Parameters

title string

Returns

GitHubPrOptions