-
Notifications
You must be signed in to change notification settings - Fork 387
Allow option to exclude weekends from total time #564
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
Comments
Maybe using something like this: |
Hi @cschear thanks for opening an issue. I am not sure that such a specific special case is the best path forward for this action. My worry is that once we start special casing for weekends it might spiral into many special cases (weekends, holidays, leap years, etc). That being said, I'll leave this issue open for a bit to see if there is a larger desire for this feature and maybe we can reevaluate if there is a large demand for this feature. |
Also need this feature. We also trying to maintain low stale time (2 or 3days) but because of weekends counted, we are using 4 days instead now. Counting holidays as working days wouldn't much matter because those are relatively rare cases. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Can we revive this please? It's a pretty basic use case |
I think this should be re-considered. At least weekends. It's absolutely crucial for most companies or projects in order to avoid mistakes. |
I also vote for this feature |
Seems like it should be the default. |
Bump. I vote! |
Fixed actions#564 Add support for excluding specific weekdays when calculating elapsed days for stale issues and PRs. This is particularly useful for organizations that want to consider only business days. - Add new `exclude-weekdays` option to specify which days to exclude (0-6, where 0 is Sunday) - Implement weekday exclusion logic in elapsed days calculation - Add tests to verify business days calculation ```yaml - uses: actions/stale@v9 with: days-before-stale: 5 days-before-close: 2 exclude-weekdays: '0,6' # Exclude weekends ```
Fixed actions#564 Add support for excluding specific weekdays when calculating elapsed days for stale issues and PRs. This is particularly useful for organizations that want to consider only business days. - Add new `exclude-weekdays` option to specify which days to exclude (0-6, where 0 is Sunday) - Implement weekday exclusion logic in elapsed days calculation - Add tests to verify business days calculation ```yaml - uses: actions/stale@v9 with: days-before-stale: 5 days-before-close: 2 exclude-weekdays: '0,6' # Exclude weekends ```
Fixed actions#564 Add support for excluding specific weekdays when calculating elapsed days for stale issues and PRs. This is particularly useful for organizations that want to consider only business days. - Add new `exclude-weekdays` option to specify which days to exclude (0-6, where 0 is Sunday) - Implement weekday exclusion logic in elapsed days calculation - Add tests to verify business days calculation ```yaml - uses: actions/stale@v9 with: days-before-stale: 5 days-before-close: 2 exclude-weekdays: '0,6' # Exclude weekends ```
Fixed actions#564 Add support for excluding specific weekdays when calculating elapsed days for stale issues and PRs. This is particularly useful for organizations that want to consider only business days. - Add new `exclude-weekdays` option to specify which days to exclude (0-6, where 0 is Sunday) - Implement weekday exclusion logic in elapsed days calculation - Add tests to verify business days calculation ```yaml - uses: actions/stale@v9 with: days-before-stale: 5 days-before-close: 2 exclude-weekdays: '0,6' # Exclude weekends ```
Fixed actions#564 Add support for excluding specific weekdays when calculating elapsed days for stale issues and PRs. This is particularly useful for organizations that want to consider only business days. - Add new `exclude-weekdays` option to specify which days to exclude (0-6, where 0 is Sunday) - Implement weekday exclusion logic in elapsed days calculation - Add tests to verify business days calculation ```yaml - uses: actions/stale@v9 with: days-before-stale: 5 days-before-close: 2 exclude-weekdays: '0,6' # Exclude weekends ```
The problem
We would like to keep the total time open pretty low - but weekends cause items to be flagged early. For example we would like it to be 3 weekdays - but currently a PR opened on Friday would be stale on Monday.
The solution
Allow an option to exclude weekends from the total time open.
The text was updated successfully, but these errors were encountered: