Skipping builds for empty branches


Would it be possible to skip builds for empty branches? Meaning if I push a branch whose HEAD is a commit on master, I would not see a new CI status on that commit (which is on master as well), but then when a new commit comes in, a build would run as usual.

I have this problem where I’m using the GitHub API to create a branch from master, then using their contents API, I create commits in it. It results in a build on the empty branch, which affects the status of the commit on master.

Another solution provided by other CI systems is to have a different status context for branches and master, which lets you ignore branch builds on master.