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
2dfa26d9
Commit
2dfa26d9
authored
Aug 28, 2020
by
lauraMon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds graphql docs, etc
* Adds docs and schema * Adds changelog * Fixes tiny typo
parent
95befdc4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
78 additions
and
1 deletion
+78
-1
app/graphql/types/ci/pipeline_type.rb
app/graphql/types/ci/pipeline_type.rb
+1
-1
changelogs/unreleased/lm-add-pipeline-actions.yml
changelogs/unreleased/lm-add-pipeline-actions.yml
+5
-0
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+15
-0
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+54
-0
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+3
-0
No files found.
app/graphql/types/ci/pipeline_type.rb
View file @
2dfa26d9
...
...
@@ -57,7 +57,7 @@ module Types
method: :cancelable?
,
null:
false
field
:destroyable
,
GraphQL
::
BOOLEAN_TYPE
,
description:
'Specifies if a pipeline can
n
be destroyed'
,
description:
'Specifies if a pipeline can be destroyed'
,
null:
false
,
resolve:
->
(
pipeline
,
_args
,
context
)
{
Ability
.
allowed?
(
context
[
:current_user
],
:destroy_pipeline
,
pipeline
)
}
end
...
...
changelogs/unreleased/lm-add-pipeline-actions.yml
0 → 100644
View file @
2dfa26d9
---
title
:
'
GraphQL:
Add
retryable,
cancelable,
and
destroyable
to
PipelineType'
merge_request
:
40780
author
:
type
:
added
doc/api/graphql/reference/gitlab_schema.graphql
View file @
2dfa26d9
...
...
@@ -10697,6 +10697,11 @@ type Pipeline {
"""
beforeSha
:
String
"""
Specifies
if
a
pipeline
is
cancelable
"""
cancelable
:
Boolean
!
"""
Timestamp
of
the
pipeline
'
s
commit
"""
...
...
@@ -10719,6 +10724,11 @@ type Pipeline {
"""
createdAt
:
Time
!
"""
Specifies
if
a
pipeline
can
be
destroyed
"""
destroyable
:
Boolean
!
"""
Detailed
status
of
the
pipeline
"""
...
...
@@ -10744,6 +10754,11 @@ type Pipeline {
"""
iid
:
String
!
"""
Specifies
if
a
pipeline
is
retryable
"""
retryable
:
Boolean
!
"""
Vulnerability
and
scanned
resource
counts
for
each
security
scanner
of
the
pipeline
"""
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
2dfa26d9
...
...
@@ -32015,6 +32015,24 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "cancelable",
"description": "Specifies if a pipeline is cancelable",
"args": [
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "committedAt",
"description": "Timestamp of the pipeline's commit",
...
...
@@ -32075,6 +32093,24 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "destroyable",
"description": "Specifies if a pipeline can be destroyed",
"args": [
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "detailedStatus",
"description": "Detailed status of the pipeline",
...
...
@@ -32157,6 +32193,24 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "retryable",
"description": "Specifies if a pipeline is retryable",
"args": [
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "securityReportSummary",
"description": "Vulnerability and scanned resource counts for each security scanner of the pipeline",
doc/api/graphql/reference/index.md
View file @
2dfa26d9
...
...
@@ -1650,15 +1650,18 @@ Information about pagination in a connection.
| Name | Type | Description |
| --- | ---- | ---------- |
|
`beforeSha`
| String | Base SHA of the source branch |
|
`cancelable`
| Boolean! | Specifies if a pipeline is cancelable |
|
`committedAt`
| Time | Timestamp of the pipeline's commit |
|
`configSource`
| PipelineConfigSourceEnum | Config source of the pipeline (UNKNOWN_SOURCE, REPOSITORY_SOURCE, AUTO_DEVOPS_SOURCE, WEBIDE_SOURCE, REMOTE_SOURCE, EXTERNAL_PROJECT_SOURCE, BRIDGE_SOURCE, PARAMETER_SOURCE) |
|
`coverage`
| Float | Coverage percentage |
|
`createdAt`
| Time! | Timestamp of the pipeline's creation |
|
`destroyable`
| Boolean! | Specifies if a pipeline can be destroyed |
|
`detailedStatus`
| DetailedStatus! | Detailed status of the pipeline |
|
`duration`
| Int | Duration of the pipeline in seconds |
|
`finishedAt`
| Time | Timestamp of the pipeline's completion |
|
`id`
| ID! | ID of the pipeline |
|
`iid`
| String! | Internal ID of the pipeline |
|
`retryable`
| Boolean! | Specifies if a pipeline is retryable |
|
`securityReportSummary`
| SecurityReportSummary | Vulnerability and scanned resource counts for each security scanner of the pipeline |
|
`sha`
| String! | SHA of the pipeline's commit |
|
`startedAt`
| Time | Timestamp when the pipeline was started |
...
...
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