|
|
@ -74,27 +74,31 @@ func ActionIcon(opType activities_model.ActionType) string { |
|
|
|
switch opType { |
|
|
|
switch opType { |
|
|
|
case activities_model.ActionCreateRepo, activities_model.ActionTransferRepo, activities_model.ActionRenameRepo: |
|
|
|
case activities_model.ActionCreateRepo, activities_model.ActionTransferRepo, activities_model.ActionRenameRepo: |
|
|
|
return "repo" |
|
|
|
return "repo" |
|
|
|
case activities_model.ActionCommitRepo, activities_model.ActionPushTag, activities_model.ActionDeleteTag, activities_model.ActionDeleteBranch: |
|
|
|
case activities_model.ActionCommitRepo: |
|
|
|
return "git-commit" |
|
|
|
return "git-commit" |
|
|
|
case activities_model.ActionCreateIssue: |
|
|
|
case activities_model.ActionDeleteBranch: |
|
|
|
return "issue-opened" |
|
|
|
return "git-branch" |
|
|
|
case activities_model.ActionCreatePullRequest: |
|
|
|
|
|
|
|
return "git-pull-request" |
|
|
|
|
|
|
|
case activities_model.ActionCommentIssue, activities_model.ActionCommentPull: |
|
|
|
|
|
|
|
return "comment-discussion" |
|
|
|
|
|
|
|
case activities_model.ActionMergePullRequest, activities_model.ActionAutoMergePullRequest: |
|
|
|
case activities_model.ActionMergePullRequest, activities_model.ActionAutoMergePullRequest: |
|
|
|
return "git-merge" |
|
|
|
return "git-merge" |
|
|
|
case activities_model.ActionCloseIssue, activities_model.ActionClosePullRequest: |
|
|
|
case activities_model.ActionCreatePullRequest: |
|
|
|
|
|
|
|
return "git-pull-request" |
|
|
|
|
|
|
|
case activities_model.ActionClosePullRequest: |
|
|
|
|
|
|
|
return "git-pull-request-closed" |
|
|
|
|
|
|
|
case activities_model.ActionCreateIssue: |
|
|
|
|
|
|
|
return "issue-opened" |
|
|
|
|
|
|
|
case activities_model.ActionCloseIssue: |
|
|
|
return "issue-closed" |
|
|
|
return "issue-closed" |
|
|
|
case activities_model.ActionReopenIssue, activities_model.ActionReopenPullRequest: |
|
|
|
case activities_model.ActionReopenIssue, activities_model.ActionReopenPullRequest: |
|
|
|
return "issue-reopened" |
|
|
|
return "issue-reopened" |
|
|
|
|
|
|
|
case activities_model.ActionCommentIssue, activities_model.ActionCommentPull: |
|
|
|
|
|
|
|
return "comment-discussion" |
|
|
|
case activities_model.ActionMirrorSyncPush, activities_model.ActionMirrorSyncCreate, activities_model.ActionMirrorSyncDelete: |
|
|
|
case activities_model.ActionMirrorSyncPush, activities_model.ActionMirrorSyncCreate, activities_model.ActionMirrorSyncDelete: |
|
|
|
return "mirror" |
|
|
|
return "mirror" |
|
|
|
case activities_model.ActionApprovePullRequest: |
|
|
|
case activities_model.ActionApprovePullRequest: |
|
|
|
return "check" |
|
|
|
return "check" |
|
|
|
case activities_model.ActionRejectPullRequest: |
|
|
|
case activities_model.ActionRejectPullRequest: |
|
|
|
return "diff" |
|
|
|
return "file-diff" |
|
|
|
case activities_model.ActionPublishRelease: |
|
|
|
case activities_model.ActionPublishRelease, activities_model.ActionPushTag, activities_model.ActionDeleteTag: |
|
|
|
return "tag" |
|
|
|
return "tag" |
|
|
|
case activities_model.ActionPullReviewDismissed: |
|
|
|
case activities_model.ActionPullReviewDismissed: |
|
|
|
return "x" |
|
|
|
return "x" |
|
|
|