From 7fc6dfbd8ed4f718a406568a9ec53af0ba4c02ad Mon Sep 17 00:00:00 2001 From: Peter Makowski Date: Thu, 5 Oct 2023 14:56:24 +0200 Subject: [PATCH] ci: add validate pr title (#5188) --- .../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 }}