diff --git a/tools/getIssue.ts b/tools/getIssue.ts index e75458e..62c27b3 100644 --- a/tools/getIssue.ts +++ b/tools/getIssue.ts @@ -5,6 +5,7 @@ type Issue = { url: string; title: string; body: string; + number: number, labels: { name: string; }[] @@ -39,5 +40,6 @@ if (import.meta.main) { Deno.exit(1); } const issues = await getIssues("vi117/scrap-yard", token); - console.log(issues.map(i => `# ${i.title}\n${i.body}`).join("\n\n")); + issues.sort((a, b) => a.number - b.number); + console.log(issues.map(i => `# (${i.number}) ${i.title}\n${i.body}`).join("\n\n")); } \ No newline at end of file