From 75978e87cadeedd5554bbddc55dd8c57b734309a Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Wed, 12 May 2021 12:31:50 +0200 Subject: [PATCH] Display forkee name in activity plugin #292 --- source/templates/classic/partials/activity.ejs | 2 +- source/templates/markdown/partials/activity.ejs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/templates/classic/partials/activity.ejs b/source/templates/classic/partials/activity.ejs index dd6a773d..75fff523 100644 --- a/source/templates/classic/partials/activity.ejs +++ b/source/templates/classic/partials/activity.ejs @@ -94,7 +94,7 @@
- <%- _("F") %>orked <%= repo %> + <%- _("F") %>orked <%= repo %> to <%= event.forked %>
<% } %> diff --git a/source/templates/markdown/partials/activity.ejs b/source/templates/markdown/partials/activity.ejs index a8d09c14..7f0fca62 100644 --- a/source/templates/markdown/partials/activity.ejs +++ b/source/templates/markdown/partials/activity.ejs @@ -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 %>) <%_ } _%>