Documentation
¶
Index ¶
- type Client
- func (c *Client) CreatePullRequest(repo Repository, title, body, headBranch string) error
- func (c *Client) GetRepositoryCustomProperties(owner, repo string, properties []string) (map[string]string, error)
- func (c *Client) GetTagsForRepo(owner, repo string) (map[string]string, error)
- func (c *Client) GetWorkflowFiles(repo Repository) ([]WorkflowFile, error)
- func (c *Client) ListRepositories(owner string) ([]Repository, error)
- func (c *Client) ListRepositoriesWithCustomProperties(owner string, customProperties []string) ([]Repository, error)
- func (c *Client) ResolveRef(owner, repo, ref string) (string, error)
- type Config
- type Repository
- type WorkflowFile
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
}
Client wraps the GitHub API client with our specific functionality
func NewClientWithConfig ¶
NewClientWithConfig creates a new GitHub API client with authentication and configuration
func (*Client) CreatePullRequest ¶
func (c *Client) CreatePullRequest(repo Repository, title, body, headBranch string) error
CreatePullRequest creates a pull request with the given changes
func (*Client) GetRepositoryCustomProperties ¶ added in v1.0.0
func (c *Client) GetRepositoryCustomProperties(owner, repo string, properties []string) (map[string]string, error)
GetRepositoryCustomProperties fetches custom properties for a repository using the GitHub Custom Properties API
func (*Client) GetTagsForRepo ¶
GetTagsForRepo gets all tags for a repository and returns them with their commit SHAs
func (*Client) GetWorkflowFiles ¶
func (c *Client) GetWorkflowFiles(repo Repository) ([]WorkflowFile, error)
GetWorkflowFiles retrieves all workflow files from a repository's .github/workflows directory
func (*Client) ListRepositories ¶
func (c *Client) ListRepositories(owner string) ([]Repository, error)
ListRepositories gets all repositories for a given owner (user or org)
func (*Client) ListRepositoriesWithCustomProperties ¶ added in v1.0.0
func (c *Client) ListRepositoriesWithCustomProperties(owner string, customProperties []string) ([]Repository, error)
ListRepositoriesWithCustomProperties gets all repositories for a given owner and optionally fetches custom properties
type Config ¶
type Config struct {
Verbose bool
}
Config holds configuration options for the GitHub client
type Repository ¶
type Repository struct {
Owner string `json:"owner"`
Name string `json:"name"`
DefaultBranch string `json:"default_branch"`
FullName string `json:"full_name"`
CustomProperties map[string]string `json:"custom_properties,omitempty"`
}
Repository represents a GitHub repository with relevant metadata
type WorkflowFile ¶
type WorkflowFile struct {
Repository Repository
Path string
Content string
}
WorkflowFile represents a workflow file found in a repository