summaryrefslogtreecommitdiff
path: root/lib/api/builds.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/builds.rb')
-rw-r--r--lib/api/builds.rb8
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?