github.com/argoproj/argo-cd/v2@v2.10.9/applicationset/services/pull_request/interface.go (about) 1 package pull_request 2 3 import ( 4 "context" 5 "regexp" 6 ) 7 8 type PullRequest struct { 9 // Number is a number that will be the ID of the pull request. 10 Number int 11 // Branch is the name of the branch from which the pull request originated. 12 Branch string 13 // TargetBranch is the name of the target branch of the pull request. 14 TargetBranch string 15 // HeadSHA is the SHA of the HEAD from which the pull request originated. 16 HeadSHA string 17 // Labels of the pull request. 18 Labels []string 19 } 20 21 type PullRequestService interface { 22 // List gets a list of pull requests. 23 List(ctx context.Context) ([]*PullRequest, error) 24 } 25 26 type Filter struct { 27 BranchMatch *regexp.Regexp 28 TargetBranchMatch *regexp.Regexp 29 }