utils

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAssigneesCommentBody

func AddAssigneesCommentBody(creator string, assignees []string) string

func AddLabelsCommentBody

func AddLabelsCommentBody(creator string, labels []string) string

func AddReviewersCommentBody

func AddReviewersCommentBody(creator string, reviewers []string) string

func AssigneeExists

func AssigneeExists(a []string, val string) (int, bool)

func BountyIdExists

func BountyIdExists(b []uint64, val uint64) (int, bool)

func CloseBountyCommentBody

func CloseBountyCommentBody(creator string) string

func CreateBountyCommentBody

func CreateBountyCommentBody(creator string, amount sdk.Coins) string

func DeleteBountyCommentBody

func DeleteBountyCommentBody(creator string) string

func IssueCommentExists

func IssueCommentExists(c []uint64, val uint64) (int, bool)

func IssueIidExists

func IssueIidExists(r []*types.IssueIid, val uint64) (int, bool)

func IssueToggleStateCommentBody

func IssueToggleStateCommentBody(creator string, state types.Issue_State) string

func JoinAssignees

func JoinAssignees(assignees []string) string

func JoinLabels

func JoinLabels(labels []string) string

func JoinReviewers

func JoinReviewers(reviewers []string) string

func LabelIdExists

func LabelIdExists(l []uint64, val uint64) (int, bool)

func LinkIssueCommentBody

func LinkIssueCommentBody(creator string, iid uint64) string

func LinkPullRequestCommentBody

func LinkPullRequestCommentBody(creator string, iid uint64) string

func PullRequestCommentExists

func PullRequestCommentExists(c []uint64, val uint64) (int, bool)

func PullRequestIidExists

func PullRequestIidExists(r []*types.PullRequestIid, val uint64) (int, bool)

func PullRequestToggleStateCommentBody

func PullRequestToggleStateCommentBody(creator string, state types.PullRequest_State) string

func RemoveAssigneesCommentBody

func RemoveAssigneesCommentBody(creator string, assignees []string) string

func RemoveLabelsCommentBody

func RemoveLabelsCommentBody(creator string, labels []string) string

func RemoveReviewersCommentBody

func RemoveReviewersCommentBody(creator string, reviewers []string) string

func RepositoryBackupExists

func RepositoryBackupExists(r []*types.RepositoryBackup, val types.RepositoryBackup_Store) (int, bool)

func RepositoryCollaboratorExists

func RepositoryCollaboratorExists(r []*types.RepositoryCollaborator, val string) (int, bool)

func RepositoryLabelExists

func RepositoryLabelExists(l []*types.RepositoryLabel, val string) (int, bool)

func RepositoryLabelIdExists

func RepositoryLabelIdExists(l []*types.RepositoryLabel, val uint64) (int, bool)

func RepositoryReleaseIdExists

func RepositoryReleaseIdExists(r []*types.RepositoryRelease, val uint64) (int, bool)

func RepositoryReleaseTagExists

func RepositoryReleaseTagExists(r []*types.RepositoryRelease, val string) (int, bool)

func ReviewerExists

func ReviewerExists(a []string, val string) (int, bool)

func SliceAtoi

func SliceAtoi(str []string) ([]uint64, error)

func UnlinkIssueCommentBody

func UnlinkIssueCommentBody(creator string, iid uint64) string

func UnlinkPullRequestCommentBody

func UnlinkPullRequestCommentBody(creator string, iid uint64) string

func UpdateBountyExpiryCommentBody

func UpdateBountyExpiryCommentBody(creator string) string

func UpdateDescriptionCommentBody

func UpdateDescriptionCommentBody(creator string) string

func UpdateTitleCommentBody

func UpdateTitleCommentBody(creator string, oldTitle string, newTitle string) string

func ValidateUsername

func ValidateUsername(username string) (bool, error)

Types

This section is empty.

Directories

Path Synopsis
Package revision extracts git revision from string More information about revision : https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html
Package revision extracts git revision from string More information about revision : https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html

Jump to

Keyboard shortcuts

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