Github action is present in every PR instead of the PR to the branch set in yml #26955
-
I have github actions setup in yml like so: When I created three PRs from the same branch (which was branched out of master) to master, rc, and develop the action above is present in all the PR instead of only being present in develop PR. Did I set up something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @ostsmolynets , I set up similar scenario in my repo. The workflow run trigged by on pull_request event from source branch to develop branch are attached to all the PRs checks list. The check runs for the last commit will show in the Pull Request checks list. As the last commit is on source branch and all your PRs are from source branch to others, so the commit is associated to all the PRs and the workflow run is present in all the PRs. This is an expected behavior. |
Beta Was this translation helpful? Give feedback.
Hi @ostsmolynets ,
I set up similar scenario in my repo. The workflow run trigged by on pull_request event from source branch to develop branch are attached to all the PRs checks list.
The check runs for the last commit will show in the Pull Request checks list. As the last commit is on source branch and all your PRs are from source branch to others, so the commit is associated to all the PRs and the workflow run is present in all the PRs. This is an expected behavior.