github

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package github provides GitHub SCM integration for batch-tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, project string) scm.Provider

New creates a new GitHub provider instance.

Types

type Github

type Github struct {
	// contains filtered or unexported fields
}

Github implements the scm.Provider interface for GitHub.

func (*Github) GetPullRequest

func (g *Github) GetPullRequest(repo, branch string) (*scm.PullRequest, error)

GetPullRequest retrieves a pull request by repository name and source branch.

func (*Github) ListRepositories

func (g *Github) ListRepositories() ([]*scm.Repository, error)

ListRepositories lists all repositories in the specified project. Supports both organization and user repositories.

func (*Github) MergePullRequest

func (g *Github) MergePullRequest(repo, branch string, force bool) (*scm.PullRequest, error)

MergePullRequest merges an existing pull request

func (*Github) OpenPullRequest

func (g *Github) OpenPullRequest(repo, branch, title, description string, reviewers []string) (*scm.PullRequest, error)

OpenPullRequest opens a new pull request in the specified repository.

func (*Github) UpdatePullRequest

func (g *Github) UpdatePullRequest(repo, branch, title, description string, reviewers []string, _ bool) (*scm.PullRequest, error)

UpdatePullRequest updates an existing pull request.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL