github

package
v0.0.0-...-cfa1db3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

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 additional functionality

func NewClient

func NewClient(token string) *Client

NewClient creates a new GitHub API client

func (*Client) CheckActionExists

func (c *Client) CheckActionExists(actionName string) (bool, error)

CheckActionExists verifies if an action repository exists

func (*Client) GetActionReleases

func (c *Client) GetActionReleases(actionName string) ([]*github.RepositoryRelease, error)

GetActionReleases fetches release information for an action

func (*Client) GetActionYAML

func (c *Client) GetActionYAML(actionName string) ([]byte, error)

GetActionYAML fetches the action.yml file from a repository

func (*Client) GetMaintainerInfo

func (c *Client) GetMaintainerInfo(actionName string) (*models.MaintainerInfo, error)

GetMaintainerInfo fetches maintainer information for a repository

func (*Client) GetRateLimitStatus

func (c *Client) GetRateLimitStatus() (*github.RateLimits, error)

GetRateLimitStatus returns the current rate limit status

func (*Client) GetRepositoryInfo

func (c *Client) GetRepositoryInfo(actionName string) (*models.RepoMetrics, error)

GetRepositoryInfo fetches repository information for an action

func (*Client) IsVerifiedPublisher

func (c *Client) IsVerifiedPublisher(actionName string) (bool, error)

IsVerifiedPublisher checks if the action publisher is verified using GitHub Marketplace API

func (*Client) SearchActions

func (c *Client) SearchActions(query string) ([]*github.Repository, error)

SearchActions searches for actions in the GitHub marketplace (simplified)

Jump to

Keyboard shortcuts

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