ci: enforce stricter PR title checking (#4301)

*  Enforce stricter PR title checking

* 🔥 Remove code fence
This commit is contained in:
Iván Ovejero 2022-10-12 10:53:12 +02:00 committed by GitHub
parent a6cd95b9f3
commit 6d62471a11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
name: Test Pull Request Semantics
name: Check PR title
on:
pull_request:
@ -10,23 +10,30 @@ on:
jobs:
check-pr-title:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: read
contents: read
timeout-minutes: 5
steps:
- uses: amannn/action-semantic-pull-request@v4
- name: Validate PR title
id: validate_pr_title
uses: ivov/validate-n8n-pull-request-title@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Post validation issue comment
uses: marocchino/sticky-pull-request-comment@v2
if: always()
with:
# https://www.notion.so/n8n/Release-Process-fce65faea3d5403a85210f7e7a60d0f8
types: |
feat
fix
perf
test
docs
refactor
build
ci
requireScope: false
header: pr_title_failed_validation
message: |
Thank you for your contribution!
PR titles in this repo follow our version of the Conventional Commits spec.
This allows us to automatically generate the changelog for the next release.
Therefore, we ask you to adjust your PR title to solve the issue(s) below:
${{ steps.validate_pr_title.outputs.validation_issues }}
- name: Remove validation issue comment
if: ${{ steps.validate_pr_title.outputs.validation_issues == null }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr_title_failed_validation
delete: true