From 09bff9e0c5e402211426ee2667b17556e210483d Mon Sep 17 00:00:00 2001 From: Yashasvi Nancherla Date: Tue, 9 Dec 2025 15:34:14 +0530 Subject: [PATCH] Create commit-check.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the commit-msg-check GitHub Action Checks commit messages added in pull requests Valid for any PRs raised on this repository Enforces these checks: Commit Subject: Must exist and be ≤ 50 characters Commit Body: Each line must wrap at 72 characters Blank Line Check: Ensures a blank line between subject and body Also checks for blank line before Signed-off-by Signed-off-by: Yashasvi Nancherla --- .github/workflows/commit-check.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/commit-check.yml diff --git a/.github/workflows/commit-check.yml b/.github/workflows/commit-check.yml new file mode 100644 index 0000000..8a0898f --- /dev/null +++ b/.github/workflows/commit-check.yml @@ -0,0 +1,19 @@ +name: Commit Msg Check Action + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + check-commits: + runs-on: ubuntu-latest + + steps: + - name: Run custom commit check + uses: qualcomm/commit-msg-check-action@v1.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + body-char-limit: 72 + sub-char-limit: 50 + check-blank-line: true