feat: sort issues
This commit is contained in:
parent
82a66202fc
commit
ef8a8a967f
@ -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"));
|
||||
}
|
Loading…
Reference in New Issue
Block a user