Skip to content

Commit b002cfa

Browse files
jai-deepsourcemohi7solanki
authored andcommitted
Update GraphQL API query string
Signed-off-by: Jai <[email protected]>
1 parent ca91894 commit b002cfa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ Notes:
3636
Documentation:
3737
https://deepsource.io/docs/cli#report
3838
`
39-
reportGraphqlQuery = "mutation($input: TrackRepositoryTestCoverageInput!) {\r\n trackRepositoryTestCoverage(input: $input) {\r\n ok\r\n error\r\n }\r\n}"
39+
reportGraphqlQuery = "mutation($input: CreateArtifactInput!) {\r\n createArtifact(input: $input) {\r\n ok\r\n error\r\n }\r\n}"
4040
)

init.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func main() {
182182
"application/json",
183183
)
184184
if err != nil {
185-
fmt.Println("DeepSource | Error | Reporting query failed: ", err)
185+
fmt.Println("DeepSource | Error | Reporting failed | ", err)
186186
os.Exit(0)
187187
}
188188

@@ -207,7 +207,7 @@ func main() {
207207
// }
208208

209209
if queryResponse.Data.CreateArtifact.Ok != true {
210-
fmt.Println("DeepSource | Error | Reporting query failed.")
210+
fmt.Println("DeepSource | Error | Reporting failed | ", queryResponse.Data.CreateArtifact.Error)
211211
os.Exit(0)
212212
}
213213

0 commit comments

Comments
 (0)