Central reusable workflows for the Interstellio GitHub organisation.
Sends Slack notifications for pull request lifecycle events.
Events covered:
- PR opened
- PR merged (with pull reminder)
- PR closed without merge
- Review requested (user and team)
- Review approved
- Changes requested
- PR ready for review
Add this file to your repo at .github/workflows/pr-notifications.yml:
name: PR Status Notifications
on:
pull_request:
types: [opened, closed, review_requested, ready_for_review]
pull_request_review:
types: [submitted]
jobs:
notify:
uses: interstellio/.github/.github/workflows/pr-notifications.yml@main
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}Alerts when someone pushes directly to main without a pull request.
Events covered:
- Direct push to
main
Add this file to your repo at .github/workflows/direct-push-notifications.yml:
name: Direct Push Notifications
on:
push:
branches: [main]
jobs:
notify:
uses: interstellio/.github/.github/workflows/direct-push-notifications.yml@main
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}Each consuming repo must have a SLACK_WEBHOOK_URL repository or organisation secret configured.