Documentation
¶
Index ¶
- func CompareYAML(yaml1, yaml2 YAML)
- func DecodeContent(content *github.RepositoryContent) (string, error)
- func GetFileContent(client *github.Client, file *github.CommitFile, owner, repo, ref string) (*github.RepositoryContent, error)
- func GetOwnerRepoPull(ref, repo string) (string, string, int)
- func GetPullRequestBranch(client *github.Client, o, r string, n int) (string, error)
- func GetPullRequestFiles(client *github.Client, o, r string, n int) ([]*github.CommitFile, *github.Response, error)
- func GitHubClient(token string) *github.Client
- func SelectFile(file *github.CommitFile) *github.CommitFile
- func SplitYAMLDocuments(data []byte) [][]byte
- type YAML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareYAML ¶
func CompareYAML(yaml1, yaml2 YAML)
func DecodeContent ¶
func DecodeContent(content *github.RepositoryContent) (string, error)
func GetFileContent ¶
func GetFileContent(client *github.Client, file *github.CommitFile, owner, repo, ref string) (*github.RepositoryContent, error)
func GetPullRequestBranch ¶
func GetPullRequestFiles ¶
func GetPullRequestFiles(client *github.Client, o, r string, n int) ([]*github.CommitFile, *github.Response, error)
ListFiles retrieves a list of commit files for each pull request in a GitHub repository. It takes a GitHub client and a context as input parameters. It returns a slice of commit files, and an error if any.
func GitHubClient ¶
func SelectFile ¶
func SelectFile(file *github.CommitFile) *github.CommitFile
func SplitYAMLDocuments ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.