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.
This PR adds a new rule which moves a holiday in case that day already observes a different holiday.
Change to different weekday if date already falls on a holiday
Rule:
<rule> if is (<type>)? holiday then (<count>)? (next|previous) <weekday>
Rule:
<rule> if is (<type>)? holiday then (<count>)? (next|previous) day (omit <weekdays>)?
Where:
<rule>
any rule<type>
public, bank, school, observance, optional (defaults to public if omitted)<count>
1...31, 1st, 2nd, 3rd<weekday>
Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday<weekdays>
Comma separated list of<weekday>
Examples:
Thursday after 04-02 if is observance holiday then next Thursday
03-01 and if Saturday, Sunday then next Monday if is holiday then 2nd next Tuesday since 2022
05-01 if is public holiday then 2nd next day omit Saturday, Sunday