This is a working example of how you could use the Label Bot.
You want to ensure everyone creates small Pull Requests.
So, you could create a Github workflow that will automatically close too large PRs.
- Install the Label Bot application.
- Create .github/workflows/close-pr.yaml to automatically close Pull Requests.
This example closes XL
Pull Requests, but you could change the conditions or use other labels for your workflow.
Pull Request #5 shows what happens when a PR is labelled with size/XL
.