Skip to content

Commit

Permalink
fix: minimum upvotes
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertk committed Apr 22, 2020
1 parent 6162bc1 commit 6029d92
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/entrypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,13 @@ async function processIssues(client, args) {
}
}
} else {
log.debug('issue is ancient; marking stale');
if (args.dryrun) {
log.info(
`dry run: would mark ${issue.number} as ${staleLabel} due to last updated age`
);
} else {
await markStale(client, issue, ancientMessage, staleLabel);
}
log.debug('issue is ancient and not enough upvotes; marking stale');
if (args.dryrun) {
log.info(
`dry run: would mark ${issue.number} as ${staleLabel} due to last updated age`
);
} else {
await markStale(client, issue, ancientMessage, staleLabel);
}
}
}
Expand Down

0 comments on commit 6029d92

Please sign in to comment.