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
Fix /run-skipped-ci to detect and run only actually skipped checks
The previous implementation tried to guess which tests to run based on
a hardcoded list. This fix makes it smarter:
1. **Fetches actual skipped checks from the PR**
- Uses GitHub API to find checks with conclusion='SKIPPED'
- Maps workflow names to workflow files
- Only triggers workflows that have skipped checks
2. **Added force_run input to ALL workflows**
- main.yml, examples.yml, pro-integration-tests.yml,
pro-package-tests.yml, pro-lint.yml
- When force_run=true, detect-changes outputs true for all checks
- Bypasses file change detection that causes skips
3. **Fixed matrix exclusion logic**
- When force_run=true, runs BOTH latest and minimum matrices
- Ensures comprehensive testing of skipped configurations
4. **Improved PR comments**
- Lists all skipped checks that were detected
- Shows which workflows were triggered
- Clear explanation that force_run bypasses detect-changes
Example comment:
```
🚀 Skipped CI Checks - Trigger Results
✅ Successfully triggered skipped CI checks
**Skipped checks detected:**
- build-dummy-app-webpack-test-bundles (React on Rails Pro - Integration Tests)
- lint-js-and-ruby (React on Rails Pro - Lint)
**Triggered workflows:**
- ✅ React on Rails Pro - Integration Tests
- ✅ React on Rails Pro - Lint
**Note:** These workflows will run with `force_run: true` to bypass detect-changes.
```
This fixes the issue where Pro tests were being skipped on PRs without
Pro file changes, and ensures the command only runs what's actually needed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
${verified.length > 0 ? `\n**Note:** These workflows will run with \`force_run: true\` to bypass detect-changes logic that caused them to skip.
190
226
191
-
**Note:** Pro package tests and latest dependency tests are skipped because they already run on all PRs.
227
+
View progress in the [Actions tab](${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions).` : ''}
192
228
193
-
View progress in the [Actions tab](${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions).` : ''}`;
229
+
${notApplicable.length > 0 ? `\nAll CI checks are already running on this PR. Use this command when you see skipped checks that you want to run.` : ''}`;
0 commit comments