Skip to content

Commit

Permalink
chore: Enforce conventional commit PR title (#3083)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger authored Nov 23, 2022
1 parent 76dba17 commit 611286b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ updates:
schedule:
interval: "daily"
open-pull-requests-limit: 9999

commit-message:
prefix: "deps"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
commit-message:
prefix: "deps"
18 changes: 18 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,24 @@ pull_request_rules:
actions:
queue:

- name: Conventional Commit PR title
conditions:
- base=master
actions:
post_check:
success_conditions:
- "title~=^(fix|feat|docs|refactor|chore|deps)(\\(.+\\))?!?:"
title: |
{% if check_succeed %}
Title follows Conventional Commit
{% else %}
Title does not follow Conventional Commit
{% endif %}
summary: |
{% if not check_succeed %}
Your pull request title must follow [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/).
{% endif %}
queue_rules:
- name: default
conditions: []

0 comments on commit 611286b

Please sign in to comment.