Github action is present in every PR instead of the PR to the branch set in yml

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?

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. 

1 Like