Skip to content
代码片段 群组 项目
提交 f3dd89e5 编辑于 作者: Alex Kalderimis's avatar Alex Kalderimis
浏览文件

Merge branch '330847-convert-package-details-page-to-use-graphql-2' into 'master'

Add ref to the Pipeline schema for the GraphQL API

See merge request gitlab-org/gitlab!66241
No related branches found
No related tags found
无相关合并请求
...@@ -150,6 +150,9 @@ class PipelineType < BaseObject ...@@ -150,6 +150,9 @@ class PipelineType < BaseObject
description: 'A specific test suite in a pipeline test report.', description: 'A specific test suite in a pipeline test report.',
resolver: Resolvers::Ci::TestSuiteResolver resolver: Resolvers::Ci::TestSuiteResolver
field :ref, GraphQL::STRING_TYPE, null: true,
description: 'Reference to the branch from which the pipeline was triggered.'
def detailed_status def detailed_status
object.detailed_status(current_user) object.detailed_status(current_user)
end end
......
...@@ -11237,6 +11237,7 @@ Represents a file or directory in the project repository that has been locked. ...@@ -11237,6 +11237,7 @@ Represents a file or directory in the project repository that has been locked.
| <a id="pipelinepath"></a>`path` | [`String`](#string) | Relative path to the pipeline's page. | | <a id="pipelinepath"></a>`path` | [`String`](#string) | Relative path to the pipeline's page. |
| <a id="pipelineproject"></a>`project` | [`Project`](#project) | Project the pipeline belongs to. | | <a id="pipelineproject"></a>`project` | [`Project`](#project) | Project the pipeline belongs to. |
| <a id="pipelinequeuedduration"></a>`queuedDuration` | [`Duration`](#duration) | How long the pipeline was queued before starting. | | <a id="pipelinequeuedduration"></a>`queuedDuration` | [`Duration`](#duration) | How long the pipeline was queued before starting. |
| <a id="pipelineref"></a>`ref` | [`String`](#string) | Reference to the branch from which the pipeline was triggered. |
| <a id="pipelineretryable"></a>`retryable` | [`Boolean!`](#boolean) | Specifies if a pipeline can be retried. | | <a id="pipelineretryable"></a>`retryable` | [`Boolean!`](#boolean) | Specifies if a pipeline can be retried. |
| <a id="pipelinesecurityreportsummary"></a>`securityReportSummary` | [`SecurityReportSummary`](#securityreportsummary) | Vulnerability and scanned resource counts for each security scanner of the pipeline. | | <a id="pipelinesecurityreportsummary"></a>`securityReportSummary` | [`SecurityReportSummary`](#securityreportsummary) | Vulnerability and scanned resource counts for each security scanner of the pipeline. |
| <a id="pipelinesha"></a>`sha` | [`String!`](#string) | SHA of the pipeline's commit. | | <a id="pipelinesha"></a>`sha` | [`String!`](#string) | SHA of the pipeline's commit. |
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
coverage created_at updated_at started_at finished_at committed_at coverage created_at updated_at started_at finished_at committed_at
stages user retryable cancelable jobs source_job job downstream stages user retryable cancelable jobs source_job job downstream
upstream path project active user_permissions warnings commit_path uses_needs upstream path project active user_permissions warnings commit_path uses_needs
test_report_summary test_suite test_report_summary test_suite ref
] ]
if Gitlab.ee? if Gitlab.ee?
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册