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

github

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: GPL-3.0 Imports: 27 Imported by: 0

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

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

Types

type Client

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

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

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

type IssueEditEvent

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

type IssueEvent

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

type RateLimitingEvent

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

type TimelineEvent

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