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

     1  package scm_provider
     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 NewGithubAppProviderFor(g github_app_auth.Authentication, organization string, url string, allBranches bool) (*GithubProvider, error) {
     9  	client, err := github_app.Client(g, url)
    10  	if err != nil {
    11  		return nil, err
    12  	}
    13  	return &GithubProvider{client: client, organization: organization, allBranches: allBranches}, nil
    14  }