github

package
v0.0.0-...-7670642 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitHubClient

func NewGitHubClient(ghToken string) *github.Client

Types

type Issues

type Issues interface {
	GetFromRepoName(s *discordgo.Session, m *discordgo.MessageCreate)
	GetAllFromRepoName(s *discordgo.Session, m *discordgo.MessageCreate)
	CreateFromRepoName(s *discordgo.Session, m *discordgo.MessageCreate)
	GenerateForm(s *discordgo.Session, m *discordgo.MessageCreate)
	AddAssignee(s *discordgo.Session, m *discordgo.MessageCreate)
	GetActiveOrClosed(s *discordgo.Session, m *discordgo.MessageCreate)
}

func NewIssues

func NewIssues(ghClient *github.Client) Issues

type PullRequests

type PullRequests interface {
	Create(s *discordgo.Session, m *discordgo.MessageCreate)
	GetAllOpen(s *discordgo.Session, m *discordgo.MessageCreate)
	GenerateForm(s *discordgo.Session, m *discordgo.MessageCreate)
}

func NewPullRequests

func NewPullRequests(ghClient *github.Client) PullRequests

type Repositories

type Repositories interface {
	Get(s *discordgo.Session, m *discordgo.MessageCreate)
	GetAll(s *discordgo.Session, m *discordgo.MessageCreate)
}

func NewRepositories

func NewRepositories(ghClient *github.Client) Repositories

type Setup

type Setup interface {
	SendWebhookInstructions(s *discordgo.Session, m *discordgo.MessageCreate)
}

func NewSetup

func NewSetup(ghToken string) Setup

type SubscriptionHandler

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

func NewSubscriptionHandler

func NewSubscriptionHandler(storage *db.Storage) *SubscriptionHandler

func (*SubscriptionHandler) ListSubscriptions

func (s *SubscriptionHandler) ListSubscriptions(session *discordgo.Session, m *discordgo.MessageCreate)

func (*SubscriptionHandler) Subscribe

func (s *SubscriptionHandler) Subscribe(session *discordgo.Session, m *discordgo.MessageCreate)

func (*SubscriptionHandler) Unsubscribe

func (s *SubscriptionHandler) Unsubscribe(session *discordgo.Session, m *discordgo.MessageCreate)

type WebhookHandler

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

func NewWebhookHandler

func NewWebhookHandler(discord *discordgo.Session, storage *db.Storage) *WebhookHandler

func (*WebhookHandler) HandleWebhook

func (wh *WebhookHandler) HandleWebhook(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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