Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedReasons

func AllowedReasons() []string

func IsAllowedReason

func IsAllowedReason(value string) bool

func ParseReason

func ParseReason(value string) (string, error)

Types

type Actor

type Actor struct {
	Login string `json:"login"`
}

type Client

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

func New

func New(log io.Writer) (*Client, error)

func NewWithClient

func NewWithClient(gql GraphQLClient) *Client

func (*Client) FindIssueOrPullRequestComments

func (c *Client) FindIssueOrPullRequestComments(owner, repo string, number int) ([]Comment, error)

func (*Client) MinimizeComment

func (c *Client) MinimizeComment(id, classifier string) error

func (*Client) UnminimizeComment

func (c *Client) UnminimizeComment(id string) error

type Comment

type Comment struct {
	ID              string `json:"id"`
	Body            string `json:"bodyText"`
	Author          Actor  `json:"author"`
	IsMinimized     bool   `json:"isMinimized"`
	MinimizedReason string `json:"minimizedReason"`
}

type GraphQLClient

type GraphQLClient interface {
	Do(query string, variables map[string]interface{}, response interface{}) error
}

Jump to

Keyboard shortcuts

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