From b8e068751cec1c662ba197b940e19b79c5f3230a Mon Sep 17 00:00:00 2001 From: Nikolay Vitkov Date: Thu, 2 Oct 2025 14:54:11 +0200 Subject: [PATCH] ci: require conventional commit title --- .github/workflows/convetional-commit.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/convetional-commit.yml diff --git a/.github/workflows/convetional-commit.yml b/.github/workflows/convetional-commit.yml new file mode 100644 index 000000000..9f27f5047 --- /dev/null +++ b/.github/workflows/convetional-commit.yml @@ -0,0 +1,24 @@ +name: 'Conventional Commit' + +on: + pull_request_target: + types: + # Defaults + # https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target + - opened + - reopened + - synchronize + # Tracks editing PR title or description, or base branch changes + # https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=edited#pull_request + - edited + +jobs: + main: + name: '[Required] Validate PR title' + runs-on: ubuntu-latest + permissions: + pull-requests: read + steps: + - uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}