mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-26 20:02:26 -08:00
ci: enforce stricter PR title checking (#4301)
* ⚡ Enforce stricter PR title checking * 🔥 Remove code fence
This commit is contained in:
parent
a6cd95b9f3
commit
6d62471a11
41
.github/workflows/check-pr-title.yml
vendored
41
.github/workflows/check-pr-title.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Test Pull Request Semantics
|
name: Check PR title
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -10,23 +10,30 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
check-pr-title:
|
check-pr-title:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
timeout-minutes: 5
|
||||||
checks: write
|
|
||||||
pull-requests: read
|
|
||||||
contents: read
|
|
||||||
steps:
|
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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Post validation issue comment
|
||||||
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
|
if: always()
|
||||||
with:
|
with:
|
||||||
# https://www.notion.so/n8n/Release-Process-fce65faea3d5403a85210f7e7a60d0f8
|
header: pr_title_failed_validation
|
||||||
types: |
|
message: |
|
||||||
feat
|
Thank you for your contribution!
|
||||||
fix
|
PR titles in this repo follow our version of the Conventional Commits spec.
|
||||||
perf
|
This allows us to automatically generate the changelog for the next release.
|
||||||
test
|
Therefore, we ask you to adjust your PR title to solve the issue(s) below:
|
||||||
docs
|
|
||||||
refactor
|
${{ steps.validate_pr_title.outputs.validation_issues }}
|
||||||
build
|
|
||||||
ci
|
- name: Remove validation issue comment
|
||||||
requireScope: false
|
if: ${{ steps.validate_pr_title.outputs.validation_issues == null }}
|
||||||
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
|
with:
|
||||||
|
header: pr_title_failed_validation
|
||||||
|
delete: true
|
||||||
|
|
Loading…
Reference in a new issue