When you have duplicate builds triggering on every commit or push this usually indicates that there's a problem with the webhook in GitHub.
Typically this means there are multiple webhooks added to the repository/project in GitHub for CircleCI.
We would recommend having an admin of the Github Organization follow these steps in order:
1. In GitHub, navigate to the impacted repository settings. https://github.com/OrgName/Repository
2. Select Webhooks
3. If there are multiple webhooks present here, remove all of the duplicate webhooks for CircleCI.
If this does not resolve the duplicate triggered builds issue, then your Organization Admin can entirely remove all webhooks for the repository, stop building, and then add the project back on CircleCI.
- Navigate to the repository settings/Webhooks as described above.
- Remove all of the webhooks for CircleCI.
- In CircleCI, stop building the project through "Project settings". https://app.circleci.com/settings/project/github/ORGNAME/PROJECTNAME
- Then, reconnect the project back on CircleCI.
Once this has been done you should only see one build being triggered with each push/commit.
A full walkthrough for removing a project/repository from CircleCI can be found here, including screenshots.
Article is closed for comments.