Precondition:
User story
As a user of the CLI I want to have click through experience for all actionable feedback a get from the audit issues.
At the moment no linking is present. What I need is a way to generate links depending on the current usecase.
- A) The report is located in your local file system
- B) The report is generate in the CI and added to a PR comment
- C) The report is checked in and lives in the repository
CLI argument Example:
npx @code-pushup collect - links in IDEnpx @code-pushup collect --git.host=https://my-github.com/repo-name --git.provider=github - links to git
Acceptance criteria
Implementation details
PersistConfig Example:
typeGitConfig={// skipped means local, otherwise remotegit?: {provider: 'GitHub'|'GitLab';host?: string;// for self-hosted only, defaults to https://github.com or https://gitlab.com}}constGitConfigSchema=z.object({git: z.object({provider: z.enum(['GitHub','GitLab']),host: z.string().url().optional(),// Optional host field with URL validation}).optional(),// git itself is optional});typeReportOptions={sourceLinkFormatter: (source?: SourceFileLocation)=>string}constsourceLinkFormatter=coreConfig.git ? ideLinkFn : cvsLinkFn;constmdReport=generateMdReport(report: Report,options: ReportOptions){// }Related Issues:
#149
Precondition:
User story
As a user of the CLI I want to have click through experience for all actionable feedback a get from the audit issues.
At the moment no linking is present. What I need is a way to generate links depending on the current usecase.
CLI argument Example:
npx @code-pushup collect- links in IDEnpx @code-pushup collect --git.host=https://my-github.com/repo-name --git.provider=github- links to gitAcceptance criteria
Implementation details
PersistConfig Example:
Related Issues:
#149