From 6259269105e7c28e5a44f9f0eb7db1741e46213f Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 1 Jul 2024 18:33:49 -0300 Subject: [PATCH] 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 --- .github/dependabot.yml | 6 +++--- .github/semantic.yml | 1 + .github/workflows/pr-checker.yml | 26 -------------------------- 3 files changed, 4 insertions(+), 29 deletions(-) create mode 100644 .github/semantic.yml delete mode 100644 .github/workflows/pr-checker.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 153590eae..ecf2b5aac 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,10 +2,10 @@ version: 2 updates: - - package-ecosystem: "github-actions" directory: "/" schedule: - # Check for updates to GitHub Actions every week interval: "monthly" - + commit-message: + prefix: "build(deps):" + include: scope diff --git a/.github/semantic.yml b/.github/semantic.yml new file mode 100644 index 000000000..fd160e519 --- /dev/null +++ b/.github/semantic.yml @@ -0,0 +1 @@ +titleOnly: true diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml deleted file mode 100644 index 3705715fe..000000000 --- a/.github/workflows/pr-checker.yml +++ /dev/null @@ -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.