github

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRepositoryURL

func ParseRepositoryURL(repoURL string) (owner, repo string, err error)

ParseRepositoryURL parses a GitHub repository URL

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents a GitHub API client

func NewClient

func NewClient() *Client

NewClient creates a new GitHub API client

func (*Client) CloneRepository

func (c *Client) CloneRepository(repoURL, destDir string) (string, error)

CloneRepository clones a GitHub repository to a local directory

func (*Client) CreateCheckRun

func (c *Client) CreateCheckRun(owner, repo, sha string, findings []string) error

CreateCheckRun creates a GitHub check run for a commit

func (*Client) CreateIssueComment

func (c *Client) CreateIssueComment(owner, repo string, number int, body string) error

CreateIssueComment creates a comment on a GitHub issue or pull request

func (*Client) DownloadWorkflowFiles

func (c *Client) DownloadWorkflowFiles(owner, repo, destDir string) ([]string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL