Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb committed Oct 22, 2023
1 parent fca5222 commit 730838a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,16 @@ const newItems = ({ result, baseUrl }: { result: CompareOutput; baseUrl: string
### New Items
| New Items |
|:----------:|
${result.newItems
.map(item => {
const filename = encodeURIComponent(basename(item));
const base = basename(item);
const filename = encodeURIComponent(base);
const img = baseUrl + 'actual/' + filename + '?raw=true';
return `| ![NewItem](${img}) |`;
return `### \`${base}\`
| |
|:--:|
| ![NewItem](${img}) |
`;
})
.join('\n')}
`;
Expand Down

0 comments on commit 730838a

Please sign in to comment.