Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Enforce conventional commit PR title #3083

Merged
merged 10 commits into from
Nov 23, 2022
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 @@ -23,6 +23,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: |
thomaseizinger marked this conversation as resolved.
Show resolved Hide resolved
{% 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: []