helpers

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureMessage

func ConfigureMessage(msg entities.Message) (string, error)

ConfigureMessage configures the message for the comment

If the message is a merge commit, returns an error

func Find

func Find[T any](content []*T, predicate func(*T) bool) *T

func GetBranchNameFromRef

func GetBranchNameFromRef(ref string) string

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

func RemoveTaskMentions(txt string) string

RemoveTaskMentions removes all the task mentions from a text

Types

This section is empty.

Jump to

Keyboard shortcuts

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