Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
23 lines
659 B
YAML
23 lines
659 B
YAML
name: Validate PR title
|
|
|
|
on:
|
|
pull_request:
|
|
types: [labeled, unlabeled, opened, edited]
|
|
|
|
jobs:
|
|
validate-tags-match-title:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
with:
|
|
node-version-file: ".nvmrc"
|
|
|
|
- name: Check if labels match PR title
|
|
env:
|
|
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
PR_LABELS: ${{ join(github.event.pull_request.labels.*.name, ',') }}
|
|
run: node .github/scripts/validate-pr-title.ts
|