Github Bot for PR build requests

github
api
#1

In GitHub, It would be nice if we had the ability to trigger a PR build based PR comments. Being able to reply to a PR “@bitriseFoobot please build” (or something to that effect).

Why is this important? Sometimes a PR might receive many updates from creation to completion, and each individual push may not be intended to finalize the request (after all, developers are pushing updates to a branch). To reduce the number of unnecessary builds, using a single trigger on creation, then comment-based triggers as-needed might be a good solution. This also gets around a requirement for everyone to have (and actively use) bitrise accounts simply to kick off another PR check. I would just assume the bot would trigger a build based off the predetermined triggers. Perhaps additional trigger “keywords” could be implemented

0 Likes

#2

Hi Cameron,

One potential solution to reduce the number of unnecessary builds could be using “skip ci” either in your commits or PR names. After removing it from the name, PR will be built. You can find more info here https://devcenter.bitrise.io/builds/triggering-builds/skipping-a-given-commit-or-pull-request/

Best,
Roland

0 Likes

#3

Oh interesting - I wasn’t aware of that before. Thanks for passing it along :slight_smile:

0 Likes

#4

Glad to help!

0 Likes

#5

One more thing to add here, you can also use Bitrise rolling builds, which will automatically cancel any running builds on the branch you commited, so will save a lot of build time https://devcenter.bitrise.io/builds/rolling-builds/

0 Likes