Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/trivia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
const questions = data.results.map((q, i) => {
const choices = [...q.incorrect_answers, q.correct_answer]
.sort(() => Math.random() - 0.5)
.map((a, idx) => `> ${String.fromCharCode(65 + idx)}. ${decodeHtml(a)}`)
.map((a, idx) => `${String.fromCharCode(65 + idx)}. ${decodeHtml(a)}`)
.join("\n");
return `### 🧩 Q${i + 1}: ${decodeHtml(q.question)}\n${choices}\n\n`;
}).join("\n---\n\n");

const committer = context.payload.sender.login;
const quote = "You got this! Remember, every bug is just a feature in disguise.";

const header = "**⸜(。˃ ᵕ ˂ )⸝♡ Thank you for opening this Pull Request, @${committer}!**\n\n> ${quote}\n\n**( ˶°ㅁ°) !! It's Trivia Time!** \nHere are 3 trivia questions to keep you entertained while CI runs.\n*(Feel free to demonstrate you knowledge and reply!)*\n\n";
const header = `**⸜(。˃ ᵕ ˂ )⸝♡ Thank you for opening this Pull Request, @${committer}!**\n\n> ${quote}\n\n**( ˶°ㅁ°) !! It's Trivia Time!** \nHere are 3 trivia questions to keep you entertained while CI runs.\n*(Feel free to demonstrate you knowledge and reply!)*\n\n`;
const body = header + questions;

await github.rest.issues.createComment({
Expand Down