pull_request

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPullRequestBody

func BuildPullRequestBody(changes []string, breakingChange bool) (string, error)

BuildPullRequestBody reads the pull request template, takes parameters, and updates the content.

func CommitAndPull

func CommitAndPull(repoPath, branchName, commitMessage, base string, changes []string, breakingChange, allFlag bool) error

CommitAndPull commits changes, creates a pull request, and optionally processes subdirectories if `allFlag` is true.

func CreatePullRequest

func CreatePullRequest(repoPath, commitMessage, branch, base string, changes []string, breakingChange bool) (string, error)

CreatePullRequest creates a new pull request on GitHub

func ProcessSingleRepository

func ProcessSingleRepository(repoPath, branchName, commitMessage, base string, changes []string, breakingChange bool) error

ProcessSingleRepository commits changes and creates a pull request for a single repository

func ProcessSubdirectories

func ProcessSubdirectories(repoPath, branchName, commitMessage, base string, changes []string, breakingChange bool) error

ProcessSubdirectories iterates over subdirectories and calls CommitAndPull on each

Types

type PullRequest

type PullRequest struct {
	Title string `json:"title"`
	Body  string `json:"body"`
	Head  string `json:"head"`
	Base  string `json:"base"`
}

PullRequest represents the body of a pull request creation request

Jump to

Keyboard shortcuts

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