comment

package
v0.0.0-...-2f0a4f1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EligibleCommentHeaderLegacy    = "🤖 Assignees for Issue"
	EligibleCommentHeaderBeginning = "🤖 Assignees for issue"
)
View Source
const ErrorRewardCommentHeader = "### Famed could not generate a reward suggestion."
View Source
const RewardCommentTableHeader = "| Contributor | Time | Reward |\n| ----------- | ----------- | ----------- |"

Variables

View Source
var ErrNoContributors = errors.New("GitHub data incomplete")

Functions

This section is empty.

Types

type Comment

type Comment interface {
	String() (string, error)
	Type() model.IssueCommentType
}

type Comments

type Comments []model.IssueComment

func (Comments) FindComment

func (cs Comments) FindComment(login string, commentType model.IssueCommentType) (model.IssueComment, bool)

FindComment finds the first comment where the matching commentType posted by the user with a login equal to botLogin.

type EligibleComment

type EligibleComment struct {
	// contains filtered or unexported fields
}

func NewEligibleComment

func NewEligibleComment(issue model.Issue, pullRequest *string) EligibleComment

NewEligibleComment generate an issue eligible comment.

func (EligibleComment) String

func (c EligibleComment) String() (string, error)

func (EligibleComment) Type

type ErrorRewardComment

type ErrorRewardComment struct {
	// contains filtered or unexported fields
}

func NewErrorRewardComment

func NewErrorRewardComment(err error) ErrorRewardComment

NewErrorRewardComment return a ErrorRewardComment.

func (ErrorRewardComment) String

func (c ErrorRewardComment) String() (string, error)

func (ErrorRewardComment) Type

type RewardComment

type RewardComment struct {
	// contains filtered or unexported fields
}

func NewRewardComment

func NewRewardComment(contributors []*model2.Contributor, currency, owner, repoName string) RewardComment

NewRewardComment return a RewardComment.

func (RewardComment) String

func (c RewardComment) String() (string, error)

func (RewardComment) Type

Jump to

Keyboard shortcuts

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