Problem
None of the actions offered by the Github Actions Marketplace exactly matches our needs.
Solution
Write our own reusable Github Actions workflow and deploy it across all the Request Network repositories.
Definition of Done
Add the following file to all public Request Network repositories:
.github/workflows/pr-comments.yml
name: PR Comments
on:
pull_request_target:
types: [opened, ready_for_review, closed]
jobs:
pr-comments:
uses: RequestNetwork/auto-comments/.github/workflows/pr-auto-comments.yml@main
with:
org_name: "RequestNetwork"
# No comment content provided - will use defaults
secrets:
token: ${{ secrets.GH_PAT_AUTO_COMMENTS }}