issue

package
v0.0.0-...-776a77c Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	IssueURL  string
	CreatedAt time.Time
	Body      string
	User      string
}

type GHClient

type GHClient interface {
	ListByRepo(ctx context.Context, owner string, repo string, options *github.IssueListByRepoOptions) ([]*github.Issue, *github.Response, error)
	ListComments(ctx context.Context, owner string, repo string, number int, options *github.IssueListCommentsOptions) ([]*github.IssueComment, *github.Response, error)
}

type Issue

type Issue struct {
	Title     string
	Body      string
	User      string
	Number    int
	Comments  []Comment
	CreatedAt time.Time
}

type Service

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

func NewService

func NewService(client GHClient) *Service

func (*Service) GetIssues

func (s *Service) GetIssues(ctx context.Context, owner string, repo string) ([]Issue, error)

Jump to

Keyboard shortcuts

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