Documentation
¶
Index ¶
- func ParseRepositoryURL(repoURL string) (owner, repo string, err error)
- type Client
- func (c *Client) CloneRepository(repoURL, destDir string) (string, error)
- func (c *Client) CreateCheckRun(owner, repo, sha string, findings []string) error
- func (c *Client) CreateIssueComment(owner, repo string, number int, body string) error
- func (c *Client) DownloadWorkflowFiles(owner, repo, destDir string) ([]string, error)
- func (c *Client) GetWorkflowFiles(owner, repo string) ([]*github.RepositoryContent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseRepositoryURL ¶
ParseRepositoryURL parses a GitHub repository URL
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a GitHub API client
func (*Client) CloneRepository ¶
CloneRepository clones a GitHub repository to a local directory
func (*Client) CreateCheckRun ¶
CreateCheckRun creates a GitHub check run for a commit
func (*Client) CreateIssueComment ¶
CreateIssueComment creates a comment on a GitHub issue or pull request
func (*Client) DownloadWorkflowFiles ¶
DownloadWorkflowFiles downloads workflow files to a local directory
func (*Client) GetWorkflowFiles ¶
func (c *Client) GetWorkflowFiles(owner, repo string) ([]*github.RepositoryContent, error)
GetWorkflowFiles gets the GitHub Actions workflow files from a repository
Click to show internal directories.
Click to hide internal directories.