Open avtar opened 6 years ago
This would be cool, but TBH you can build this fairly easily using a bot like probot (https://github.com/probot/probot), and the buildkite REST API. I'm doing something similar and it's working well for us.
Yeah, would be awesome to see something like this that used a block step and our API.
@KevinGrandon, @lox I've opened #293 that focuses solely on the secure third-party PR defaults aspect.
Since the GitHub Statuses API is already being used to provide PR feedback about some aspects of the CI process I would argue that this feature (indicating a build is blocked and allow for unblocking) would be useful in Buildkite itself instead of relying on a third-party solution.
Perhaps this is an oversight on my part but currently if a block step is used the feedback provided in the PR thread seems incomplete. Because the pipeline was successfully uploaded it would seem to a third party contributor that the CI job has passed whereas on the Buildkite dashboard it's waiting to be resumed.
@KevinGrandon Did you opensource your probot/buildkite application ?
@KevinGrandon Did you opensource your probot/buildkite application ?
Sorry, this issue has changed a bit. I think you could do a probot to trigger a build using a hosted probot and the buildkite API. I am not sure if you can turn off third party builds, and use the buildkite API to trigger a build /w block step, it seems that the API might not support running on a branch other than the default?
Regardless though, I hope we get something like #293.
A very simple version of this would be to only build on PRs from forks initiated by users who have write access to the main repository. This seems like a good proxy for "trusted", and enables the common workflow where people have write access to the main repo but still push feature branches to their forks to avoid cluttering the main repo.
I'm guessing this is still not possible?
Setting up a GitHub Action to trigger a Buildkite pipeline based on a comment seems like a possible solution: https://github.com/buildkite/trigger-pipeline-action
Returning to the topic title here. Independent of issues of third-party forks, it would be nice to be able to trigger buildkite pipelines on other GitHub events (specifically comments). Could buildkite add a generic "webhook" trigger? I would be happy to add the logic to parse the webhook event and decide what to do based on it. Triggering from a GitHub action adds an unfortunate dependency on another automation system that I have found to be pretty slow and unreliable (which is why I'm advocating Buildkite as the automation system my team standardizes on).
A very common workflow for open source projects is to request that contributors fork official project repositories, make changes in their own branches, and then issue pull requests using the forked repositories and branches. The Buildkite
Build pull requests from third-party forked repositories
GitHub setting would be safer if additional settings were provided that prevented CI jobs from running unless verified by upstream project members. Please consider adding support for: