From 1621d0c7beec7e031a079a18986d04e97d5443ae Mon Sep 17 00:00:00 2001 From: Jean Regisser Date: Tue, 3 Jan 2023 14:46:38 +0100 Subject: [PATCH] chore: enforce semantic PR title (#3313) ### Description We decided to use semantic PR title as it can help with automated releases and changelog generation. Already used in https://github.com/valora-inc/logging/pull/7 and https://github.com/valora-inc/typescript-app-starter/pull/51 ### Test plan N/A ### Related issues Discussed on [Slack](https://valora-app.slack.com/archives/C025V1D6F3J/p1669991436336709). ### Backwards compatibility N/A --- .github/workflows/semantic-pr.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/semantic-pr.yml diff --git a/.github/workflows/semantic-pr.yml b/.github/workflows/semantic-pr.yml new file mode 100644 index 00000000000..320ecc5d94b --- /dev/null +++ b/.github/workflows/semantic-pr.yml @@ -0,0 +1,18 @@ +name: Semantic PR title + +on: + pull_request_target: + types: + - opened + - reopened + - edited + - synchronize + +jobs: + semantic-pr-title: + name: Semantic PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}