Conversation
|
Move the format:check job from mocha.yml (which uses paths-ignore and skips doc/config-only PRs) into its own format.yml workflow with no path filters so it runs on every PR. Agent-Logs-Url: https://github.com/mochajs/mocha/sessions/b8339218-ca89-4d4f-bbfd-f4ef0beeb362 Co-authored-by: mark-wiemer <7833360+mark-wiemer@users.noreply.github.com>
|
@copilot Instead of creating a new workflow file, can we apply the |
Remove paths-ignore from workflow-level triggers and add a changes detection job that uses the GitHub API to check if non-doc files changed. The format job always runs; all other jobs are conditional on changes.outputs.code to preserve the original skip behavior for documentation-only PRs. Agent-Logs-Url: https://github.com/mochajs/mocha/sessions/8bab526a-e11d-479f-9ce4-2f4f7b4f1e32 Co-authored-by: mark-wiemer <7833360+mark-wiemer@users.noreply.github.com>
Done in ca5811f. Instead of a separate file, I moved the path filtering to the job level within
|
|
@copilot we humans are bad at reading shell scripts, please add generous comments to it. (Code LGTM rn, want to make sure I'm understanding the shell stuff correctly, might as well document it for next time) |
Agent-Logs-Url: https://github.com/mochajs/mocha/sessions/aae1a942-80a7-42d8-9843-e3063a201801 Co-authored-by: mark-wiemer <7833360+mark-wiemer@users.noreply.github.com>
|
Will merge in 1-7 calendar days while I wait for another maintainer to review if they're curious :) |
|
|
||
| jobs: | ||
| # Detect whether non-doc files changed so test jobs can be skipped on | ||
| # documentation-only PRs while format:check still runs on every PR. |
There was a problem hiding this comment.
This is some fancy scripting. I'd rather use something like https://github.com/marketplace/actions/changed-files / https://github.com/RasaHQ/pr-changed-files-filter / similar. WDYT?
|
Do we really need to use an AI to make this change? 🙈 It seems to be inventing a lot of needless stuff here and the challenge with AI generated stuff is that it increases the burden on reviewers. |
|
I figured it was worth a shot, we can abandon this approach |
paths-ignorefrom workflow-level triggers so the workflow fires on all PRschangesdetection job that uses the GitHub API to check whether non-doc files changedformatjob runs unconditionally on every PRlint,smoke,test-*,tsc) are conditional onchanges.outputs.code == 'true'