Skip to content

Commit 2b90b5c

Browse files
authored
chore: configure dependabot to add a conventional commit prefix (#537)
### Summary Every time dependabot makes a PR it fails the PR title test. I'm hoping this will fix it. I'm not sure it will take effect for the existing PRs, so we might need to wait for the next to confirm it's working. I also added configs to skip the title check for draft PRs just to show a bit less red in the PR list.
1 parent 677bb13 commit 2b90b5c

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/depentabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
commit-message:
8+
# see .releaserc.json in the repo root for how these prefixes map to version bumps
9+
prefix: "fix"
10+
prefix-development: "chore"
11+
# includes the scope in the prefix, like this:
12+
# fix(deps):
13+
# chore(deps-dev):
14+
include: "scope"

.github/workflows/pr-title-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ on:
1010
- edited
1111
- synchronize
1212
- reopened
13+
- ready_for_review
1314

1415
jobs:
1516
check-pr-title:
1617
runs-on: ubuntu-latest
18+
if: github.event.pull_request.draft == false
1719
steps:
1820
- name: Check PR title
1921
uses: amannn/action-semantic-pull-request@v5

0 commit comments

Comments
 (0)