|
|
@ -242,12 +242,14 @@ func ActionIcon(opType int) string { |
|
|
|
switch opType { |
|
|
|
switch opType { |
|
|
|
case 1, 8: // Create and transfer repository
|
|
|
|
case 1, 8: // Create and transfer repository
|
|
|
|
return "repo" |
|
|
|
return "repo" |
|
|
|
case 5, 9: // Commit repository
|
|
|
|
case 5: // Commit repository
|
|
|
|
return "git-commit" |
|
|
|
return "git-commit" |
|
|
|
case 6: // Create issue
|
|
|
|
case 6: // Create issue
|
|
|
|
return "issue-opened" |
|
|
|
return "issue-opened" |
|
|
|
case 7: // New pull request
|
|
|
|
case 7: // New pull request
|
|
|
|
return "git-pull-request" |
|
|
|
return "git-pull-request" |
|
|
|
|
|
|
|
case 9: // Push tag
|
|
|
|
|
|
|
|
return "tag" |
|
|
|
case 10: // Comment issue
|
|
|
|
case 10: // Comment issue
|
|
|
|
return "comment-discussion" |
|
|
|
return "comment-discussion" |
|
|
|
case 11: // Merge pull request
|
|
|
|
case 11: // Merge pull request
|
|
|
@ -256,6 +258,10 @@ func ActionIcon(opType int) string { |
|
|
|
return "issue-closed" |
|
|
|
return "issue-closed" |
|
|
|
case 13, 15: // Reopen issue or pull request
|
|
|
|
case 13, 15: // Reopen issue or pull request
|
|
|
|
return "issue-reopened" |
|
|
|
return "issue-reopened" |
|
|
|
|
|
|
|
case 16: // Create branch
|
|
|
|
|
|
|
|
return "git-branch" |
|
|
|
|
|
|
|
case 17, 18: // Delete branch or tag
|
|
|
|
|
|
|
|
return "alert" |
|
|
|
default: |
|
|
|
default: |
|
|
|
return "invalid type" |
|
|
|
return "invalid type" |
|
|
|
} |
|
|
|
} |
|
|
|