Documentation
¶
Index ¶
- func ConfigureMessage(msg entities.Message) (string, error)
- func Find[T any](content []*T, predicate func(*T) bool) *T
- func GetBranchNameFromRef(ref string) string
- func ParseTaskMentions(txt string) []*entities.TaskMention
- func RemoveDuplicates[T comparable](content []*T) []*T
- func RemoveTaskMentions(txt string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureMessage ¶
ConfigureMessage configures the message for the comment
If the message is a merge commit, returns an error
func GetBranchNameFromRef ¶
GetBranchNameFromRef returns the branch name from the ref
Example: refs/heads/feature-123 -> feature-123
func ParseTaskMentions ¶
func ParseTaskMentions(txt string) []*entities.TaskMention
ParseTaskMentions parses all the task mentions in a text
func RemoveDuplicates ¶
func RemoveDuplicates[T comparable](content []*T) []*T
func RemoveTaskMentions ¶
RemoveTaskMentions removes all the task mentions from a text
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.