Help us shape the future of Go! Take the 2026 Go Developer Survey

pluginhelpers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitCommentEventFromGithubIssueCommentEvent

func GitCommentEventFromGithubIssueCommentEvent(event *github.IssueCommentEvent) plugins.GitCommentEvent

func GitCommentEventFromGithubIssuesEvent

func GitCommentEventFromGithubIssuesEvent(event *github.IssuesEvent) plugins.GitCommentEvent

func GitCommentEventFromGithubPullRequestEvent

func GitCommentEventFromGithubPullRequestEvent(event *github.PullRequestEvent) plugins.GitCommentEvent

func GitCommentEventFromGithubPullRequestReviewCommentEvent

func GitCommentEventFromGithubPullRequestReviewCommentEvent(event *github.PullRequestReviewCommentEvent) plugins.GitCommentEvent

func GitCommentEventFromGithubPullRequestReviewEvent

func GitCommentEventFromGithubPullRequestReviewEvent(event *github.PullRequestReviewEvent) plugins.GitCommentEvent

func GitIssueClientFromGithub

func GitIssueClientFromGithub(gh *probot.GitHubClient) plugins.GitIssueClient

func GitLabelFromGithub

func GitLabelFromGithub(l *github.Label) plugins.Label

func GitLabelsFromGithub

func GitLabelsFromGithub(labels []*github.Label) (output []plugins.Label)

func GitPRClientFromGithub

func GitPRClientFromGithub(gh *probot.GitHubClient) plugins.GitPRClient

func GitRepoClientFromGithub

func GitRepoClientFromGithub(gh *probot.GitHubClient) plugins.GitRepoClient

func GitSearchClientFromGithub

func GitSearchClientFromGithub(cli probot.GitGraphQLClient) plugins.GitSearchClient

func GitUserFromGithub

func GitUserFromGithub(u *github.User) plugins.GitUser

func GitUsersFromGithub

func GitUsersFromGithub(users []*github.User) (output []plugins.GitUser)

func MakeLoggerClient

func MakeLoggerClient(getLogger func() logr.Logger) plugins.LoggerClient

func OwnersClientFromGithub

func OwnersClientFromGithub(gh *probot.GitHubClient, ownersFileName string, cache ConfigCache[plugins.OwnersConfiguration]) plugins.OwnersClient

func PluginConfigClientFromGithub

func PluginConfigClientFromGithub(gh *probot.GitHubClient, configPath string, cache ConfigCache[plugins.Configuration]) plugins.PluginConfigClient

Types

type ConfigCache

type ConfigCache[T any] interface {
	Get(owner, repo, path string) *T
	Save(owner, repo, path string, cfg *T)
}

func NewConfigCache

func NewConfigCache[T any]() ConfigCache[T]

func NewConfigNearestCache

func NewConfigNearestCache[T any]() ConfigCache[T]

type NearestTrie

type NearestTrie struct {
	sync.RWMutex
	Root *TrieNode
}

func (*NearestTrie) Insert

func (t *NearestTrie) Insert(path string)

func (*NearestTrie) Search

func (t *NearestTrie) Search(path string) string

type TrieNode

type TrieNode struct {
	Children map[string]*TrieNode
	Leaf     bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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