Skip to content

Commit

Permalink
Fix cocotte
Browse files Browse the repository at this point in the history
  • Loading branch information
Riron committed Nov 18, 2024
1 parent c4d9915 commit b3802f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/gh-pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ async function getBody(github, context) {
const awaitingApprovers = await getRequestedReviewers(github, context, pr);

const line = [
"", // The line must start with | to be a valid markdown table
pr.title,
`[#${pr.number}](${pr.html_url})`,
`@${pr.user.login}`,
awaitingApprovers.map(login => `@${login}`).join(", "),
`${nbApprovals >= 2 ? "🐥" : nbApprovals === 1 ? "🐣" : "🥚"}`
`${nbApprovals >= 2 ? "🐥" : nbApprovals === 1 ? "🐣" : "🥚"}`,
""
].map(v => (v ? v.replaceAll("|", "\\|") : v));

lines.push(line.join("|"));
Expand Down

0 comments on commit b3802f6

Please sign in to comment.