Documentation ¶
Index ¶
- func AddAssigneeIfNotAssigned(issue *models.Issue, doer *models.User, assigneeID int64) (err error)
- func AddLabel(issue *models.Issue, doer *models.User, label *models.Label) error
- func AddLabels(issue *models.Issue, doer *models.User, labels []*models.Label) error
- func ChangeContent(issue *models.Issue, doer *models.User, content string) (err error)
- func ChangeMilestoneAssign(issue *models.Issue, doer *models.User, oldMilestoneID int64) (err error)
- func ChangeStatus(issue *models.Issue, doer *models.User, isClosed bool) (err error)
- func ChangeTitle(issue *models.Issue, doer *models.User, title string) (err error)
- func ClearLabels(issue *models.Issue, doer *models.User) (err error)
- func DeleteNotPassedAssignee(issue *models.Issue, doer *models.User, assignees []*models.User) (err error)
- func NewIssue(repo *models.Repository, issue *models.Issue, labelIDs []int64, uuids []string, ...) error
- func RemoveLabel(issue *models.Issue, doer *models.User, label *models.Label) error
- func ToggleAssignee(issue *models.Issue, doer *models.User, assigneeID int64) (removed bool, comment *models.Comment, err error)
- func UpdateAssignees(issue *models.Issue, oneAssignee string, multipleAssignees []string, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAssigneeIfNotAssigned ¶ added in v1.11.0
AddAssigneeIfNotAssigned adds an assignee only if he isn't already assigned to the issue. Also checks for access of assigned user
func ChangeContent ¶ added in v1.11.0
ChangeContent changes issue content, as the given user.
func ChangeMilestoneAssign ¶ added in v1.11.0
func ChangeMilestoneAssign(issue *models.Issue, doer *models.User, oldMilestoneID int64) (err error)
ChangeMilestoneAssign changes assignment of milestone for issue.
func ChangeStatus ¶ added in v1.11.0
ChangeStatus changes issue status to open or closed.
func ChangeTitle ¶
ChangeTitle changes the title of this issue, as the given user.
func ClearLabels ¶ added in v1.11.0
ClearLabels clears all of an issue's labels
func DeleteNotPassedAssignee ¶ added in v1.11.0
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 ¶ added in v1.11.0
RemoveLabel removes a label from issue by given ID.
func ToggleAssignee ¶ added in v1.11.0
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 ¶ added in v1.11.0
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.