Documentation ¶
Overview ¶
Copyright (C) 2016 The BlameWarrior Authors.
This file is a part of BlameWarrior service.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrRateLimitReached = errors.New("GitHub API request rate limit reached") ErrNoSuchRepository = errors.New("no such repository") )
Functions ¶
func SplitRepositoryName ¶
SplitRepositoryName splits full GitHub repository name into owner and name parts.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps github.com/google/go-github/github.Client providing methods adapted for BlameWarrior use cases.
func (*Client) RepositoryCollaborators ¶
func (c *Client) RepositoryCollaborators(ctx Context, repoFullName string) (collaborators []blamewarrior.Account, err error)
RepositoryCollaborators returns GitHub nicknames of collaborators of given repository.