prcommon

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPullRequestIDs

func GetPullRequestIDs(context context.Context, cmd *cobra.Command, args []string, toComplete string) (ids []string, err error)

GetPullRequestIDs gets the IDs of the pullrequests

First only the open pullrequests are fetched, if none are found, all pullrequests are fetched

func GetPullRequestIDsWithState

func GetPullRequestIDsWithState(context context.Context, cmd *cobra.Command, state string) (ids []string, err error)

GetPullRequestIDsWithState gets the pullrequest Ids for completion for a given state

Types

type PullRequestID

type PullRequestID struct {
	ID int `json:"id" mapstructure:"id"`
}

Jump to

Keyboard shortcuts

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