Skip to content

Commit

Permalink
chore: 🤖 update
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY committed Aug 16, 2024
1 parent 09e29bf commit 28873b4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { groupBy } from "lodash-es";
import { groupBy, trimEnd } from "lodash-es";
import { Entry, Metric, Plots } from "./types";
import { initDataSource } from "./data-source";
import "./style.css";
Expand Down Expand Up @@ -125,9 +125,9 @@ async function main() {
return;
}
let repoUrl =
(data.points[0] as any).data.repoUrl;
const url = repoUrl ? `${repoUrl.trimEnd("/")}/commit/${commit_hash}` : commit_hash;
const notification_text = `Commit <b>${commit_hash}</b> URL copied to clipboard`;
(data.points[0] as any).data.repoUrl ?? "https://github.com/rolldown/rolldown";
const url = repoUrl ? `${trimEnd(repoUrl, '/')}/commit/${commit_hash}` : commit_hash;
const notification_text = `URL of commit <b>${url}</b> copied to clipboard`;
navigator.clipboard.writeText(url);
show_notification(notification_text);
});
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.14.8",
"@types/plotly.js": "^1.54.22",
"husky": "^9.1.4",
"typescript": "^4.5.2",
"vite": "^5.3.1"
},
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 28873b4

Please sign in to comment.