githubsync

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnmanagedIssue = errors.New("issue is not managed by triage")

Functions

func IsNotFound added in v0.1.1

func IsNotFound(err error) bool

func ParseBody

func ParseBody(raw string) (string, model.Type, model.Stage, string, error)

func ProjectLabelColor added in v0.1.1

func ProjectLabelColor(project string) string

func SerializeBody

func SerializeBody(item model.Item) string

func UserMessage added in v0.1.1

func UserMessage(err error) string

Types

type Client

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

func NewClient

func NewClient() *Client

func (*Client) DeleteIssue

func (c *Client) DeleteIssue(repo string, issueNumber int) error

func (*Client) ForceUpsertItem

func (c *Client) ForceUpsertItem(repo string, item model.Item) (model.Item, string, error)

func (*Client) SetProjectLabelSync added in v0.1.1

func (c *Client) SetProjectLabelSync(mode string)

func (*Client) SyncRepo

func (c *Client) SyncRepo(repo string) ([]model.Item, error)

func (*Client) UpsertItem

func (c *Client) UpsertItem(repo string, item model.Item) (model.Item, string, error)

type ConflictError

type ConflictError struct {
	Local  model.Item
	Remote model.Item
}

func (*ConflictError) Error

func (e *ConflictError) Error() string

type DraftMetadata added in v0.1.1

type DraftMetadata struct {
	Title   string
	Project string
	Repo    string
	Type    model.Type
	Stage   model.Stage
}

func ParseDraft added in v0.1.1

func ParseDraft(raw string) (DraftMetadata, string, error)

type Error added in v0.1.1

type Error struct {
	Kind     ErrorKind
	Method   string
	Endpoint string
	Repo     string
	Resource string
	Message  string
}

func (*Error) Error added in v0.1.1

func (e *Error) Error() string

type ErrorKind added in v0.1.1

type ErrorKind string
const (
	ErrorCLIUnavailable   ErrorKind = "cli_unavailable"
	ErrorAuthRequired     ErrorKind = "auth_required"
	ErrorNotFound         ErrorKind = "not_found"
	ErrorPermissionDenied ErrorKind = "permission_denied"
)

Jump to

Keyboard shortcuts

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