diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-01-11 10:20:45 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-01-11 10:20:45 +0100 |
commit | 96bbc145f31ad029e080ad8903445d81d6c31968 (patch) | |
tree | 216c132372a172594af3a509f5c536b510988c69 /lib | |
parent | 4eb27d7c72d57015c7551a00e34a54cefc2d3db9 (diff) | |
download | gitlab-ce-96bbc145f31ad029e080ad8903445d81d6c31968.tar.gz |
Change commit builds URL in builds API
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/builds.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/builds.rb b/lib/api/builds.rb index 05d1b8d92ea..8c21754596b 100644 --- a/lib/api/builds.rb +++ b/lib/api/builds.rb @@ -28,8 +28,8 @@ module API # scope (optional) - The scope of builds to show (one or array of: pending, running, failed, success, canceled; # if none provided showing all builds) # Example Request: - # GET /projects/:id/builds/commit/:sha - get ':id/builds/commit/:sha' do + # GET /projects/:id/repository/commits/:sha/builds + get ':id/repository/commits/:sha/builds' do commit = user_project.ci_commits.find_by_sha(params[:sha]) return not_found! unless commit |