Why aren't pull requests triggering jobs on my organization?

If you revoked OAuth access to CircleCI on your VCS provider (GitHub, BitBucket)

If you revoke OAuth access to the CircleCI app on your VCS provider it will disable the keys that we used to authorize your account. We do not receive notifications when the auth is revoked, and may still attempt to use the now revoked auth. For instance, you may encounter this when trying to submit a PR to an open source project that uses CircleCI and it does not trigger. If you encounter this issue submit a support ticket and we can resolve it for you.


If you're following the fork instead of the upstream repo

Sometimes you'll have a user who submits a pull request to your repository from a fork, but no pipeline will be triggered with the pull request. This can happen when the user is following the project fork on their personal account rather than the project itself on CircleCI.

This will cause the jobs to trigger under the user's personal account. If the user is following a fork of the repository on CircleCI, we will only build on that fork and not the parent, so the parent’s PR will not get status updates. 

In these cases have the user unfollow their fork of the project on CircleCI and follow the source project instead. This will trigger their jobs to run under the organization when they submit pull requests.

Note: This feature is not currently supported for BitBucket users.

 

If the branch and the pull request happen to be created simultaneously

You might experience builds that are pull requests not running with the error message "This project is configured to only run builds that have open pull requests associated with them. Update the
'Only build pull requests' setting to run this build." 

This happens due to a race condition when a branch is created and a pull request is opened simultaneously. CircleCI will receive notification the branch was created, and will not run the build because it is not a pull request.

We will then receive a second notification of a pull request being opened, with the same commit hash. Since we will never run the same commit hash twice, the build is updated in the UI, but never ran.

To ensure this doesn't happen to builds with "Only build pull requests" turned on, you can disable the "Branch or tag creation" setting in Github. This will ensure that the only webhooks we receive are when the pull request is open.

How to find your webhook settings: https://support.circleci.com/hc/en-us/articles/360021511153-How-to-view-your-GitHub-WebHook-deliveries

Find this option, and uncheck the box.

Screen_Shot_2019-08-16_at_4.33.15_PM.png

Was this article helpful?
13 out of 35 found this helpful

Comments

0 comments

Please sign in to leave a comment.