Skip to content

Commit

Permalink
add withdrawn tag detect
Browse files Browse the repository at this point in the history
  • Loading branch information
septs committed Dec 23, 2020
1 parent f16ecc7 commit f6ad2bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/fetch/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ export async function getProposals() {
spec = undefined;
}
}
if (proposal.stage === -1) {
proposal.tags.push('inactive');
}
if (proposal.rationale && /withdrawn/i.test(proposal.rationale)) {
proposal.tags.push('withdrawn');
} else if (proposal.stage === -1) {
proposal.tags.push('inactive');
}
if (data?.archived) {
proposal.tags.push('archived');
Expand Down

0 comments on commit f6ad2bb

Please sign in to comment.