Repository navigation
Commit 916810a
committed
Scope
The sample `copilot-setup-steps.yml` workflow triggered on both `push` and
`pull_request` with the same `paths` filter. For a branch pushed to the same
repository, both events fire on the same commit, so the workflow ran twice and
produced two identical check runs on the pull request.
Limit the `push` trigger to the default branch. Changes on any other branch are
still validated through the `pull_request` trigger (including pull requests from
forks, which `push` does not cover in the base repository), and the workflow
still runs when the file lands on the default branch.
Fixes #42379
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FuL8Cm3afpXSBiiGnUo7FApush to the default branch in copilot-setup-steps samples1 parent 9753a30 commit 916810a
2 files changed
Lines changed: 6 additions & 0 deletions
File tree
- content/copilot
- how-tos/copilot-on-github/customize-copilot/customize-cloud-agent
- tutorials/cloud-agent
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
0 commit comments