local

package
v0.0.0-...-3f7b053 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package local provides in memory operations on GitHub issues.

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 manages operations on the in memory store.

func NewClient

func NewClient() *Client

NewClient creates a Client.

func (*Client) CloseIssue

func (c *Client) CloseIssue(issue *github.Issue) (*github.Issue, error)

CloseIssue removes the issue from the in memory store.

func (*Client) CreateIssue

func (c *Client) CreateIssue(repo, title, body string, extra []string) (*github.Issue, error)

CreateIssue adds a new issue to the in memory store.

func (*Client) LabelIssue

func (c *Client) LabelIssue(issue *github.Issue, label string, add bool) error

LabelIssue idempotently adds or removes a label in the in memory store.

func (*Client) ListOpenIssues

func (c *Client) ListOpenIssues() ([]*github.Issue, error)

ListOpenIssues returns all issues in the memory store.

Jump to

Keyboard shortcuts

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