GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix issue when days-before-close is more than days-before-stale by luketomlinson · Pull Request #775 · actions/stale

Conversation

@luketomlinson

@luketomlinson luketomlinson commented Jul 15, 2022

Copy link
Copy Markdown
Collaborator

Changes

When we introduced #717, we inadvertently introduced a bug that would occur when days-before-close > days-before-stale.

Example:

days-before-stale: 0 and days-before-close: 30

Every issue should be stale in this scenario and the stale label would be applied as expected. The problem was is that the action would look back 30 days and ALWAYS see an update and immediately remove the stale label.

My changes change the logic that can potentially "un-stale" an issue. Rather than check for an update in the last days-before-close days (e.g. 30), I check if the update occurred AFTER the stale date. This is subtle, but caused big issues for actions when days-before-close > days-before-stale

Context

fixes #774

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@luketomlinson
luketomlinson requested a review from a team as a code owner July 15, 2022 20:36
@luketomlinson
Fix issue when days-before-close is more than days-before-stale
c41db09
@luketomlinson
luketomlinson force-pushed the bugfix-774 branch from 05eff44 to c41db09 Compare July 15, 2022 20:37
@luketomlinson
luketomlinson requested a review from thboop July 15, 2022 20:39
@luketomlinson luketomlinson mentioned this pull request Jul 15, 2022
fix(options): add missing close-issue-reason option #772
Merged
@luketomlinson
luketomlinson requested review from benwells and cory-miller July 19, 2022 17:15
cory-miller
cory-miller approved these changes Jul 20, 2022
View reviewed changes
benwells
benwells approved these changes Jul 22, 2022
View reviewed changes

@benwells benwells left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@luketomlinson
luketomlinson merged commit 2b58cc9 into main Jul 25, 2022
@luketomlinson
luketomlinson deleted the bugfix-774 branch July 25, 2022 13:24
@luketomlinson luketomlinson mentioned this pull request Jul 25, 2022
Tag v5 does not point to latest commit #783
Closed
@WikiRik WikiRik mentioned this pull request Aug 10, 2022
Github-actions bot keeps commenting 'stale' instead of actually closing. sequelize/sequelize#14833
Closed
3 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@thboop thboop Awaiting requested review from thboop
2 more reviewers
@benwells benwells benwells approved these changes
@cory-miller cory-miller cory-miller approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Action keep removing stale label and adding stale label

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@luketomlinson @benwells @cory-miller
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.