Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 3286c26

Browse files
Add deprecation messages for deprecated GraphQL fields
This is to make clear that these fields are actually deprecated.
1 parent a8b0011 commit 3286c26

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

graphql_api/types/file/file.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ type File {
22
content: String
33
coverage: [CoverageAnnotation]
44
totals: CoverageTotals
5-
isCriticalFile: Boolean
5+
isCriticalFile: Boolean @deprecated(reason: "Impact Analysis is deprecated.")
66
hashedPath: String!
77
}
88

graphql_api/types/impacted_file/impacted_file.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type ImpactedFile {
55
isNewFile: Boolean!
66
isRenamedFile: Boolean!
77
isDeletedFile: Boolean!
8-
isCriticalFile: Boolean!
8+
isCriticalFile: Boolean! @deprecated(reason: "Impact Analysis is deprecated.")
99
baseCoverage: CoverageTotals
1010
headCoverage: CoverageTotals
1111
patchCoverage: CoverageTotals

graphql_api/types/path_contents/path_content.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type PathContentFile implements PathContent {
1616
partials: Int!
1717
lines: Int!
1818
percentCovered: Float!
19-
isCriticalFile: Boolean!
19+
isCriticalFile: Boolean! @deprecated(reason: "Impact Analysis is deprecated.")
2020
}
2121

2222
type PathContentDir implements PathContent {

graphql_api/types/repository/repository.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type Repository {
3939
before: String
4040
): BranchConnection @cost(complexity: 3, multipliers: ["first", "last"])
4141
defaultBranch: String
42-
profilingToken: String
42+
profilingToken: String @deprecated(reason: "Impact Analysis is deprecated.")
4343
graphToken: String
4444
yaml: String
4545
bot: Owner

0 commit comments

Comments
 (0)