-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DX: enforce new commit types and PR labels (#323)
* MAINT: update pip constraints and pre-commit config * MAINT: use correct commit type in autoupdate PRs Co-authored-by: GitHub <noreply@github.com>
- Loading branch information
Showing
11 changed files
with
49 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,6 +135,7 @@ | |
"linkcheck", | ||
"linspace", | ||
"macos", | ||
"MAINT", | ||
"marangotto", | ||
"markdownlint", | ||
"mathcal", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,43 @@ | ||
name-template: AmpForm $NEXT_PATCH_VERSION | ||
name-template: Repo Maintenance $NEXT_PATCH_VERSION | ||
tag-template: $NEXT_PATCH_VERSION | ||
|
||
references: | ||
- main | ||
- epic/* | ||
|
||
categories: | ||
- title: 💡 New features | ||
- title: ✨ New features | ||
label: 💡 Feature | ||
- title: ⚠️ Interface | ||
labels: | ||
- ⚠️ Interface | ||
- 📖 Physics | ||
- title: ⚠️ Enhancements and optimizations | ||
label: ⚙️ Enhancement | ||
- title: ⚠️ API changes | ||
label: ⚠️ Interface | ||
- title: ⚠️ Changes that may affect behavior | ||
label: ❗ Behavior | ||
- title: 🐛 Bug fixes | ||
label: Bug | ||
- title: 🔨 Internal maintenance | ||
label: 🔨 Maintenance | ||
label: 🐛 Bug | ||
- title: 📝 Documentation | ||
label: 📝 Docs | ||
- title: 🔨 Maintenance | ||
label: 🔨 Maintenance | ||
- title: 🖱️ Developer Experience | ||
label: 🖱️ DX | ||
|
||
change-template: "- $TITLE (#$NUMBER)" | ||
change-template: | | ||
<details> | ||
<summary>$TITLE (#$NUMBER)</summary> | ||
$BODY | ||
</details> | ||
replacers: | ||
- search: /([a-z]+!?:\s*)(.*)/g | ||
replace: $2 | ||
- search: /<summary>([a-z]+!?:\s*)(.*)</summary>/g | ||
replace: <summary>$2</summary> | ||
|
||
sort-direction: ascending | ||
|
||
template: | | ||
_See all documentation for this version [here](https://ampform.rtfd.io/en/$NEXT_PATCH_VERSION)._ | ||
# Release $NEXT_PATCH_VERSION | ||
$CHANGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
module.exports = { | ||
extends: ["@commitlint/config-conventional"], | ||
rules: { | ||
"type-case": [2, "always", ["upper-case"]], | ||
"type-enum": [ | ||
2, | ||
"always", | ||
[ | ||
"adr", | ||
"build", | ||
"chore", | ||
"ci", | ||
"docs", | ||
"epic", | ||
"feat", | ||
"fix", | ||
"phys", | ||
"refactor", | ||
"style", | ||
"test", | ||
], | ||
["BEHAVIOR", "BREAK", "DOC", "DX", "ENH", "FEAT", "FIX", "MAINT"], | ||
], | ||
}, | ||
}; |