Skip to content

Commit

Permalink
Merge pull request #26 from mzuehlke/feature/branch_name
Browse files Browse the repository at this point in the history
Add branch name to the display of a PushEvent
  • Loading branch information
thelittlewonder committed Apr 20, 2020
2 parents 51b5cb3 + 6b2d09b commit f53dfb5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,23 @@ export default {
commit += "s";
}
//if event is pushed
// ref starts with "refs/heads/"
let branchRef = activity.payload.ref.slice(11)
stmnt =
createIcon +
"Pushed " +
activity.payload.size +
" " +
commit +
" to " +
'<a href="' +
this.cleanURL(activity.repo.url) +
"/tree/" +
branchRef +
'">' +
branchRef +
"</a>" +
" in " +
repoURL;
break;
case "WatchEvent":
Expand Down

0 comments on commit f53dfb5

Please sign in to comment.