substrate
substrate copied to clipboard
Enforce PR merge standards via repo config + GitHub Issues
Currently we manually check that the following things are done before merging a PR:
- Ensure there is a review and approval.
- Use a squash commit.
- Match the PR title and the squash commit message.
- Follow the Conventional Commits standard for the squash commit message (and include the PR number at the end).
- Delete the PR branch afterward.
Ideally this is automated instead of done manually.
After investigation, it seems that:
- (1), (2), and (5) could in theory be automated with GitHub Repository Settings, but it's probably better not to do this for a number of reasons (cf. #312 for details).
- (3) and (4) can be automated with a GitHub Actions Workflow (and implemented in #312).
Unless you see alternatives for (1), (2), and (5), I would propose that we close this issue after #312.