Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stale closing logic by removing close date addition #93

Merged
merged 1 commit into from
Jun 8, 2020

Conversation

hross
Copy link
Contributor

@hross hross commented Jun 8, 2020

The closing logic doesn't work because label updates push the updated date on an issue.

I originally added closing days + stale days thinking the updated time wouldn't take the label add into account and because there was a bug where we didn't update the issue updated_at in memory when we marked it stale.

Although there were tests, without the API results its hard to specifically mock all the API edge cases. Existing tests should cover the rest of this fix to make sure there are no regressions.

@hross
Copy link
Contributor Author

hross commented Jun 8, 2020

Going to wait to see if I can get some live tests on repos that have stale issues which should be closed before I merge and publish a new version.

@hross hross merged commit c72e3d7 into master Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant