Skip to content

Instantly share code, notes, and snippets.

@nodox
Created July 6, 2020 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nodox/0bddcfc298bcd5908d014c8887d60cd9 to your computer and use it in GitHub Desktop.
Save nodox/0bddcfc298bcd5908d014c8887d60cd9 to your computer and use it in GitHub Desktop.
setting := false
triggerCheck := github.AutoTriggerCheck{
AppID: &conf.GithubApp.GithubAppIdentifier,
Setting: &setting,
}
triggers := []*github.AutoTriggerCheck{
&triggerCheck,
}
opts := github.CheckSuitePreferenceOptions{
AutoTriggerChecks: triggers,
}
ghClient.Checks.SetCheckSuitePreferences(
context.Background(),
payload.Repo.Owner.GetLogin(),
payload.Repo.GetName(),
opts,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment