Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPullRequestChangedLines ¶
func GetPullRequestChangedLines( ctx context.Context, client *github.Client, owner, repo string, number int, ) (int, error)
GetPullRequestSize returns the total number of changed lines of the specified pull request.
func SetLabelOnPullRequest ¶
func SetLabelOnPullRequest( ctx context.Context, client *github.Client, owner, repo string, number int, size Size, ) error
SetLabelOnPullRequest checks the current labels on the pull request. If there exists a label for pull request size, the function replaces it with the proper label. Otherwise, the function just attach the proper label.
Types ¶
Click to show internal directories.
Click to hide internal directories.