diff --git a/.github/updateLeaderboard.js b/.github/updateLeaderboard.js index 7c88e94..7d7f3e1 100644 --- a/.github/updateLeaderboard.js +++ b/.github/updateLeaderboard.js @@ -30,9 +30,9 @@ module.exports = async ({ github, context }) => { const issue = result.repository.issue; - const nameMatch = /👤 Name:\s*(.*?)\n-/.exec(issue.bodyText); - const githubLinkMatch = /🔗 GitHub Profile Link:\s*(.*?)\n-/.exec(issue.bodyText); - const messageMatch = /💬 Message:\s*(.*?)\n-/.exec(issue.bodyText); + const nameMatch = /👤 Name:(.*?)\n-/.exec(issue.bodyText); + const githubLinkMatch = /🔗 GitHub Profile Link:(.*?)\n-/.exec(issue.bodyText); + const messageMatch = /💬 Message:(.*?)\n-/.exec(issue.bodyText); const scoreMatch = /Score:\s*(\d+)/.exec(issue.title); const dateMatch = /Game Result Submission:\s*(.*?) - Score:/.exec(issue.title); const modeMatch = /Mode:\s*(\d+)/.exec(issue.title); diff --git a/.github/workflows/update_leaderboard.yml b/.github/workflows/update_leaderboard.yml index aa8e865..e4e67de 100644 --- a/.github/workflows/update_leaderboard.yml +++ b/.github/workflows/update_leaderboard.yml @@ -39,4 +39,5 @@ jobs: uses: peter-evans/close-issue@v3 with: issue-number: ${{ github.event.issue.number }} - comment: Auto-closing issue ${{ github.event.issue.number }} + comment: Have fun playing! 🎉 - Your score has been added to the Leaderboard, and the issue has been automatically closed! ✅ +