Documentation ¶
Index ¶
- Constants
- func FormatICResponse(ic *github.IssueComment, s string) string
- func FormatResponse(to, message, reason string) string
- func FormatResponseRaw(body, bodyURL, login, reply string) string
- func FormatSimpleResponse(to, message string) string
- func HasLabel(label string, issueLabels []*github.Label) bool
- func HasLabels(labels []string, issueLabels []*github.Label) bool
- func IsAuthor(issueUser, commentUser string) bool
- func LabelsSet(labels []*github.Label) sets.String
- func NormLogin(login string) string
Constants ¶
View Source
const AboutThisBot = AboutThisBotCommands
AboutThisBot contains the text of both AboutThisBotWithoutCommands and AboutThisBotCommands.
View Source
const AboutThisBotCommands = "I understand the commands that are listed [here](https://chewbacca.core.cloud.mattermost.com/command-help.html)"
AboutThisBotCommands contains the message that links to the commands the bot understand.
Variables ¶
This section is empty.
Functions ¶
func FormatICResponse ¶
func FormatICResponse(ic *github.IssueComment, s string) string
FormatICResponse nicely formats a response to an issue comment.
func FormatResponse ¶
FormatResponse nicely formats a response to a generic reason.
func FormatResponseRaw ¶
FormatResponseRaw nicely formats a response for one does not have an issue comment
func FormatSimpleResponse ¶
FormatSimpleResponse formats a response that does not warrant additional explanation in the details section.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.