Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-01-06 00:10:22 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-01-06 00:10:22 +0300
commit590189d177dad55b697fd52bd88edfdfcebff30d (patch)
tree3ff14a2d6ed5a2a79283cec38aa944b49e53335d /lib/api/helpers.rb
parentf368b4968e55b32dcedfaefe7c31f7a9463454cf (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 030efe14d8b..3742c3b1c36 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -220,6 +220,10 @@ module API
user_project.builds.find(id.to_i)
end
+ def find_job!(id)
+ user_project.processables.find(id.to_i)
+ end
+
def authenticate!
unauthorized! unless current_user
end