From 3d74f17ab877628906fce76719b0f581046f869f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blar?= Date: Sun, 23 Jun 2024 20:25:40 +0200 Subject: [PATCH] add semantic pull request job --- .github/workflows/semantic-pull-request.yaml | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/semantic-pull-request.yaml diff --git a/.github/workflows/semantic-pull-request.yaml b/.github/workflows/semantic-pull-request.yaml new file mode 100644 index 00000000..89f6c8fa --- /dev/null +++ b/.github/workflows/semantic-pull-request.yaml @@ -0,0 +1,37 @@ +name: Semantic Pull Request + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +permissions: {} + +jobs: + main: + permissions: + pull-requests: read + statuses: write + + runs-on: ubuntu-latest + timeout-minutes: 10 + name: Semantic Pull Request + steps: + - name: Validate PR title + uses: amannn/action-semantic-pull-request@cfb60706e18bc85e8aec535e3c577abe8f70378e # v5.5.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + feat + fix + chore + refactor + docs + test + ci + build + infra + revert