Skip to content

Commit

Permalink
link to specific sha if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoTheThird committed Mar 23, 2022
1 parent c3d3b47 commit 315d534
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ class Reporter {
getDeviceLinkMarkdown(codename) {
return (
((core?.props?.config?.codename &&
`[\`${core?.props?.config?.codename}\`](https://github.com/ubports/installer-configs/blob/master/v2/devices/${core?.props?.config?.codename}.yml)` +
`[\`${
core?.props?.config?.codename
}\`](https://github.com/ubports/installer-configs/blob/${
core?.props?.config?.sha || "master"
}/v2/devices/${core?.props?.config?.codename}.yml)` +
((core?.props?.config?.name &&
core?.props?.os?.name === "Ubuntu Touch" &&
` ([${core?.props?.config?.name}](https://devices.ubuntu-touch.io/device/${core?.props?.config?.codename}/))`) ||
Expand Down

0 comments on commit 315d534

Please sign in to comment.