Back to Gitbucket

Comment Action

doc/comment_action.md

4.46.13.0 KB
Original Source

About Action in Issue Comment

After the issue creation at GitBucket, users can add comments or close it. The details are saved at ISSUE_COMMENT table.

To determine if it was any operation, you see the ACTION column. And in the case of some actions, CONTENT column value contains additional information.

ACTIONCONTENT
commentcomment
close_commentcomment
reopen_commentcomment
close"Close"
reopen"Reopen"
commitcomment commitId
mergecomment
delete_branchbranchName
referissueId:title
add_labellabelName
delete_labellabelName
change_priorityoldPriority:priority
change_milestoneoldMilestone:milestone
assignoldAssigned:assigned
change_titleoldTitle(CRLF)title [1]

[1]: (CRLF) is "\r\n"

comment

This value is saved when users have made a normal comment.

close_comment, reopen_comment

These values are saved when users have reopened or closed the issue with comments.

close, reopen

These values are saved when users have reopened or closed the issue. At the same time, store the fixed value(i.e. "Close" or "Reopen") to the CONTENT column. Therefore, this comment is not displayed, and not counted as a comment.

commit

This value is saved when users have pushed including the #issueId to the commit message. At the same time, store it to the CONTENT column with its commit id. This comment is displayed. But it can not be edited by all users, and also not counted as a comment.

merge

This value is saved when users have merged the pull request. At the same time, store the message to the CONTENT column. This comment is displayed. But it can not be edited by all users, and also not counted as a comment.

delete_branch

This value is saved when users have deleted the branch. Users can delete branch after merging pull request which is requested from the same repository. At the same time, store it to the CONTENT column with the deleted branch name. Therefore, this comment is not displayed, and not counted as a comment.

refer

This value is saved when other issue or issue comment contains reference to the issue like #issueId. At the same time, store id and title of the referrer issue as id:title.

add_label

This value is saved when users have added the label.

delete_label

This value is saved when users have deleted the label.

change_priority

This value is saved when users have changed the priority.

change_milestone

This value is saved when users have changed the milestone.

assign

This value is saved when users have assign issue/PR to user or remove the assign.

change_title

This value is saved when users have changed the title.