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

github

package
v0.67.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package github provides a GitHub plugin for Hive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

Plugin implements the GitHub plugin for Hive.

func New

func New(logger zerolog.Logger, cfg config.GitHubPluginConfig, kvStore kv.KV) *Plugin

New creates a new GitHub plugin. If kvStore is non-nil, PR status is cached in the persistent KV store.

func (*Plugin) Available

func (p *Plugin) Available() bool

func (*Plugin) Close

func (p *Plugin) Close() error

func (*Plugin) Commands

func (p *Plugin) Commands() map[string]config.UserCommand

func (*Plugin) Init

func (p *Plugin) Init(_ context.Context) error

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) RefreshStatus

func (p *Plugin) RefreshStatus(ctx context.Context, sessions []*session.Session, pool *plugins.WorkerPool) (map[string]plugins.Status, error)

func (*Plugin) StatusCacheDuration

func (p *Plugin) StatusCacheDuration() time.Duration

func (*Plugin) StatusProvider

func (p *Plugin) StatusProvider() plugins.StatusProvider

Jump to

Keyboard shortcuts

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