issue

package
v1.999.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAssigneeIfNotAssigned

func AddAssigneeIfNotAssigned(issue *models.Issue, doer *models.User, assigneeID int64) (err error)

AddAssigneeIfNotAssigned adds an assignee only if he isn't already assigned to the issue. Also checks for access of assigned user

func AddLabel

func AddLabel(issue *models.Issue, doer *models.User, label *models.Label) error

AddLabel adds a new label to the issue.

func AddLabels

func AddLabels(issue *models.Issue, doer *models.User, labels []*models.Label) error

AddLabels adds a list of new labels to the issue.

func ChangeContent

func ChangeContent(issue *models.Issue, doer *models.User, content string) (err error)

ChangeContent changes issue content, as the given user.

func ChangeMilestoneAssign

func ChangeMilestoneAssign(issue *models.Issue, doer *models.User, oldMilestoneID int64) (err error)

ChangeMilestoneAssign changes assignment of milestone for issue.

func ChangeStatus

func ChangeStatus(issue *models.Issue, doer *models.User, isClosed bool) (err error)

ChangeStatus changes issue status to open or closed.

func ChangeTitle

func ChangeTitle(issue *models.Issue, doer *models.User, title string) (err error)

ChangeTitle changes the title of this issue, as the given user.

func ClearLabels

func ClearLabels(issue *models.Issue, doer *models.User) (err error)

ClearLabels clears all of an issue's labels

func DeleteNotPassedAssignee

func DeleteNotPassedAssignee(issue *models.Issue, doer *models.User, assignees []*models.User) (err error)

DeleteNotPassedAssignee deletes all assignees who aren't passed via the "assignees" array

func NewIssue

func NewIssue(repo *models.Repository, issue *models.Issue, labelIDs []int64, uuids []string, assigneeIDs []int64) error

NewIssue creates new issue with labels for repository.

func RemoveLabel

func RemoveLabel(issue *models.Issue, doer *models.User, label *models.Label) error

RemoveLabel removes a label from issue by given ID.

func ToggleAssignee

func ToggleAssignee(issue *models.Issue, doer *models.User, assigneeID int64) (removed bool, comment *models.Comment, err error)

ToggleAssignee changes a user between assigned and not assigned for this issue, and make issue comment for it.

func UpdateAssignees

func UpdateAssignees(issue *models.Issue, oneAssignee string, multipleAssignees []string, doer *models.User) (err error)

UpdateAssignees is a helper function to add or delete one or multiple issue assignee(s) Deleting is done the GitHub way (quote from their api documentation): https://developer.github.com/v3/issues/#edit-an-issue "assignees" (array): Logins for Users to assign to this issue. Pass one or more user logins to replace the set of assignees on this Issue. Send an empty array ([]) to clear all assignees from the Issue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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