From bbed687038a41584dd58eb16cf548b74666c6259 Mon Sep 17 00:00:00 2001 From: asyncapi-bot <61865014+asyncapi-bot@users.noreply.github.com> Date: Fri, 22 Jan 2021 14:27:28 +0100 Subject: [PATCH] ci: update global workflows (#487) ci: update global workflows --- .github/workflows/lint-pr-title.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/lint-pr-title.yml diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml new file mode 100644 index 000000000..34b4499cf --- /dev/null +++ b/.github/workflows/lint-pr-title.yml @@ -0,0 +1,21 @@ +#This action is centrally managed in https://github.com/asyncapi/.github/ +#Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo +name: Lint PR title + +on: + + pull_request_target: + types: [opened, reopened, synchronize, edited, ready_for_review] + +jobs: + + lint: + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v3.2.3 + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + with: + subjectPattern: ^(?![A-Z]).+$ + subjectPatternError: | + The subject "{subject}" found in the pull request title "{title}" should start with a lowercase character.