Skip to content

feat: outputting in GitHub Actions error format #1491

feat: outputting in GitHub Actions error format

feat: outputting in GitHub Actions error format #1491

name: Conventional Commits
on:
pull_request:
types: [opened, edited, synchronize, reopened]
permissions:
contents: read
jobs:
linting:
name: Linting
runs-on: ubuntu-24.04
container:
image: ghcr.io/developerc286/conventional_commits_linter:0.17.1@sha256:f1b947937ee884ba7f886d04939cd4858f9aeafb50dcf94925a516c50e43021b
steps:
- name: Checkout code.
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Check Conventional Commits linting.
env:
PR_TITLE: ${{ github.event.pull_request.title }}
PR_BODY: ${{ github.event.pull_request.body }}
run: printf '%s\n\n%s' "$PR_TITLE" "$PR_BODY" | conventional_commits_linter -