Skip to content

Commit 26e2d7d

Browse files
committed
chore(ci): format the CI plan query
1 parent 67a28b0 commit 26e2d7d

1 file changed

Lines changed: 57 additions & 18 deletions

File tree

‎.github/scripts/ci-plan.gql‎

Lines changed: 57 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,71 @@
1-
query($base: String!, $head: String!) {
2-
packages { items { name path } }
3-
affectedTasks(base: $base, head: $head, tasks: [
4-
"test", "build", "type-check", "ci:integration", "ci:desktop-live",
5-
"ci:e2e-scim", "ci:e2e-cli", "ci:e2e-stop-after", "ci:e2e-desktop-inbox",
6-
"ci:e2e-assistant-actions", "ci:e2e-organization-search", "ci:e2e-search-permissions",
7-
"ci:e2e-docs-platform",
8-
"ci:e2e-browser-extension", "ci:e2e-project-files", "ci:e2e-mobile", "ci:e2e-public-routes",
9-
"ci:e2e-markdown-viewer", "ci:e2e-workflow-code-ui"
10-
]) {
1+
query ($base: String!, $head: String!) {
2+
packages {
3+
items {
4+
name
5+
path
6+
}
7+
}
8+
affectedTasks(
9+
base: $base
10+
head: $head
11+
tasks: [
12+
"test"
13+
"build"
14+
"type-check"
15+
"ci:integration"
16+
"ci:desktop-live"
17+
"ci:e2e-scim"
18+
"ci:e2e-cli"
19+
"ci:e2e-stop-after"
20+
"ci:e2e-desktop-inbox"
21+
"ci:e2e-assistant-actions"
22+
"ci:e2e-organization-search"
23+
"ci:e2e-search-permissions"
24+
"ci:e2e-docs-platform"
25+
"ci:e2e-browser-extension"
26+
"ci:e2e-project-files"
27+
"ci:e2e-mobile"
28+
"ci:e2e-public-routes"
29+
"ci:e2e-markdown-viewer"
30+
"ci:e2e-workflow-code-ui"
31+
]
32+
) {
1133
items {
1234
name
1335
fullName
14-
package { name }
36+
package {
37+
name
38+
}
1539
reason {
1640
__typename
17-
... on TaskFileChanged { filePath }
18-
... on TaskGlobalFileChanged { filePath }
19-
... on TaskGlobalDepsChanged { filePath }
20-
... on TaskDependencyTaskChanged { taskName packageName }
21-
... on TaskPackageDependencyChanged { packageName }
22-
... on TaskAllChanged { description }
41+
... on TaskFileChanged {
42+
filePath
43+
}
44+
... on TaskGlobalFileChanged {
45+
filePath
46+
}
47+
... on TaskGlobalDepsChanged {
48+
filePath
49+
}
50+
... on TaskDependencyTaskChanged {
51+
taskName
52+
packageName
53+
}
54+
... on TaskPackageDependencyChanged {
55+
packageName
56+
}
57+
... on TaskAllChanged {
58+
description
59+
}
2360
}
2461
}
2562
}
2663
# `items` also lists the prerequisites of affected tasks, and docs#build is one for
2764
# ci:e2e-docs-platform. The task filter applies before prerequisites are added, so this
2865
# selection holds docs#build only when the docs site itself changed.
2966
docsSite: affectedTasks(base: $base, head: $head, tasks: ["docs#build"]) {
30-
items { fullName }
67+
items {
68+
fullName
69+
}
3170
}
3271
}

0 commit comments

Comments
 (0)