Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateIssue(ctx context.Context, repo string, issueRequest *github.IssueRequest) (*github.Issue, error)
- func (c *Client) DeleteInstallation(ctx context.Context, installation string) error
- func (c *Client) GetInstallationOwner(ctx context.Context) (*string, error)
- func (c *Client) GetLatestCommitHash(ctx context.Context, githubPath string) (string, *github.Response, error)
- func (c *Client) GetRepoBlob(ctx context.Context, githubPath string, blobSHA string) (*github.Blob, *github.Response, error)
- func (c *Client) GetRepoContent(ctx context.Context, githubPath string, path string, version string) (fileContent *github.RepositoryContent, ...)
- func (c *Client) ListLabels(ctx context.Context, repo string) ([]*github.Label, error)
- func (c *Client) ListRepos(ctx context.Context) (repos []*github.Repository, err error)
- func (c *Client) SearchIssues(ctx context.Context, rawQuery string) ([]*github.Issue, error)
- type ClientInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
NewClient creates a GitHub client using the installation workflow (https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation). installation corresponds to the numeric installation ID provided by the installation setup workflow. On its own, the installation ID does not provide access to any GitHub resources, but when paired with the app ID and private key, allows us to access a particular organization's entities.
func (*Client) CreateIssue ¶
func (*Client) DeleteInstallation ¶
func (*Client) GetInstallationOwner ¶
func (*Client) GetLatestCommitHash ¶
func (*Client) GetRepoBlob ¶
func (*Client) GetRepoContent ¶
func (*Client) ListLabels ¶
type ClientInterface ¶
type ClientInterface interface { CreateIssue(ctx context.Context, repo string, issueRequest *github.IssueRequest) (*github.Issue, error) ListLabels(ctx context.Context, repo string) ([]*github.Label, error) ListRepos(ctx context.Context) ([]*github.Repository, error) DeleteInstallation(ctx context.Context, installation string) error GetRepoContent(ctx context.Context, githubPath string, path string, version string) (fileContent *github.RepositoryContent, directoryContent []*github.RepositoryContent, resp *github.Response, err error) GetRepoBlob(ctx context.Context, githubPath string, blobSHA string) (*github.Blob, *github.Response, error) GetLatestCommitHash(ctx context.Context, githubPath string) (string, *github.Response, error) SearchIssues(ctx context.Context, rawQuery string) ([]*github.Issue, error) }
Click to show internal directories.
Click to hide internal directories.