From e4035c6da6f4f12bebf2e2f64c74412234c15a8a Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sun, 28 Apr 2024 13:30:47 +1000 Subject: [PATCH] add GitHub templates for PRs and releases This commit adds: 1. a release template for GitHub releases. 2. a pull request template to help contributors and maintainers to understand and merge PRs faster, and label them correctly. When using GitHub automated release notes, PRs will be split into sections based on the following labels: - `breaking-change` or `config-change` - `dependencies` - `enhancement` - `fix` or `bug` - `plumbing`, `tests` or `deployment` - all other PRs Any labels not currently in use will be added once the PR for this commit is finalised and merged. --- .github/pull_request_template.md | 78 ++++++++++++++++++++++++++++++++ .github/release.yml | 26 +++++++++++ 2 files changed, 104 insertions(+) create mode 100644 .github/pull_request_template.md create mode 100644 .github/release.yml diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 000000000..99c92478d --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,78 @@ + + +## Are you finished? + +### Linters + + +- [ ] I have checked my code with `black`, `pylint`, and `mypy`, or `./bw-dev formatters` + +### Tests + + +- [ ] My changes do not need new tests +- [ ] All tests I have added are passing +- [ ] I have written tests but need help to make them pass +- [ ] I have not written tests and need help to write them + +## What type of Pull Request is this? + + +- [ ] Bug Fix +- [ ] Enhancement +- [ ] Plumbing / Internals / Dependencies +- [ ] Refactor + +## Does this PR change settings or dependencies, or break something? + + +- [ ] This PR changes or adds default settings, configuration, or .env values +- [ ] This PR changes or adds dependencies +- [ ] This PR introduces other breaking changes + +### Details of breaking or configuration changes (if any of above checked) + +## Description + + + +- Related Issue # +- Closes # + +## Documentation + + + + +- [ ] New or amended documentation will be required if this PR is merged +- [ ] I have created a matching pull request in the Documentation repository +- [ ] I intend to create a matching pull request in the Documentation repository after this PR is merged + diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 000000000..3a347bf51 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,26 @@ +changelog: + exclude: + labels: + - ignore-for-release + categories: + - title: ‼️ Breaking Changes & New Settings ⚙️ + labels: + - breaking-change + - config-change + - title: Updated Dependencies 🧸 + labels: + - dependencies + - title: New Features 🎉 + labels: + - enhancement + - title: Bug Fixes 🐛 + labels: + - fix + - bug + - title: Internals/Plumbing 👩‍🔧 + - plumbing + - tests + - deployment + - title: Other Changes + labels: + - "*"