diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-12-01 12:39:13 +0100 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-01-07 09:38:05 +0100 |
commit | c4d615c9dcba6815d0e9d1b7b7de5b7528ac7c72 (patch) | |
tree | d5358e8d4dad18f7b92b2dea54b1b1b768e37313 /lib/api | |
parent | b97b85c37e77e5d37705cb2d3a60161896585420 (diff) | |
download | gitlab-ce-c4d615c9dcba6815d0e9d1b7b7de5b7528ac7c72.tar.gz |
Allow to include files from another projects
This adds `project:, file:, ref:` specification support.
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/lint.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/lint.rb b/lib/api/lint.rb index 0342a4b6654..a7672021db0 100644 --- a/lib/api/lint.rb +++ b/lib/api/lint.rb @@ -8,7 +8,8 @@ module API requires :content, type: String, desc: 'Content of .gitlab-ci.yml' end post '/lint' do - error = Gitlab::Ci::YamlProcessor.validation_message(params[:content]) + error = Gitlab::Ci::YamlProcessor.validation_message(params[:content], + user: current_user) status 200 |