core

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: Apache-2.0 Imports: 8 Imported by: 2 modules, 1 package

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(ctx context.Context, token string) *github.Client

NewGitHubClient create a new GitHub client

Types

type Bot

type Bot struct {
	SlackConfig SlackConfig
	// contains filtered or unexported fields
}

Bot The Bot

func NewBot

func NewBot(ctx context.Context, ghToken string, slackToken string, slackConfig SlackConfig) *Bot

NewBot Create a new Bot

func (*Bot) ProcessAll

func (b *Bot) ProcessAll(ctx context.Context, searchConfig SearchCriterion) error

ProcessAll Execute bot on issues and pull request

func (*Bot) ProcessIssues

func (b *Bot) ProcessIssues(ctx context.Context, searchConfig SearchCriterion) error

ProcessIssues Execute bot on issues

func (*Bot) ProcessPullRequest

func (b *Bot) ProcessPullRequest(ctx context.Context, searchConfig SearchCriterion) error

ProcessPullRequest Execute bot on pull request

type SearchCriterion

type SearchCriterion struct {
	Owner    string
	RepoName string
	Words    string
	Date     string
}

SearchCriterion GitHub search criterion

type SlackConfig

type SlackConfig struct {
	BotName string
	BotIcon string
	Channel string
	DryRun  bool
}

SlackConfig Slack configuration.

Jump to

Keyboard shortcuts

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