pr

package
v0.0.0-...-86e8cfb Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package pr contains the logic for creating and updating pull requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForExistingPR

func CheckForExistingPR(exe utils.Executor, branchID string) (string, error)

CheckForExistingPR checks if a PR already exists for the current branch.

func Execute

func Execute(exe utils.Executor, options *Options) error

Execute creates or updates a pull request, depending on its current state.

func GetPRTitle

func GetPRTitle(exe utils.Executor) (string, error)

GetPRTitle gets the title of the current PR.

Types

type Options

type Options struct {
	AutoConfirm bool

	Reviewers []string
	Assignees []string
	// contains filtered or unexported fields
}

Options represents the options for the pr command.

type PullRequest

type PullRequest struct {
	Title string
	Body  string
}

PullRequest represents a pull request.

Jump to

Keyboard shortcuts

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