github

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: GPL-3.0 Imports: 29 Imported by: 1

Documentation

Overview

Package github contains the Github bridge implementation

Index

Constants

View Source
const (
	NumIssues        = 40
	NumIssueEdits    = 100
	NumTimelineItems = 100
	NumCommentEdits  = 100

	ChanCapacity = 128
)
View Source
const EmptyTitlePlaceholder = "<empty string>"

Variables

View Source
var (
	ErrBadProjectURL = errors.New("bad project url")
)
View Source
var (
	ErrMissingIdentityToken = errors.New("missing identity token")
)

Functions

func NewImportMediator added in v0.8.0

func NewImportMediator(ctx context.Context, client *rateLimitHandlerClient, owner, project string, since time.Time) *importMediator

Types

type Client added in v0.8.0

type Client interface {
	Mutate(context.Context, interface{}, githubv4.Input, map[string]interface{}) error
	Query(context.Context, interface{}, map[string]interface{}) error
}

Client is an interface conforming with githubv4.Client

type CommentEditEvent added in v0.8.0

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

type Github

type Github struct{}

func (*Github) Configure

func (g *Github) Configure(repo *cache.RepoCache, params core.BridgeParams, interactive bool) (core.Configuration, error)

func (*Github) LoginMetaKey

func (g *Github) LoginMetaKey() string

func (*Github) NewExporter

func (*Github) NewExporter() core.Exporter

func (*Github) NewImporter

func (*Github) NewImporter() core.Importer

func (*Github) Target

func (*Github) Target() string

func (*Github) ValidParams

func (g *Github) ValidParams() map[string]interface{}

func (*Github) ValidateConfig

func (*Github) ValidateConfig(conf core.Configuration) error

type ImportEvent added in v0.8.0

type ImportEvent interface {
	// contains filtered or unexported methods
}

type IssueEditEvent added in v0.8.0

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

type IssueEvent added in v0.8.0

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

type RateLimitingEvent added in v0.8.0

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

type TimelineEvent added in v0.8.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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