Add per-file daily/weekly/monthly/yearly task scheduler - #5
Merged
Conversation
Co-authored-by: adamf9898 <13308556+adamf9898@users.noreply.github.com>
Co-authored-by: adamf9898 <13308556+adamf9898@users.noreply.github.com>
Co-authored-by: adamf9898 <13308556+adamf9898@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
adamf9898
August 11, 2026 16:33
View session
adamf9898
marked this pull request as ready for review
August 11, 2026 17:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds a per-file task scheduler so mtgBot can contain, control, and execute daily, weekly, monthly, and yearly tasks for every file in the project. For each file the scheduler derives a set of tasks grouped by cadence, each bundling:
The three verbs from the request map directly to the tooling:
tasks/tasks.jsonmanifest--list <cadence>filtering--execute <cadence>, which only runs commands on a safe, auditable whitelistChanges
scripts/taskScheduler.js— engine that walks the tree (excluding deps/VCS/build output) and generates per-file tasks for all four cadences, with file-type profiles (JavaScript, JSON, Markdown, web, data, assets, default fallback). Supports--generate(default),--dry-run,--list, and--execute.scripts/__tests__/taskScheduler.test.js— 16 unit + integration tests.tasks/— generated output:tasks.jsonmanifest,daily.md/weekly.md/monthly.md/yearly.md, and aREADME.md(271 files scheduled).package.json— new scripts:tasks,tasks:dry,tasks:daily,tasks:weekly,tasks:monthly,tasks:yearly..github/workflows/monthly-tasks.ymlandyearly-tasks.yml— new scheduled workflows matching the existing daily/weekly automation pattern.tasks/README.md.Validation
npm run lint— 0 errorsnpm test— 90/90 pass (6 suites)npm run validate:json— all valid (including newtasks.json)Usage