Table of Contents

Class GitHubOperations

Namespace
Ando.Operations
Assembly
ando.dll

GitHub-specific operations for pull requests, releases, and container registry. Methods register steps in the workflow rather than executing immediately.

public class GitHubOperations : OperationsBase
Inheritance
GitHubOperations
Inherited Members

Constructors

GitHubOperations(StepRegistry, IBuildLogger, Func<ICommandExecutor>, GitHubAuthHelper)

GitHub-specific operations for pull requests, releases, and container registry. Methods register steps in the workflow rather than executing immediately.

public GitHubOperations(StepRegistry registry, IBuildLogger logger, Func<ICommandExecutor> executorFactory, GitHubAuthHelper authHelper)

Parameters

registry StepRegistry
logger IBuildLogger
executorFactory Func<ICommandExecutor>
authHelper GitHubAuthHelper

Methods

CreatePr(Action<GitHubPrOptions>)

Creates a pull request on GitHub.

public void CreatePr(Action<GitHubPrOptions> configure)

Parameters

configure Action<GitHubPrOptions>

Configuration for the pull request.

CreateRelease(Action<GitHubReleaseOptions>)

Creates a GitHub release with optional file uploads.

public void CreateRelease(Action<GitHubReleaseOptions> configure)

Parameters

configure Action<GitHubReleaseOptions>

Configuration for the release.

PushImage(string, Action<GitHubImageOptions>?)

Pushes a Docker image to GitHub Container Registry (ghcr.io). The image must already be built and tagged locally.

public void PushImage(string imageName, Action<GitHubImageOptions>? configure = null)

Parameters

imageName string

The local image name (without registry prefix).

configure Action<GitHubImageOptions>

Configuration for the push.