internal

package
v0.0.0-...-fe88fde Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const BOLT_BUCKET_NAME = "listeners"

Variables

This section is empty.

Functions

func SendNotifications

func SendNotifications(app *core.App, listeners []Listener)

Types

type GithubIssue

type GithubIssue struct {
	ID            int64  `json:"id"`
	Title         string `json:"title"`
	RepositoryUrl string `json:"repository_url"`
	Url           string `json:"html_url"`
}

type Listener

type Listener struct {
	Name       string          `yaml:"name"`
	EmailTo    string          `yaml:"email_to"`
	Repository string          `yaml:"repository"`
	IsActive   bool            `yaml:"is_active"`
	Filters    ListenerFilters `yaml:"filters"`
}

func LoadListeners

func LoadListeners(app *core.App) ([]Listener, error)

type ListenerFilters

type ListenerFilters struct {
	Labels   string `yaml:"labels"`
	Assignee string `yaml:"assignee"`
	Author   string `yaml:"author"`
}

type ListenerTracker

type ListenerTracker struct {
	LastCheckAt   time.Time
	TrackedIssues []int64
}

type ListenersWrapper

type ListenersWrapper struct {
	Listeners []Listener `yaml:"listeners"`
}

Jump to

Keyboard shortcuts

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