Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add buddybuild documentation. #761

Merged
merged 5 commits into from Mar 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,7 @@
* Add your own contribution below
* Fix find inline comment position at the last line of diff - leonhartX
* Add inline comments to changed lines only when `dismiss_out_of_range_message` is enabled - leonhartX
* Add documentation for [buddybuild](https://www.buddybuild.com) - sunshinejr

## 4.3.0

Expand Down
35 changes: 35 additions & 0 deletions lib/danger/ci_source/buddybuild.rb
@@ -0,0 +1,35 @@
module Danger
# ### CI Setup
#
# Buddybuild has an integration for Danger already built-in.
# What you need to do is to upload your `Gemfile` and `Dangerfile` to
# the server and you should be all set-up. However, if you want to use
# different bot for Danger, you can do it with token setup described below.
#
# ### Token Setup
#
# Login to buddybuild and select your app. Go to your *App Settings* and
# in the *Build Settings* menu on the left, choose *Environment Variables*.
#
# #### GitHub
# Add the `DANGER_GITHUB_API_TOKEN` to your build user's ENV.
#
# #### GitLab
# Add the `DANGER_GITLAB_API_TOKEN` to your build user's ENV.

class Buddybuild < CI
def self.validates_as_ci?(_)
false
end

def self.validates_as_pr?(_)
false
end

def initialize(_) end

def supported_request_sources
@supported_request_sources ||= []
end
end
end
1 change: 1 addition & 0 deletions spec/lib/danger/ci_sources/ci_source_spec.rb
Expand Up @@ -7,6 +7,7 @@
[
"Danger::LocalGitRepo",
"Danger::Bitrise",
"Danger::Buddybuild",
"Danger::Buildkite",
"Danger::CircleCI",
"Danger::Drone",
Expand Down