Prevent GitHub Triggered Builds

I’ve pulled in a project from my GitHub account. Each time I commit, it triggers a new build. I want to trigger builds via API only. Is it that possible?