You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow option to exclude specific weekdays from total time
Fixed#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
```
Copy file name to clipboardExpand all lines: action.yml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -212,6 +212,10 @@ inputs:
212
212
description: 'Only issues with a matching type are processed as stale/closed. Defaults to `[]` (disabled) and can be a comma-separated list of issue types.'
213
213
default: ''
214
214
required: false
215
+
exclude-weekdays:
216
+
description: 'Comma-separated list of weekdays to exclude from elapsed days calculation (0=Sunday, 6=Saturday)'
217
+
required: false
218
+
default: ''
215
219
outputs:
216
220
closed-issues-prs:
217
221
description: 'List of all closed issues and pull requests.'
0 commit comments