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

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