githubhelper

package
v0.0.86 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddComment

func AddComment(ctx context.Context, client *githubv4.Client, issueID string, comment string) error

func GetLabel

func GetLabel(ctx context.Context, client *githubv4.Client, repoOwner string, repoName string, labelName string) (string, error)

func GetProjectID added in v0.0.77

func GetProjectID(ctx context.Context, client *githubv4.Client, repoOwner string, projectNumber int) (githubv4.ID, error)

func NewClient

func NewClient(ctx context.Context, gitHubToken string) (*githubv4.Client, error)

func RemoveLabel

func RemoveLabel(ctx context.Context, client *githubv4.Client, issueID string, labelID string) error

func SetLabel

func SetLabel(ctx context.Context, client *githubv4.Client, issueID string, labelID string) error

Types

type GithubIssue

type GithubIssue struct {
	ID         string
	Number     int
	Title      string
	Body       string
	URL        string
	DateFields map[string]time.Time
}

func GetIssue

func GetIssue(ctx context.Context, client *githubv4.Client, repoOwner string, repoName string, issueNumber int) (*GithubIssue, error)

func GetIssuesWithProjectDateFieldValue added in v0.0.77

func GetIssuesWithProjectDateFieldValue(ctx context.Context, client *githubv4.Client, projectID githubv4.ID, fieldName string) ([]GithubIssue, error)

Jump to

Keyboard shortcuts

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