Skip to content

Commit

Permalink
Release 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
marissamarym committed Apr 22, 2021
1 parent 15d06f1 commit 8c0fee3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
memorable-milestones:
runs-on: ubuntu-latest
steps:
- uses: instantish/[email protected].0
- uses: instantish/[email protected].1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
```
Expand Down
5 changes: 5 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ class MilestoneProcessor {
core.info(`Skipping closing ${title} because it has open issues/prs`);
return;
}
const dueOn = milestone.due_on && moment_1.default(milestone.due_on);
if (dueOn && dueOn.isAfter(this.now)) {
core.info(`Skipping closing ${title} because it is in the future`);
return;
}
// Close instantly because there isn't a good way to tag milestones
// and do another pass.
return yield this.closeMilestone(milestone);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "memorable-milestones",
"version": "2.0.0",
"version": "2.0.1",
"private": true,
"description": "Puts milestones on auto-pilot with memorable emoji names",
"main": "lib/main.js",
Expand Down

0 comments on commit 8c0fee3

Please sign in to comment.