mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-29 01:18:27 +00:00
Make required atlantis/apply status check work with mergeable (#2436)
* Make required apply work with mergeable * Fix lint hint * Migrate mergeable approval check to graphql, update tests * Adding support for check suites * Adding feature flag protection for new functionality * Fix linting falsepos * Adjusted logic to handle required check runs, added doc
This commit is contained in:
@@ -55,7 +55,8 @@ func (g *GithubAppController) ExchangeCode(w http.ResponseWriter, r *http.Reques
|
||||
|
||||
g.Logger.Debug("Exchanging GitHub app code for app credentials")
|
||||
creds := &vcs.GithubAnonymousCredentials{}
|
||||
client, err := vcs.NewGithubClient(g.GithubHostname, creds, g.Logger)
|
||||
config := vcs.GithubConfig{}
|
||||
client, err := vcs.NewGithubClient(g.GithubHostname, creds, config, g.Logger)
|
||||
if err != nil {
|
||||
g.respond(w, logging.Error, http.StatusInternalServerError, "Failed to exchange code for github app: %s", err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user