Skip to content

Commit 2aae850

Browse files
committed
chore: update some emojis
1 parent d05cfee commit 2aae850

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@
857857
<key>text</key>
858858
<string>{query}</string>
859859
<key>title</key>
860-
<string>Cloning…</string>
860+
<string>🧬 Cloning…</string>
861861
</dict>
862862
<key>type</key>
863863
<string>alfred.workflow.output.notification</string>

scripts/github-notifications.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function httpRequestWithHeaders(url, header, extraOpts) {
2626
* @return {string} relative date
2727
*/
2828
function humanRelativeDate(isoDateStr) {
29-
const deltaSecs = (+new Date() - +new Date(isoDateStr)) / 1000;
29+
const deltaSecs = (Date.now() - +new Date(isoDateStr)) / 1000;
3030
/** @type {"year"|"month"|"week"|"day"|"hour"|"minute"|"second"} */
3131
let unit;
3232
let delta;
@@ -54,6 +54,7 @@ function humanRelativeDate(isoDateStr) {
5454
}
5555
const formatter = new Intl.RelativeTimeFormat("en", { style: "long", numeric: "auto" });
5656
const str = formatter.format(-delta, unit);
57+
// biome-ignore lint/nursery/useTopLevelRegex: <explanation>
5758
return str.replace(/m(?= ago$)/, "min"); // "m" -> "min" (more distinguishable from "month")
5859
}
5960

@@ -129,7 +130,7 @@ function run() {
129130
// biome-ignore lint/style/useNamingConvention: not by me
130131
Issue: "🔵",
131132
// biome-ignore lint/style/useNamingConvention: not by me
132-
Discussion: "🏛",
133+
Discussion: "🗣️",
133134
// biome-ignore lint/style/useNamingConvention: not by me
134135
CheckSuite: "🤖",
135136
// biome-ignore lint/style/useNamingConvention: not by me
@@ -145,15 +146,15 @@ function run() {
145146
comment: "💬",
146147
assign: "➡",
147148
// biome-ignore lint/style/useNamingConvention: not by me
148-
ci_activity: " ",
149+
ci_activity: "⚙️",
149150
invitation: "👥",
150-
manual: "",
151+
manual: "🫱",
151152
// biome-ignore lint/style/useNamingConvention: not by me
152153
review_requested: "➡",
153154
// biome-ignore lint/style/useNamingConvention: not by me
154155
security_alert: "❗",
155156
// biome-ignore lint/style/useNamingConvention: not by me
156-
state_change: "",
157+
state_change: "❇️",
157158
};
158159

159160
/** @type AlfredItem[] */

0 commit comments

Comments
 (0)