(ctx context.Context, runIDOrURL string, opts auditCommandOptions)
| 185 | } |
| 186 | |
| 187 | func runAuditSingle(ctx context.Context, runIDOrURL string, opts auditCommandOptions) error { |
| 188 | components, err := parser.ParseRunURLExtended(runIDOrURL) |
| 189 | if err != nil { |
| 190 | return err |
| 191 | } |
| 192 | if err := applyAuditRepoFlag(opts.repoFlag, components); err != nil { |
| 193 | return err |
| 194 | } |
| 195 | return AuditWorkflowRun(ctx, components.Number, AuditOptions{ |
| 196 | Owner: components.Owner, |
| 197 | Repo: components.Repo, |
| 198 | Hostname: components.Host, |
| 199 | OutputDir: opts.outputDir, |
| 200 | Verbose: opts.verbose, |
| 201 | Parse: opts.parse, |
| 202 | JSONOutput: opts.jsonOutput, |
| 203 | JobID: components.JobID, |
| 204 | StepNumber: components.StepNumber, |
| 205 | ArtifactSets: opts.artifacts, |
| 206 | ExperimentFilter: opts.experimentFilter, |
| 207 | VariantFilter: opts.variantFilter, |
| 208 | }) |
| 209 | } |
| 210 | |
| 211 | func applyAuditRepoFlag(repoFlag string, components *parser.GitHubURLComponents) error { |
| 212 | if repoFlag == "" || components.Owner != "" { |
no test coverage detected