We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0883ba4 commit 5ea279dCopy full SHA for 5ea279d
Rakefile
@@ -93,6 +93,7 @@ namespace :ci do
93
desc 'Trigger remote CI'
94
task :trigger, :repo do |_, args|
95
abort 'Task only applies to travis builds.' if !ENV['TRAVIS'] || !ENV['TRAVIS_API_TOKEN']
96
+ abort 'Task skipped for Pull Requests.' if !ENV['TRAVIS_PULL_REQUEST'].nil? && ENV['TRAVIS_PULL_REQUEST'].downcase != 'false'
97
repo = "DataDog%2F#{args[:repo]}"
98
url = "https://api.travis-ci.org/repo/#{repo}/requests"
99
body = { 'request' => { 'branch' => 'master' } }.to_json
0 commit comments