Display forkee name in activity plugin #292

This commit is contained in:
lowlighter
2021-05-12 12:31:50 +02:00
parent 2b9d8e8539
commit 75978e87ca
2 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@
<%_ } else if (type === "release") { _%>
* 📦 <%- event.draft ? "Drafted release" : event.prerelease ? "Pre-released" : "Released" %> **<%= event.name %>** of [<%= repo %>](https://github.com/<%= repo %>)
<%_ } else if (type === "fork") { _%>
* 🍽️ Forked [<%= repo %>](https://github.com/<%= repo %>)
* 🍽️ Forked [<%= repo %>](https://github.com/<%= repo %>) to [<%= event.forked %>](https://github.com/<%= event.forked %>)
<%_ } else if (type === "push") { _%>
* ➡️ Pushed <%= event.size %> commit<%= s(event.size) %> in [<%= repo %>](https://github.com/<%= repo %>) <%= event.branch ? `on branch \`${event.branch}\`` : "" %>
<%_ for (const commit of event.commits) { _%>
@@ -34,7 +34,7 @@
<%_ } else if (type === "review") { _%>
* 🔍 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 %>)
* ⏺️ Created new <%= event.ref.type %> <%= event.ref.type !== "repository" ? `<%= 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 %>)
<%_ } _%>