@@ -15,6 +15,7 @@ import (
15
15
"os"
16
16
"path"
17
17
"path/filepath"
18
+ "strings"
18
19
"time"
19
20
)
20
21
@@ -129,7 +130,8 @@ func (d DiggerApi) ReportProjectRun(namespace string, projectName string, starte
129
130
return nil
130
131
}
131
132
132
- func (d DiggerApi ) ReportProjectJobStatus (repo string , projectName string , jobId string , status string , timestamp time.Time , summary * iac_utils.IacSummary , planJson string , PrCommentUrl string , terraformOutput string , iacUtils iac_utils.IacUtils ) (* scheduler.SerializedBatch , error ) {
133
+ func (d DiggerApi ) ReportProjectJobStatus (repoFullName string , projectName string , jobId string , status string , timestamp time.Time , summary * iac_utils.IacSummary , planJson string , PrCommentUrl string , terraformOutput string , iacUtils iac_utils.IacUtils ) (* scheduler.SerializedBatch , error ) {
134
+ repoNameForBackendReporting := strings .ReplaceAll (repoFullName , "/" , "-" )
133
135
u , err := url .Parse (d .DiggerHost )
134
136
if err != nil {
135
137
log .Fatalf ("Not able to parse digger cloud url: %v" , err )
@@ -152,7 +154,7 @@ func (d DiggerApi) ReportProjectJobStatus(repo string, projectName string, jobId
152
154
}
153
155
}
154
156
155
- u .Path = filepath .Join (u .Path , "repos" , repo , "projects" , projectName , "jobs" , jobId , "set-status" )
157
+ u .Path = filepath .Join (u .Path , "repos" , repoNameForBackendReporting , "projects" , projectName , "jobs" , jobId , "set-status" )
156
158
request := map [string ]interface {}{
157
159
"status" : status ,
158
160
"timestamp" : timestamp ,
0 commit comments