Or, you can create a new file titled action.yml inside the .github/workflows directory of your repository and copy the code below.
on:issues:types:[opened,edited,labeled]issue_comment:types:[created,edited]pull_request:types:[opened,edited]pull_request_review_comment:types:[created,edited]jobs:build:runs-on:ubuntu-latestname:The Good Placesteps:-name:The Good Place Actionuses:jayehernandez/the-good-place@v1.1with:repo-token:${{ secrets.GITHUB_TOKEN }}
v1.1 introduces a fix for the Scunthorpe problem as flagged in this comment!
Additional Resources / Info
The action was created using JavaScript and the Octokit API. The documentation provided for Octokit was easy to understand for beginners like me. GIFs used were from GIPHY.
Huge thank you as well to the JavaScript Actions course of the GitHub Training Team which taught me the basic concepts I needed to learn. I highly suggest that you check that out if you'd like to create your own.
Are you a fan of The Good Place? Let me know what you think about this action!