Holidays and business days

Set on the Rules step.

The calendar

The policy

What happens when a date falls on a weekend or holiday: | Policy | Result | |—|—| | Create anyway | The issue is created on that date. | | Move to previous business day | Moves back to the closest business day. | | Move to next business day | Moves forward to the closest business day. | | Skip | No issue for that date. |

The policy applies to the due date. Early creation is not moved (see Early creation).

Behaviours to know

  1. Never leaves the month (or year). For monthly rules a move stays in the calendar month; for yearly rules, in the calendar year. If “next business day” would cross into the next month, RepeatWise uses the previous business day instead (and the other way round). Example: last day of July 2027 is a Saturday, next business day would be 2 August, so the issue is due Friday 30 July. The Review step says “Moved to the nearest business day in the other direction to stay in the month”.
  2. Daily, weekly: no limit. A move may cross a month boundary.
  3. Several dates, one day. If a Saturday, Sunday and Monday date all move to Monday, only one issue is created at that time. The others are merged (shown in the log as “Merged into an earlier occurrence”).
  4. “Business days only” (daily). Counts every N-th business day. Weekends and holidays are not dates at all: nothing is skipped or logged.
  5. Business-day positions. “Last business day” and “1st business day” already land on a business day; the policy has no effect on them.
  6. Skipped dates count. With “After N occurrences”, a date skipped by the policy still uses one of the N.
  7. A schedule with a policy of Skip still previews 10 issues: skipped dates are not counted against the 10.
  8. No business day at all in the period (only possible with manual holidays): the date is left unchanged.

Examples (France, 08:00)

Third-party data

Public holiday data comes from date-holidays, which draws on Wikipedia and other community sources listed in its LICENSE. The package’s LICENSE says the holiday data is CC BY-SA 3.0 and its code is ISC. Its package.json declares (ISC AND CC-BY-3.0).

Public holiday data comes from the open-source date-holidays package by commenthol, based on Wikipedia articles, and is used unmodified under the Creative Commons Attribution-ShareAlike 3.0 licence (CC BY-SA 3.0). The package code is under the ISC licence.