diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2019-11-14 17:52:18 -0600 |
---|---|---|
committer | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-11-15 00:52:18 +0100 |
commit | 06a8504c784fe404bcae92028515add816383729 (patch) | |
tree | 66bade651d9bc6f18165ef089f501139f4ecbd38 /models | |
parent | dd1beee2ef907527d0b046f78bab70b2bd868c55 (diff) | |
download | gitea-06a8504c784fe404bcae92028515add816383729.tar.gz gitea-06a8504c784fe404bcae92028515add816383729.zip |
Update dashboard context for PR reviews (#8995)
* Update dashboard context for PR reviews
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update options/locale/locale_en-US.ini
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Only append head action if it has content or is approval/rejection
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update options/locale/locale_en-US.ini
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'models')
-rw-r--r-- | models/action.go | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/models/action.go b/models/action.go index ddb82e0f4c..3cd97eff09 100644 --- a/models/action.go +++ b/models/action.go @@ -30,26 +30,28 @@ type ActionType int // Possible action types. const ( - ActionCreateRepo ActionType = iota + 1 // 1 - ActionRenameRepo // 2 - ActionStarRepo // 3 - ActionWatchRepo // 4 - ActionCommitRepo // 5 - ActionCreateIssue // 6 - ActionCreatePullRequest // 7 - ActionTransferRepo // 8 - ActionPushTag // 9 - ActionCommentIssue // 10 - ActionMergePullRequest // 11 - ActionCloseIssue // 12 - ActionReopenIssue // 13 - ActionClosePullRequest // 14 - ActionReopenPullRequest // 15 - ActionDeleteTag // 16 - ActionDeleteBranch // 17 - ActionMirrorSyncPush // 18 - ActionMirrorSyncCreate // 19 - ActionMirrorSyncDelete // 20 + ActionCreateRepo ActionType = iota + 1 // 1 + ActionRenameRepo // 2 + ActionStarRepo // 3 + ActionWatchRepo // 4 + ActionCommitRepo // 5 + ActionCreateIssue // 6 + ActionCreatePullRequest // 7 + ActionTransferRepo // 8 + ActionPushTag // 9 + ActionCommentIssue // 10 + ActionMergePullRequest // 11 + ActionCloseIssue // 12 + ActionReopenIssue // 13 + ActionClosePullRequest // 14 + ActionReopenPullRequest // 15 + ActionDeleteTag // 16 + ActionDeleteBranch // 17 + ActionMirrorSyncPush // 18 + ActionMirrorSyncCreate // 19 + ActionMirrorSyncDelete // 20 + ActionApprovePullRequest // 21 + ActionRejectPullRequest // 22 ) // Action represents user operation type and other information to |