github.com/argoproj/argo-cd/v2@v2.10.9/applicationset/services/pull_request/github_app.go (about)

     1  package pull_request
     2  
     3  import (
     4  	"github.com/argoproj/argo-cd/v2/applicationset/services/github_app_auth"
     5  	"github.com/argoproj/argo-cd/v2/applicationset/services/internal/github_app"
     6  )
     7  
     8  func NewGithubAppService(g github_app_auth.Authentication, url, owner, repo string, labels []string) (PullRequestService, error) {
     9  	client, err := github_app.Client(g, url)
    10  	if err != nil {
    11  		return nil, err
    12  	}
    13  	return &GithubService{
    14  		client: client,
    15  		owner:  owner,
    16  		repo:   repo,
    17  		labels: labels,
    18  	}, nil
    19  }