code: func (s *ChecksService) SetCheckSuitePreferences(ctx context.Context, owner, repo string, opt CheckSuitePreferenceOptions) (*CheckSuitePreferenceResults, *Response, error) {
  	u := fmt.Sprintf("repos/%v/%v/check-suites/preferences", owner, repo)
  	req, err := s.client.NewRequest("PATCH", u, opt)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	req.Header.Set("Accept", mediaTypeCheckRunsPreview)
  
  	var checkSuitePrefResults *CheckSuitePreferenceResults
  	resp, err := s.client.Do(ctx, req, &checkSuitePrefResults)
  	if err != nil {
  		return nil, resp, err
  	}
  
  	return checkSuitePrefResults, resp, nil
  }
docs: // SetCheckSuitePreferences changes the default automatic flow when creating check suites.
  //
  // GitHub API docs: https://developer.github.com/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository