Plugin markdown update (#211)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<%_ } else if (plugins.activity.events.length) { _%>
|
||||
<%_ for (const {actor, type, repo, timestamp, ...event} of plugins.activity.events) { _%>
|
||||
<%_ if (type === "comment") { _%>
|
||||
* 💬 Commented on [#<%= event.number %> <%= event.title %>](https://github.com/<%= repo %>/<%= {issue:"issues", pr:"pulls", commit:"commit"}[event.on] %>/<%= event.number %>) from [<%= repo %>](https://github.com/<%= repo %>)
|
||||
* 💬 Commented on [#<%= event.number %> <%= event.title %>](https://github.com/<%= repo %>/<%= {issue:"issues", pr:"pull", commit:"commit"}[event.on] %>/<%= event.number %>) from [<%= repo %>](https://github.com/<%= repo %>)
|
||||
<%_ } else if (type === "member") { _%>
|
||||
* 💼 Added [<%= event.user %>](https://github.com/<%= event.user %>) as collaborator in [<%= repo %>](https://github.com/<%= repo %>)
|
||||
<%_ } else if (type === "star") { _%>
|
||||
@@ -22,7 +22,7 @@
|
||||
<%_ } else if (type === "issue") { _%>
|
||||
* #️⃣ <%- event.action === "opened" ? "Opened" : event.action === "reopened" ? "Reopened" : "Closed" %> [#<%= event.number %> <%= event.title %>](https://github.com/<%= repo %>/issues/<%= event.number %>) in [<%= repo %>](https://github.com/<%= repo %>)
|
||||
<%_ } else if (type === "pr") { _%>
|
||||
* 🔃 <%- event.action === "opened" ? "Opened" : "Merged" %> [#<%= event.number %> <%= event.title %>](https://github.com/<%= repo %>/pulls/<%= event.number %>) in [<%= repo %>](https://github.com/<%= repo %>)
|
||||
* 🔃 <%- event.action === "opened" ? "Opened" : "Merged" %> [#<%= event.number %> <%= event.title %>](https://github.com/<%= repo %>/pull/<%= event.number %>) in [<%= repo %>](https://github.com/<%= repo %>)
|
||||
* <%= event.files.changed %> file<%= s(event.files.changed) %> changed `++<%= event.lines.added %> --<%= event.lines.deleted%>`
|
||||
<%_ } else if (type === "wiki") { _%>
|
||||
* 📝 Updated <%= event.pages.length %> wiki page<%= s(event.pages.length) %> in [<%= repo %>](https://github.com/<%= repo %>/wiki)
|
||||
@@ -32,12 +32,15 @@
|
||||
<%_ } else if (type === "public") { _%>
|
||||
* 🚀 Made [<%= repo %>](https://github.com/<%= repo %>) public
|
||||
<%_ } else if (type === "review") { _%>
|
||||
* 🔍 Reviewed [#<%= event.number %> <%= event.title %>](https://github.com/<%= repo %>/pulls/<%= event.number %>) in [<%= repo %>](https://github.com/<%= repo %>)
|
||||
* 🔍 Reviewed [#<%= event.number %> <%= event.title %>](https://github.com/<%= repo %>/pull/<%= event.number %>) in [<%= repo %>](https://github.com/<%= repo %>)
|
||||
<%_ } else if (type === "ref/create") { _%>
|
||||
* ⏺️ Created new <%= event.ref.type %> `<%= event.ref.name %>` in [<%= repo %>](https://github.com/<%= repo %>)
|
||||
<%_ } else if (type === "ref/create") { _%>
|
||||
* 🚮 Deleted <%= event.ref.type %> `<%= event.ref.name %>` from [<%= repo %>](https://github.com/<%= repo %>)
|
||||
<%_ } _%>
|
||||
<%_ if (plugins.activity.timestamps) { _%>
|
||||
* *On <%= f.date(timestamp, {timeStyle:"short", dateStyle:"short"}) %>*
|
||||
<%_ } _%>
|
||||
<%_ } _%>
|
||||
<%_ } else { _%>
|
||||
No recent activity
|
||||
|
||||
Reference in New Issue
Block a user