Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: pr-title

# Conventional Commits PR-title gate. Consumes the shared semantic-pr reusable
# workflow from ci-workflows. Repos are squash-only with the squash title set to
# PR_TITLE, so the PR title becomes the default-branch subject — this gates the
# Conventional-Commits history. `edited` re-validates on a re-title. The emitted
# required-check context is `pr-title / pr-title`.
on:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Run the title gate from the base workflow

For PRs that touch .github/workflows/pr-title.yml, this pull_request trigger evaluates the workflow in the PR merge/head context, whereas GitHub documents pull_request_target as running from the default-branch workflow instead. Because this check is meant to become a required governance gate, a PR can keep the pr-title / pr-title check name but change the workflow body to a passing no-op and merge a non-Conventional title; this job only reads PR metadata and does not checkout or run PR code, so it should use pull_request_target for this title-only validation.

Useful? React with 👍 / 👎.

pull_request:
types: [opened, edited, reopened, synchronize]

permissions:
pull-requests: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pr-title:
permissions:
pull-requests: read
uses: melodic-software/ci-workflows/.github/workflows/semantic-pr.yml@f82733b00c623254e2d2d2407aca205ae58fb7e4