ci: add lint commit workflow for pull requests (#2463)
* chore: Add lint commit workflow for pull requests * chore: Update commit message prefix and include scope for dependabot.yml * ci: remove pr-checker * chore: Update commitlint-github-action to version 5 * chore: Remove lint-commit workflow and add semantic.yml configuration
This commit is contained in:
parent
f70106aaec
commit
6259269105
3 changed files with 4 additions and 29 deletions
6
.github/dependabot.yml
vendored
6
.github/dependabot.yml
vendored
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
|
|
||||||
- package-ecosystem: "github-actions"
|
- package-ecosystem: "github-actions"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
# Check for updates to GitHub Actions every week
|
|
||||||
interval: "monthly"
|
interval: "monthly"
|
||||||
|
commit-message:
|
||||||
|
prefix: "build(deps):"
|
||||||
|
include: scope
|
||||||
|
|
|
||||||
1
.github/semantic.yml
vendored
Normal file
1
.github/semantic.yml
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
titleOnly: true
|
||||||
26
.github/workflows/pr-checker.yml
vendored
26
.github/workflows/pr-checker.yml
vendored
|
|
@ -1,26 +0,0 @@
|
||||||
name: PR checker
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types: [opened, edited, labeled, unlabeled, synchronize]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
pr-checker:
|
|
||||||
name: Check PR description
|
|
||||||
runs-on: [ubuntu-latest]
|
|
||||||
steps:
|
|
||||||
- name: Run PR title check
|
|
||||||
uses: transferwise/actions-pr-checker@v3
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
PR_TITLE_CONTAINS_PATTERN: ".{15,}" # Require at least 10 characters in the title
|
|
||||||
PR_COMMENT: |
|
|
||||||
Please provide a more meaningful PR title with at least 15 characters.
|
|
||||||
|
|
||||||
- name: Run PR description check
|
|
||||||
uses: transferwise/actions-pr-checker@v3
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
PR_CONTAINS_PATTERN: ".{25,}" # Require at least 10 characters in the description
|
|
||||||
PR_COMMENT: |
|
|
||||||
Please provide a more meaningful PR description with at least 25 characters.
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue