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
registryStepRegistryloggerIBuildLoggerexecutorFactoryFunc<ICommandExecutor>authHelperGitHubAuthHelper
Methods
CreatePr(Action<GitHubPrOptions>)
Creates a pull request on GitHub.
public void CreatePr(Action<GitHubPrOptions> configure)
Parameters
configureAction<GitHubPrOptions>Configuration for the pull request.
CreateRelease(Action<GitHubReleaseOptions>)
Creates a GitHub release with optional file uploads.
public void CreateRelease(Action<GitHubReleaseOptions> configure)
Parameters
configureAction<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
imageNamestringThe local image name (without registry prefix).
configureAction<GitHubImageOptions>Configuration for the push.