GitHub integration enables Castrel to receive deployment events and correlate failures with code changes.
This repo now includes a GitHub Actions workflow at .github/workflows/pr-merge-automation.yml. When a pull request is merged, GitHub sends a github.pull_request.merged event to your automation ingress.
Setup:
CASTREL_PR_MERGE_WEBHOOK_URL and point it to your automation ingress.CASTREL_PR_MERGE_WEBHOOK_BEARER_TOKEN.github.pull_request.merged.The workflow does not check out PR code. It only forwards the GitHub event payload, which keeps the repository-side automation generic and avoids hard-coding business actions into this repo.
Grant read access to repository metadata, commits, and deployment events. Avoid write permissions unless your workflow explicitly requires them.