Commit d8085824 authored by Lin Jen-Shin's avatar Lin Jen-Shin Committed by Albert Salim

Request against CI_API_V4_URL than GitLab.com

So it works on other instances.
parent 03903b0a
......@@ -5,9 +5,10 @@ require 'gitlab'
require 'test_file_finder'
gitlab_token = ENV.fetch('DANGER_GITLAB_API_TOKEN', '')
gitlab_endpoint = ENV.fetch('CI_API_V4_URL')
Gitlab.configure do |config|
config.endpoint = 'https://gitlab.com/api/v4'
config.endpoint = gitlab_endpoint
config.private_token = gitlab_token
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment