debian-mirror-gitlab/app/assets/javascripts/environments/graphql/queries/environment_details.query.graphql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

81 lines
1.7 KiB
GraphQL
Raw Normal View History

2023-06-20 00:43:36 +05:30
#import "ee_else_ce/environments/graphql/fragments/environment_protected_data.fragment.graphql"
#import "~/graphql_shared/fragments/user.fragment.graphql"
#import "~/environments/graphql/fragments/deployment_job.fragment.graphql"
2023-03-17 16:20:25 +05:30
query getEnvironmentDetails(
$projectFullPath: ID!
$environmentName: String
$first: Int
$last: Int
$after: String
$before: String
) {
2023-03-04 22:38:38 +05:30
project(fullPath: $projectFullPath) {
id
name
fullPath
environment(name: $environmentName) {
2023-06-20 00:43:36 +05:30
...ProtectedEnvironment
2023-03-04 22:38:38 +05:30
name
2023-06-20 00:43:36 +05:30
tier
2023-04-23 21:23:45 +05:30
lastDeployment(status: SUCCESS) {
id
job {
id
name
}
}
2023-03-17 16:20:25 +05:30
deployments(
orderBy: { createdAt: DESC }
first: $first
last: $last
after: $after
before: $before
) {
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
2023-03-04 22:38:38 +05:30
nodes {
id
iid
status
ref
tag
job {
2023-06-20 00:43:36 +05:30
...DeploymentJob
2023-04-23 21:23:45 +05:30
deploymentPipeline: pipeline {
id
jobs(whenExecuted: ["manual"], retried: false) {
nodes {
2023-06-20 00:43:36 +05:30
...DeploymentJob
2023-04-23 21:23:45 +05:30
scheduledAt
}
}
}
2023-03-04 22:38:38 +05:30
}
commit {
id
shortId
message
webUrl
authorGravatar
authorName
authorEmail
author {
2023-06-20 00:43:36 +05:30
...User
2023-03-04 22:38:38 +05:30
}
}
triggerer {
2023-06-20 00:43:36 +05:30
...User
2023-03-04 22:38:38 +05:30
}
createdAt
finishedAt
}
}
}
}
}