Documentation ¶
Index ¶
- Constants
- Variables
- func AddAssignee(ctx context.Context, prEvent github.PullRequestEvent, client *github.Client, ...) error
- func AddReviewer(ctx context.Context, login, repoName string, prNum int, client *github.Client, ...) error
- func GetMatchList(login string, matchesList [][]string) ([]string, []string)
- func Handle(client *github.Client, event github.IssueCommentEvent) error
- func HandlePRAssign(ctx context.Context, prEvent github.PullRequestEvent, client *github.Client) error
- func HandlePRReviewer(ctx context.Context, prEvent github.PullRequestEvent, client *github.Client) error
- func RemoveAssignee(ctx context.Context, prEvent github.PullRequestEvent, client *github.Client, ...) error
- func RemoveReviewer(ctx context.Context, login, repoName string, prNum int, client *github.Client, ...) error
- func ReviewerReqByComment(client *github.Client, event github.IssueCommentEvent) error
Constants ¶
View Source
const ( Assign = "/assign" Unassign = "/unassign" )
Variables ¶
View Source
var ( AssignRegExp = regexp.MustCompile(`(?mi)^/(un)?assign(( @?[-\w]+?)*)\s*$`) // ccRegexp parses and validates /cc commands, also used by blunderbuss CCRegExp = regexp.MustCompile(`(?mi)^/(un)?cc(( +@?[-/\w]+?)*)\s*$`) )
Functions ¶
func AddAssignee ¶
func AddAssignee(ctx context.Context, prEvent github.PullRequestEvent, client *github.Client, listOfAssignees []string) error
AddAssignee function to add assignee to the PR
func AddReviewer ¶
func AddReviewer(ctx context.Context, login, repoName string, prNum int, client *github.Client, listOfAssignees []string) error
AddReviewer function to add the reviewer to the PR
func GetMatchList ¶
GetMatchList to get the list of add and remove assignees
func Handle ¶
func Handle(client *github.Client, event github.IssueCommentEvent) error
Handle event with assign
func HandlePRAssign ¶
func HandlePRAssign(ctx context.Context, prEvent github.PullRequestEvent, client *github.Client) error
HandlePRAssign function to add assignee to the PR
func HandlePRReviewer ¶
func HandlePRReviewer(ctx context.Context, prEvent github.PullRequestEvent, client *github.Client) error
HandlePRReviewer to handle add and remove reviewers to the PR
func RemoveAssignee ¶
func RemoveAssignee(ctx context.Context, prEvent github.PullRequestEvent, client *github.Client, listOfAssignees []string) error
RemoveAssignee function to remove the assignee to the PR
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.