// GetRepository makes API calls to get the Repository.
// If using the Spec name the repository is not found, a second attempt
// is made with the status name. This is useful when updating the Repository name.
GetRepository makes API calls to get the Repository.
If using the Spec name the repository is not found, a second attempt
is made with the status name. This is useful when updating the Repository name.
// GetRepository makes API calls to get the Repository . // If using the Spec name the repository is not found a second attempt // is made with the status name . This is useful when updating the Repository name .
func (e *external) GetRepository(ctx context.Context, owner, specName, statusName string) (*github.Repository, *github.Response, error) {
	repo, res, err := e.gh.Get(ctx, owner, specName)
	if err == nil {
		return repo, res, nil
	}
	repo, res, err = e.gh.Get(ctx, owner, statusName)
	if err != nil {
		return nil, res, err
	}
	return repo, res, nil
}
func ( e * external ) GetRepository ( ctx context . Context , owner , specName , statusName string ) ( * github . Repository , * github . Response , error ) { repo , res , err := e . gh . Get ( ctx , owner , specName ) if err == nil { return repo , res , nil } repo , res , err = e . gh . Get ( ctx , owner , statusName ) if err != nil { return nil , res , err } return repo , res , nil }
GetRepository makes API calls to get the Repository.
GetRepository makes API calls to get the Repository .