Skip to content

Latest commit

 

History

History
133 lines (87 loc) · 6.06 KB

semantic-pull-request.md

File metadata and controls

133 lines (87 loc) · 6.06 KB

GitHub Reusable Workflow: Semantic Pull Request

Semantic Pull Request

Release License Stars PRs Welcome GitHub Verified Creator

Overview

Validate pull request titles with the same commitlint policy as the shared linter.

The lint-pull-request-title action runs on Node.js and reads the repository's root commitlint config. It falls back to @commitlint/config-conventional when no rules are configured. Contributor and bot titles use the same repository rules; warnings produce annotations. The action owns its dependencies and installs them from its lockfile with lifecycle scripts disabled. Git-generated messages are not exempt by default; repository ignore settings take precedence. This workflow requires contents: read and checks out the event's revision without persisted credentials. For pull_request_target callers, checkout uses the trusted base revision, never the PR head. See the common commit process for local validation and bot configuration.

Permissions

  • contents: read

Usage

name: Semantic Pull Request
on:
  pull_request:
    types:
      - opened
      - edited
      - synchronize
permissions: {}
jobs:
  semantic-pull-request:
    uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@90211d735aa0289702ddbd7eb95b218020ccadad # 2.0.2
    permissions:
      contents: read
    with:
      # JSON array of runner(s) to use.
      # See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job.
      #
      # Default: `["ubuntu-latest"]`
      runs-on: '["ubuntu-latest"]'

Inputs

Workflow Call Inputs

Input Description Required Type Default
runs-on JSON array of runner(s) to use. false string ["ubuntu-latest"]
See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job.

Contributing

Contributions are welcome! Please see the contributing guidelines for more details.

License

This project is licensed under the MIT License.

SPDX-License-Identifier: MIT

Copyright © 2026 hoverkraft-tech

For more details, see the license.


This documentation was automatically generated by CI Dokumentor.