notifier

package
v0.0.0-...-b35c3aa Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GHNotifier

type GHNotifier struct {
	Client *github.IssuesService
}

GHNotifier is used to call the GitHub API to comment on PR review.

func (GHNotifier) Comment

func (notifier GHNotifier) Comment(owner string, repo string, number int, msg string) error

Comment writes the diff result to the PR review page.

type Notifier

type Notifier interface {
	Comment(owner string, repo string, number int, msg string) error
}

Notifier is the interface to comment on the PR page, could be implemented by different provider, like GihHub, Gitlab, and etc.

func NewGHNotifier

func NewGHNotifier(token string) Notifier

NewGHNotifier returns an object containing the authorized client.

Jump to

Keyboard shortcuts

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