From 7904b05cbc3da04e21085b27e4bad6a9ac8eb226 Mon Sep 17 00:00:00 2001 From: Peter Makowski Date: Wed, 4 Oct 2023 17:31:00 +0200 Subject: [PATCH] ci: add validate pr title --- .../workflows/{labeler.yaml => pr-labeler.yaml} | 0 .github/workflows/pr-lint.yml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) rename .github/workflows/{labeler.yaml => pr-labeler.yaml} (100%) create mode 100644 .github/workflows/pr-lint.yml diff --git a/.github/workflows/labeler.yaml b/.github/workflows/pr-labeler.yaml similarity index 100% rename from .github/workflows/labeler.yaml rename to .github/workflows/pr-labeler.yaml diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml new file mode 100644 index 0000000000..d33ccb0cb3 --- /dev/null +++ b/.github/workflows/pr-lint.yml @@ -0,0 +1,17 @@ +name: "Lint PR" + +on: + pull_request: + types: [opened, edited, synchronize, reopened] + +permissions: + pull-requests: read + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-22.04 + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}