(options: {
targetRepo: string;
sha: string;
metadata: SkippedCommitMetadata;
changedFiles: string[];
})
| 157 | } |
| 158 | |
| 159 | export function skippedNonCodeReport(options: { |
| 160 | targetRepo: string; |
| 161 | sha: string; |
| 162 | metadata: SkippedCommitMetadata; |
| 163 | changedFiles: string[]; |
| 164 | }): string { |
| 165 | const parent = options.metadata.parents[0] ?? "unknown"; |
| 166 | const changedFiles = options.changedFiles.length |
| 167 | ? options.changedFiles.map((file) => `- \`${file}\``).join("\n") |
| 168 | : "- none"; |
| 169 | return `--- |
| 170 | sha: ${options.sha} |
| 171 | parent: ${parent} |
| 172 | repository: ${options.targetRepo} |
| 173 | author: ${yamlScalar(personLabel(options.metadata.authorName, options.metadata.githubAuthor))} |
| 174 | committer: ${yamlScalar(personLabel(options.metadata.committerName, options.metadata.githubCommitter))} |
| 175 | github_author: ${yamlScalar(options.metadata.githubAuthor || "unknown")} |
| 176 | github_committer: ${yamlScalar(options.metadata.githubCommitter || "unknown")} |
| 177 | co_authors: ${options.metadata.coAuthors.length ? yamlArray(options.metadata.coAuthors.map(stripEmailIdentity)) : "[]"} |
| 178 | commit_authored_at: ${yamlScalar(options.metadata.authoredAt)} |
| 179 | commit_committed_at: ${yamlScalar(options.metadata.committedAt)} |
| 180 | result: skipped_non_code |
| 181 | confidence: high |
| 182 | highest_severity: none |
| 183 | check_conclusion: success |
| 184 | reviewed_at: ${new Date().toISOString()} |
| 185 | --- |
| 186 | |
| 187 | # Commit ${shortSha(options.sha)} |
| 188 | |
| 189 | Skipped: non-code-only commit. |
| 190 | |
| 191 | ## Reviewed |
| 192 | |
| 193 | - Classification: cheap pre-Codex path filter |
| 194 | - Changed files: |
| 195 | ${changedFiles} |
| 196 | |
| 197 | ## Limitations |
| 198 | |
| 199 | - Codex review was not started because the commit only changed documentation, changelog, asset, or other non-code files. |
| 200 | `; |
| 201 | } |
no test coverage detected