Update workflow triggers for Copilot setup#42380
Update workflow triggers for Copilot setup#42380brignano wants to merge 1 commit intogithub:mainfrom
Conversation
Remove pull_request trigger for copilot-setup-steps workflow.
How to review these changes 👓Thank you for your contribution. To review these changes, choose one of the following options: A Hubber will need to deploy your changes internally to review. Table of review linksNote: Please update the URL for your staging server or codespace. The table shows the files in the
Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server 🤖 This comment is automatically generated. |
There was a problem hiding this comment.
Pull request overview
This pull request updates the workflow trigger configuration in the documentation for the copilot-setup-steps.yml workflow. The change removes the pull_request trigger, so the workflow will now only execute on push events to the workflow file itself and via manual workflow_dispatch.
Changes:
- Removed
pull_requesttrigger configuration from the copilot-setup-steps workflow example
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| push: | ||
| paths: | ||
| - .github/workflows/copilot-setup-steps.yml |
There was a problem hiding this comment.
The comment on line 51 states "Automatically run the setup steps when they are changed to allow for easy validation" but with the removal of the pull_request trigger, validation will only happen after the changes are pushed to the branch (typically after merge), not during the pull request review process. Consider updating this comment to reflect that validation occurs on push events rather than during pull request review.
There was a problem hiding this comment.
``
| push: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| push: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml |
Remove pull_request trigger for copilot-setup-steps workflow.
Why:
Closes: #42379
What's being changed (if available, include any code snippets, screenshots, or gifs):
This pull request makes a small change to the workflow trigger configuration, removing the
pull_requesttrigger for thecopilot-setup-steps.ymlworkflow. Now, the workflow will only be triggered onpushevents to the specified file.Before

After

Check off the following: