@@ -34,6 +34,7 @@ var GenerateTestReportCmd = &cobra.Command{
3434 githubWorkflowName , _ := cmd .Flags ().GetString ("github-workflow-name" )
3535 githubWorkflowRunURL , _ := cmd .Flags ().GetString ("github-workflow-run-url" )
3636 reportID , _ := cmd .Flags ().GetString ("report-id" )
37+ rerunOfReportID , _ := cmd .Flags ().GetString ("rerun-of-report-id" )
3738 genReportID , _ := cmd .Flags ().GetBool ("gen-report-id" )
3839
3940 goProject , err := utils .GetGoProjectName (projectPath )
@@ -89,6 +90,7 @@ var GenerateTestReportCmd = &cobra.Command{
8990 reports .WithProjectPath (projectPath ),
9091 reports .WithRepoPath (repoPath ),
9192 reports .WithCodeOwnersPath (codeOwnersPath ),
93+ reports .WithRerunOfReportID (rerunOfReportID ),
9294 reports .WithReportID (reportID ),
9395 reports .WithGeneratedReportID (genReportID ),
9496 reports .WithGoRaceDetection (useRace ),
@@ -142,6 +144,7 @@ var GenerateTestReportCmd = &cobra.Command{
142144 reports .WithProjectPath (projectPath ),
143145 reports .WithRepoPath (repoPath ),
144146 reports .WithCodeOwnersPath (codeOwnersPath ),
147+ reports .WithRerunOfReportID (rerunOfReportID ),
145148 reports .WithReportID (reportID ),
146149 reports .WithGeneratedReportID (genReportID ),
147150 reports .WithGoRaceDetection (useRace ),
@@ -190,6 +193,7 @@ func init() {
190193 GenerateTestReportCmd .Flags ().String ("github-workflow-run-url" , "" , "GitHub workflow run URL for the test report" )
191194 GenerateTestReportCmd .Flags ().String ("report-id" , "" , "Optional identifier for the test report. Will be generated if not provided" )
192195 GenerateTestReportCmd .Flags ().Bool ("gen-report-id" , false , "Generate a random report ID" )
196+ GenerateTestReportCmd .Flags ().String ("rerun-of-report-id" , "" , "Optional identifier for the report this is a rerun of" )
193197 GenerateTestReportCmd .Flags ().Bool ("race" , false , "Enable the race detector" )
194198
195199 if err := GenerateTestReportCmd .MarkFlagRequired ("test-results-dir" ); err != nil {
0 commit comments