Skip to content

Commit

Permalink
Display forkee name in activity plugin #292
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed May 12, 2021
1 parent 2b9d8e8 commit 75978e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/templates/classic/partials/activity.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<div class="field">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M5 3.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm0 2.122a2.25 2.25 0 10-1.5 0v.878A2.25 2.25 0 005.75 8.5h1.5v2.128a2.251 2.251 0 101.5 0V8.5h1.5a2.25 2.25 0 002.25-2.25v-.878a2.25 2.25 0 10-1.5 0v.878a.75.75 0 01-.75.75h-4.5A.75.75 0 015 6.25v-.878zm3.75 7.378a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm3-8.75a.75.75 0 100-1.5.75.75 0 000 1.5z"></path></svg>
<div class="content">
<%- _("F") %>orked <span class="repo"><%= repo %></span>
<%- _("F") %>orked <span class="repo"><%= repo %></span> to <span class="repo"><%= event.forked %></span>
</div>
</div>
<% } %>
Expand Down
4 changes: 2 additions & 2 deletions source/templates/markdown/partials/activity.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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) { _%>
Expand All @@ -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 %>)
<%_ } _%>
Expand Down

0 comments on commit 75978e8

Please sign in to comment.