@@ -26,7 +26,7 @@ function httpRequestWithHeaders(url, header, extraOpts) {
26
26
* @return {string } relative date
27
27
*/
28
28
function humanRelativeDate ( isoDateStr ) {
29
- const deltaSecs = ( + new Date ( ) - + new Date ( isoDateStr ) ) / 1000 ;
29
+ const deltaSecs = ( Date . now ( ) - + new Date ( isoDateStr ) ) / 1000 ;
30
30
/** @type {"year"|"month"|"week"|"day"|"hour"|"minute"|"second" } */
31
31
let unit ;
32
32
let delta ;
@@ -54,6 +54,7 @@ function humanRelativeDate(isoDateStr) {
54
54
}
55
55
const formatter = new Intl . RelativeTimeFormat ( "en" , { style : "long" , numeric : "auto" } ) ;
56
56
const str = formatter . format ( - delta , unit ) ;
57
+ // biome-ignore lint/nursery/useTopLevelRegex: <explanation>
57
58
return str . replace ( / m (? = a g o $ ) / , "min" ) ; // "m" -> "min" (more distinguishable from "month")
58
59
}
59
60
@@ -129,7 +130,7 @@ function run() {
129
130
// biome-ignore lint/style/useNamingConvention: not by me
130
131
Issue : "🔵" ,
131
132
// biome-ignore lint/style/useNamingConvention: not by me
132
- Discussion : "🏛 " ,
133
+ Discussion : "🗣️ " ,
133
134
// biome-ignore lint/style/useNamingConvention: not by me
134
135
CheckSuite : "🤖" ,
135
136
// biome-ignore lint/style/useNamingConvention: not by me
@@ -145,15 +146,15 @@ function run() {
145
146
comment : "💬" ,
146
147
assign : "➡" ,
147
148
// biome-ignore lint/style/useNamingConvention: not by me
148
- ci_activity : " " ,
149
+ ci_activity : "⚙️ " ,
149
150
invitation : "👥" ,
150
- manual : "Ⓜ " ,
151
+ manual : "🫱 " ,
151
152
// biome-ignore lint/style/useNamingConvention: not by me
152
153
review_requested : "➡" ,
153
154
// biome-ignore lint/style/useNamingConvention: not by me
154
155
security_alert : "❗" ,
155
156
// biome-ignore lint/style/useNamingConvention: not by me
156
- state_change : "✴ " ,
157
+ state_change : "❇️ " ,
157
158
} ;
158
159
159
160
/** @type AlfredItem[] */
0 commit comments