github

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package github provides GitHub API operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLabels

func AddLabels(ctx context.Context, apiURL, token, owner, repo string, prNumber int, labels []string) error

AddLabels adds labels to a pull request.

func EnableAutoMerge

func EnableAutoMerge(ctx context.Context, graphqlURL, token, prNodeID, mergeMethod string) error

EnableAutoMerge enables auto-merge on a pull request via GraphQL.

func RequestReviewers

func RequestReviewers(ctx context.Context, apiURL, token, owner, repo string, prNumber int, reviewers []string) error

RequestReviewers requests reviewers for a pull request.

Types

type PRData

type PRData struct {
	Number  int
	HTMLURL string
	NodeID  string
}

PRData contains pull request information.

func CreatePullRequest

func CreatePullRequest(ctx context.Context, apiURL, token, owner, repo, title, body, head, base string) (*PRData, error)

CreatePullRequest creates a new pull request.

Jump to

Keyboard shortcuts

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