diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-11-05 13:50:07 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-11-05 13:50:07 +0200 |
commit | 056df41ed16f6eddf3271caad93a118f97e8b58c (patch) | |
tree | 956f8d0b1dabb1fa9b921b0e153b41c4e575b1e3 /lib/api/builds.rb | |
parent | 3559e3906a005a71183032bc06cf7538fc9d7d05 (diff) | |
download | gitlab-ci-056df41ed16f6eddf3271caad93a118f97e8b58c.tar.gz |
Add Commits API
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api/builds.rb')
-rw-r--r-- | lib/api/builds.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/api/builds.rb b/lib/api/builds.rb index 5d2c352..1103dad 100644 --- a/lib/api/builds.rb +++ b/lib/api/builds.rb @@ -51,6 +51,12 @@ module API end end + # TODO: Remove it after 5.2 release + # + # THIS API IS DEPRECATED. + # Now builds are created by commit. In order to test specific commit you + # need to create Commit entity via Commit API + # # Create a build # # Parameters: @@ -85,7 +91,7 @@ module API authenticate_project_token!(project) builds = CreateBuildsService.new.execute(project, params[:data]) - # to keep api compatibility for now + # Temporary solution to keep api compatibility build = builds.first if build.persisted? |