From e1c75674d04acd4823706de8566f675488288587 Mon Sep 17 00:00:00 2001 From: pseudometa <73286100+chrisgrieser@users.noreply.github.com> Date: Fri, 13 Oct 2023 12:48:39 +0200 Subject: [PATCH] ci: ensure PRs use conventional commits-like titles --- .github/workflows/semantic-pr-title.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/semantic-pr-title.yml diff --git a/.github/workflows/semantic-pr-title.yml b/.github/workflows/semantic-pr-title.yml new file mode 100644 index 0000000..8dfbfb0 --- /dev/null +++ b/.github/workflows/semantic-pr-title.yml @@ -0,0 +1,17 @@ +name: Ensure Conventional Commits-like PR titles + +on: + pull_request_target: + types: [opened, edited, synchronize] + +permissions: + pull-requests: read + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}