Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0b8cb75d
Commit
0b8cb75d
authored
Sep 14, 2021
by
Cheryl Li
Committed by
Michael Kozono
Sep 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating feature_category from CI to PA and code_testing
parent
6235833f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
16 deletions
+14
-16
lib/api/ci/pipelines.rb
lib/api/ci/pipelines.rb
+12
-14
lib/api/group_variables.rb
lib/api/group_variables.rb
+1
-1
lib/api/templates.rb
lib/api/templates.rb
+1
-1
No files found.
lib/api/ci/pipelines.rb
View file @
0b8cb75d
...
...
@@ -7,8 +7,6 @@ module API
before
{
authenticate_non_get!
}
feature_category
:continuous_integration
params
do
requires
:id
,
type:
String
,
desc:
'The project ID'
end
...
...
@@ -53,7 +51,7 @@ module API
desc:
'Sort pipelines'
optional
:source
,
type:
String
,
values:
::
Ci
::
Pipeline
.
sources
.
keys
end
get
':id/pipelines'
do
get
':id/pipelines'
,
feature_category: :continuous_integration
do
authorize!
:read_pipeline
,
user_project
authorize!
:read_build
,
user_project
...
...
@@ -69,7 +67,7 @@ module API
requires
:ref
,
type:
String
,
desc:
'Reference'
optional
:variables
,
Array
,
desc:
'Array of variables available in the pipeline'
end
post
':id/pipeline'
do
post
':id/pipeline'
,
feature_category: :continuous_integration
do
Gitlab
::
QueryLimiting
.
disable!
(
'https://gitlab.com/gitlab-org/gitlab/-/issues/20711'
)
authorize!
:create_pipeline
,
user_project
...
...
@@ -96,7 +94,7 @@ module API
params
do
optional
:ref
,
type:
String
,
desc:
'branch ref of pipeline'
end
get
':id/pipelines/latest'
do
get
':id/pipelines/latest'
,
feature_category: :continuous_integration
do
authorize!
:read_pipeline
,
latest_pipeline
present
latest_pipeline
,
with:
Entities
::
Ci
::
Pipeline
...
...
@@ -109,7 +107,7 @@ module API
params
do
requires
:pipeline_id
,
type:
Integer
,
desc:
'The pipeline ID'
end
get
':id/pipelines/:pipeline_id'
do
get
':id/pipelines/:pipeline_id'
,
feature_category: :continuous_integration
do
authorize!
:read_pipeline
,
pipeline
present
pipeline
,
with:
Entities
::
Ci
::
Pipeline
...
...
@@ -125,7 +123,7 @@ module API
use
:pagination
end
get
':id/pipelines/:pipeline_id/jobs'
do
get
':id/pipelines/:pipeline_id/jobs'
,
feature_category: :continuous_integration
do
authorize!
(
:read_pipeline
,
user_project
)
pipeline
=
user_project
.
all_pipelines
.
find
(
params
[
:pipeline_id
])
...
...
@@ -148,7 +146,7 @@ module API
use
:pagination
end
get
':id/pipelines/:pipeline_id/bridges'
do
get
':id/pipelines/:pipeline_id/bridges'
,
feature_category: :pipeline_authoring
do
authorize!
(
:read_build
,
user_project
)
pipeline
=
user_project
.
all_pipelines
.
find
(
params
[
:pipeline_id
])
...
...
@@ -168,7 +166,7 @@ module API
params
do
requires
:pipeline_id
,
type:
Integer
,
desc:
'The pipeline ID'
end
get
':id/pipelines/:pipeline_id/variables'
do
get
':id/pipelines/:pipeline_id/variables'
,
feature_category: :pipeline_authoring
do
authorize!
:read_pipeline_variable
,
pipeline
present
pipeline
.
variables
,
with:
Entities
::
Ci
::
Variable
...
...
@@ -181,7 +179,7 @@ module API
params
do
requires
:pipeline_id
,
type:
Integer
,
desc:
'The pipeline ID'
end
get
':id/pipelines/:pipeline_id/test_report'
do
get
':id/pipelines/:pipeline_id/test_report'
,
feature_category: :code_testing
do
authorize!
:read_build
,
pipeline
present
pipeline
.
test_reports
,
with:
TestReportEntity
,
details:
true
...
...
@@ -194,7 +192,7 @@ module API
params
do
requires
:pipeline_id
,
type:
Integer
,
desc:
'The pipeline ID'
end
get
':id/pipelines/:pipeline_id/test_report_summary'
do
get
':id/pipelines/:pipeline_id/test_report_summary'
,
feature_category: :code_testing
do
authorize!
:read_build
,
pipeline
present
pipeline
.
test_report_summary
,
with:
TestReportSummaryEntity
...
...
@@ -207,7 +205,7 @@ module API
params
do
requires
:pipeline_id
,
type:
Integer
,
desc:
'The pipeline ID'
end
delete
':id/pipelines/:pipeline_id'
do
delete
':id/pipelines/:pipeline_id'
,
feature_category: :continuous_integration
do
authorize!
:destroy_pipeline
,
pipeline
destroy_conditionally!
(
pipeline
)
do
...
...
@@ -222,7 +220,7 @@ module API
params
do
requires
:pipeline_id
,
type:
Integer
,
desc:
'The pipeline ID'
end
post
':id/pipelines/:pipeline_id/retry'
do
post
':id/pipelines/:pipeline_id/retry'
,
feature_category: :continuous_integration
do
authorize!
:update_pipeline
,
pipeline
pipeline
.
retry_failed
(
current_user
)
...
...
@@ -237,7 +235,7 @@ module API
params
do
requires
:pipeline_id
,
type:
Integer
,
desc:
'The pipeline ID'
end
post
':id/pipelines/:pipeline_id/cancel'
do
post
':id/pipelines/:pipeline_id/cancel'
,
feature_category: :continuous_integration
do
authorize!
:update_pipeline
,
pipeline
pipeline
.
cancel_running
...
...
lib/api/group_variables.rb
View file @
0b8cb75d
...
...
@@ -6,7 +6,7 @@ module API
before
{
authenticate!
}
before
{
authorize!
:admin_group
,
user_group
}
feature_category
:
continuous_integration
feature_category
:
pipeline_authoring
helpers
::
API
::
Helpers
::
VariablesHelpers
...
...
lib/api/templates.rb
View file @
0b8cb75d
...
...
@@ -11,7 +11,7 @@ module API
},
gitlab_ci_ymls:
{
gitlab_version:
8.9
,
feature_category: :
continuous_integration
feature_category: :
pipeline_authoring
},
dockerfiles:
{
gitlab_version:
8.15
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment