github

package
v0.0.0-...-cb8deb5 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindTags

func FindTags(topics []string) []string

Types

type Client

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

func New

func New() *Client

func NewFromServer

func NewFromServer(server servers.Server) *Client

func NewUnauthenticated

func NewUnauthenticated() *Client

func (*Client) FindIcon

func (c *Client) FindIcon(ctx context.Context, projectURL string) (string, error)

func (*Client) GetCommitSHA1

func (c *Client) GetCommitSHA1(ctx context.Context, project, branch string) (string, error)

func (*Client) GetProjectRepository

func (c *Client) GetProjectRepository(ctx context.Context, project string) (*github.Repository, error)

type DetectedInfo

type DetectedInfo struct {
	ProjectURL string
	Branch     string
	Directory  string
}

func DetectBranchAndDirectory

func DetectBranchAndDirectory(projectURL string, repository *github.Repository) (DetectedInfo, error)

Jump to

Keyboard shortcuts

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