code: func (r *Repository) GetDefaultBranch() string {
  	if r == nil || r.DefaultBranch == nil {
  		return ""
  	}
  	return *r.DefaultBranch
  }
docs: // GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise.