MCPcopy Index your code
hub / github.com/refined-github/refined-github / getCloseDate

Function getCloseDate

source/features/netiquette.tsx:26–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24import observe from '../helpers/selector-observer.js';
25
26export async function getCloseDate(): Promise<Date | undefined> {
27 if (pageDetect.isOpenConversation()) {
28 return;
29 }
30
31 const {closed_at: closedAt} = await api.v3(`issues/${getConversationNumber()!}`);
32 if (!closedAt) {
33 throw new TypeError('closed_at field is null');
34 }
35
36 return new Date(closedAt);
37}
38
39const threeMonths = toMilliseconds({days: 90});
40

Callers 2

addConversationBannerFunction · 0.85
initBannerFunction · 0.85

Calls 1

getConversationNumberFunction · 0.85

Tested by

no test coverage detected