Skip to content

Commit 7d1666b

Browse files
jai-deepsourcedolftax
authored andcommitted
Send workdir on report GraphQL request
Why? Coverage files generally send the complete path. To understand the relative path, the system needs the current working directory Signed-off-by: Jai <[email protected]>
1 parent e4d2fc2 commit 7d1666b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

init.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ func main() {
153153
// Generate query //
154154
////////////////////
155155

156+
reportMeta := make(map[string]string)
157+
reportMeta["workDir"] = currentDir
158+
156159
query := ReportQuery{
157160
Query: reportGraphqlQuery,
158161
}
@@ -165,6 +168,7 @@ func main() {
165168
Key: artifactKey,
166169
Data: artifactValue,
167170
AnalyzerShortcode: analyzerShortcode,
171+
Metadata: reportMeta,
168172
}
169173

170174
query.Variables.Input = queryInput

0 commit comments

Comments
 (0)