Documentation
¶
Overview ¶
Package githubapi contains functionality related to the GitHub API
Index ¶
- func CreatePRDescription(changeInfo config.ChangeInfo) string
- func CreatePullRequest(client *github.Client, org string, repo string, baseBranch string, ...) error
- func GetFileContent(client *github.Client, org string, repo string, path string) ([]byte, error)
- func GetGitHubClient(accessToken string) *github.Client
- func GetRepoFileList(client *github.Client, org string, repo string, defaultBranch string) []string
- func GetRepositories(client *github.Client, org string) map[string]github.Repository
- func GetRepository(client *github.Client, org string, repo string) (*github.Repository, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePRDescription ¶
func CreatePRDescription(changeInfo config.ChangeInfo) string
CreatePRDescription renders the body of the PR to be created.
func CreatePullRequest ¶
func CreatePullRequest(client *github.Client, org string, repo string, baseBranch string, prDesc string, content string, toolConfig config.ToolConfig) error
CreatePullRequest creates a PR for an update of dependabot.yml
func GetFileContent ¶
GetFileContent returns the content of a file
func GetGitHubClient ¶
GetGitHubClient returns a GitHub client for API calls
func GetRepoFileList ¶
GetRepoFileList returns a list (strings) of all files in a repo, including their path.
func GetRepositories ¶
GetRepositories returns a map of GitHub repos
func GetRepository ¶
GetRepository gets a repository object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.