Skip to content

Commit

Permalink
chore: release package
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklafrance committed Apr 9, 2024
1 parent dc03cb7 commit 2809fa1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-lemons-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@workleap/chromatic-ado": patch
---

Updated the PR comment UI
16 changes: 8 additions & 8 deletions src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,17 @@ async function run() {
}

const comment = `
## 🎨 Chromatic
### ${output.errorCount > 0 || output.changeCount > 0 ? "❌" : "βœ…"} Chromatic
<div>
<table>
<tbody>
<tr>
<td><b>Latest commit:</b></td>
<td><code>${getVariable("Build.SourceVersion")}</code></td>
<td>πŸ”¨ Latest commit:</td>
<td>${getVariable("Build.SourceVersion")}</td>
</tr>
<tr>
<td><b>Errors:</b></td>
<td>πŸ’₯ Errors:</td>
<td>
${output.errorCount === 0
? "βœ…&nbsp; No test failed"
Expand All @@ -104,19 +104,19 @@ ${output.errorCount === 0
</td>
</tr>
<tr>
<td><b>Visual changes:</b></td>
<td>✨ Visual changes:</td>
<td>
${output.changeCount === 0
? "βœ…&nbsp; None"
: `⚠️&nbsp; Found ${output.changeCount} visual ${output.changeCount === 1 ? "change" : "changes"}`
: `❌&nbsp; Found ${output.changeCount} visual ${output.changeCount === 1 ? "change" : "changes"}`
}
</tr>
<tr>
<td><b>Build URL:</b></td>
<td>πŸ” Build URL:</td>
<td><a href="${output.buildUrl}" target="_blank">${output.buildUrl}</a></td>
</tr>
<tr>
<td><b>Storybook URL:</b></td>
<td>🎨 Storybook URL:</td>
<td><a href="${output.storybookUrl}" target="_blank">${output.storybookUrl}</a></td>
</tr>
</tbody>
Expand Down

0 comments on commit 2809fa1

Please sign in to comment.