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: 0

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