pkg/ghclient/wrappers.go
func (c *Client) GetCombinedStatus(owner, repo, ref string) (*github.CombinedStatus, error) {
	var result *github.CombinedStatus
	listOpts := &github.ListOptions{}

	statuses, err := c.depaginate(
		fmt.Sprintf("getting combined status for ref '%s'", ref),
		listOpts,
		func() ([]interface{}, *github.Response, error) {
			combined, resp, err := c.repoService.GetCombinedStatus(
				context.Background(),
				owner,
				repo,
				ref,
				listOpts,
			)
			if result == nil {
				result = combined
			}

			var interfaceList []interface{}
			if err == nil {
				interfaceList = make([]interface{}, 0, len(combined.Statuses))
				for _, status := range combined.Statuses {
					interfaceList = append(interfaceList, status)
				}
			}
			return interfaceList, resp, err
		},
	)

	if result != nil {
		result.Statuses = make([]github.RepoStatus, 0, len(statuses))
		for _, status := range statuses {
			result.Statuses = append(result.Statuses, status.(github.RepoStatus))
		}
	}

	return result, err
}
func (c *Client) GetCombinedStatus(owner, repo, ref string) (*github.CombinedStatus, error) {
	var result *github.CombinedStatus
	listOpts := &github.ListOptions{}

	statuses, err := c.depaginate(
		fmt.Sprintf("getting combined status for ref '%s'", ref),
		listOpts,
		func() ([]interface{}, *github.Response, error) {
			combined, resp, err := c.repoService.GetCombinedStatus(
				context.Background(),
				owner,
				repo,
				ref,
				listOpts,
			)
			if result == nil {
				result = combined
			}

			var interfaceList []interface{}
			if err == nil {
				interfaceList = make([]interface{}, 0, len(combined.Statuses))
				for _, status := range combined.Statuses {
					interfaceList = append(interfaceList, status)
				}
			}
			return interfaceList, resp, err
		},
	)

	if result != nil {
		result.Statuses = make([]github.RepoStatus, 0, len(statuses))
		for _, status := range statuses {
			result.Statuses = append(result.Statuses, status.(github.RepoStatus))
		}
	}

	return result, err
}
func ( c * Client ) GetCombinedStatus ( owner , repo , ref string ) ( * github . CombinedStatus , error ) { var result * github . CombinedStatus listOpts := & github . ListOptions { } statuses , err := c . depaginate ( fmt . Sprintf ( " " , ref ) , listOpts , func ( ) ( [ ] interface { } , * github . Response , error ) { combined , resp , err := c . repoService . GetCombinedStatus ( context . Background ( ) , owner , repo , ref , listOpts , ) if result == nil { result = combined } var interfaceList [ ] interface { } if err == nil { interfaceList = make ( [ ] interface { } , 0 , len ( combined . Statuses ) ) for _ , status := range combined . Statuses { interfaceList = append ( interfaceList , status ) } } return interfaceList , resp , err } , ) if result != nil { result . Statuses = make ( [ ] github . RepoStatus , 0 , len ( statuses ) ) for _ , status := range statuses { result . Statuses = append ( result . Statuses , status . ( github . RepoStatus ) ) } } return result , err }
// GetCombinedStatus retrieves the CombinedStatus for the specified reference.
GetCombinedStatus retrieves the CombinedStatus for the specified reference .