Created
July 6, 2020 01:37
-
-
Save nodox/0bddcfc298bcd5908d014c8887d60cd9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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