feat: filter out atlantis/apply from mergeability clause (#1856)

Filter out atlantis apply status during mergeability check.
This commit is contained in:
Nish Krishnan
2021-10-19 13:51:22 -07:00
committed by GitHub
parent 8093b8864a
commit d01796b9d9
11 changed files with 312 additions and 55 deletions

View File

@@ -18,6 +18,7 @@ type GithubAppController struct {
GithubSetupComplete bool
GithubHostname string
GithubOrg string
GithubStatusName string
}
type githubWebhook struct {
@@ -55,7 +56,7 @@ 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)
client, err := vcs.NewGithubClient(g.GithubHostname, creds, g.Logger, g.GithubStatusName)
if err != nil {
g.respond(w, logging.Error, http.StatusInternalServerError, "Failed to exchange code for github app: %s", err)
return