Skip to content

Commit

Permalink
ci: add pr title check workflow to ensure conventional commits (#2694)
Browse files Browse the repository at this point in the history
* ci: add pr title check workflow to ensure conventional commits

Signed-off-by: PavelSBorisov <[email protected]>

* ci: rename pr check workflow and job titles

Signed-off-by: PavelSBorisov <[email protected]>

---------

Signed-off-by: PavelSBorisov <[email protected]>
Co-authored-by: ivaylonikolov7 <[email protected]>
Co-authored-by: ivaylogarnev <[email protected]>
  • Loading branch information
3 people authored Dec 9, 2024
1 parent 56075ea commit 9baa374
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/pr_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 'PR Formatting'
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- edited
- synchronize

defaults:
run:
shell: bash

permissions:
contents: read

concurrency:
group: pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
title-check:
name: Title Check
runs-on: client-sdk-linux-medium
if: ${{ !github.event.pull_request.base.repo.fork }}
permissions:
statuses: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit

- name: Check PR Title
uses: step-security/conventional-pr-title-action@19fb561b33015fd2184055a05ce5a3bcf2ba3f54 # v3.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9baa374

Please sign in to comment.