lib

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotifySlack

func NotifySlack(input *NotifySlackInput) error

HelloWorld says hello

Types

type Html

type Html struct {
	Href string `json:"href"`
}
type Links struct {
	Html Html `json:"html"`
}

type NotifySlackInput

type NotifySlackInput struct {
	BitbucketAppPassUser   string
	BitbucketAppPassSecret string
	Usernames              []string
	SlackChannel           string
	SlackToken             string
	Debug                  bool
}

type PullRequest

type PullRequest struct {
	Links Links  `json:"links"`
	Title string `json:"title"`
}

func GetPullRequestsByUser

func GetPullRequestsByUser(user string, input *NotifySlackInput) ([]PullRequest, error)

type PullRequestOutput

type PullRequestOutput struct {
	PullRequests []PullRequest `json:"values"`
}

Jump to

Keyboard shortcuts

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