-
-
Notifications
You must be signed in to change notification settings - Fork 638
Make /run-skipped-ci persistent using full-ci label #2007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
6fc849c
Make /run-skipped-ci persistent using full-ci label
justin808 400bb80
Fix YAML syntax error in stop-run-skipped-ci workflow
justin808 1015fe9
Fix critical bug: incorrect output reference in workflow files
justin808 aac7121
Improve full-ci label implementation with better output handling and UX
justin808 f9da7d3
Refactor full-ci label implementation and fix code review issues
justin808 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: Cleanup full-ci label on PR merge | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [closed] | ||
|
|
||
| jobs: | ||
| remove-label: | ||
| # Only run when PR is actually merged (not just closed) | ||
| if: github.event.pull_request.merged == true | ||
| runs-on: ubuntu-22.04 | ||
| permissions: | ||
| issues: write | ||
| pull-requests: write | ||
| steps: | ||
| - name: Remove full-ci label | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| try { | ||
| await github.rest.issues.removeLabel({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| issue_number: context.issue.number, | ||
| name: 'full-ci' | ||
| }); | ||
| console.log('✅ Removed full-ci label from merged PR'); | ||
| } catch (error) { | ||
| if (error.status === 404) { | ||
| console.log('ℹ️ Label not present - nothing to clean up'); | ||
| } else { | ||
| console.error('⚠️ Failed to remove label:', error.message); | ||
| // Don't fail the workflow - this is just cleanup | ||
| } | ||
| } |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: PR Welcome Message | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened] | ||
|
|
||
| jobs: | ||
| welcome: | ||
| runs-on: ubuntu-22.04 | ||
| permissions: | ||
| issues: write | ||
| pull-requests: write | ||
| steps: | ||
| - name: Post welcome message | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| const welcomeMessage = [ | ||
| '👋 **Thanks for your contribution!**', | ||
| '', | ||
| 'This PR will run CI tests based on the files you changed. If some tests are skipped and you want to run the full test suite (including minimum dependency tests), you can use these commands:', | ||
| '', | ||
| '### CI Control Commands', | ||
| '', | ||
| '- **`/run-skipped-ci`** - Runs all skipped CI checks and enables full CI mode for this PR', | ||
| ' - Adds the `full-ci` label to ensure future commits also run the full test suite', | ||
| ' - Useful when you want comprehensive testing across all configurations', | ||
| '', | ||
| '- **`/stop-run-skipped-ci`** - Disables full CI mode and returns to standard CI', | ||
| ' - Removes the `full-ci` label', | ||
| ' - Future commits will only run tests for changed files', | ||
| '', | ||
| '💡 **Note:** The `full-ci` label will be automatically removed when this PR is merged.', | ||
| '', | ||
| 'View CI progress in the [Actions tab](${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions).' | ||
| ].join('\n'); | ||
| await github.rest.issues.createComment({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| issue_number: context.issue.number, | ||
| body: welcomeMessage | ||
| }); | ||
| console.log('✅ Posted welcome message to PR'); |
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.