Skip to content

BIGTOP-4224: Add pr title checker on workflows #2

BIGTOP-4224: Add pr title checker on workflows

BIGTOP-4224: Add pr title checker on workflows #2

Workflow file for this run

name: "Pull Request"
on:
pull_request:
types: [opened, edited, reopened, synchronize]
jobs:
check-pr-title:
name: "Check PR Title"
runs-on: ubuntu-latest
steps:
- name: Check PR title starts with "BIGTOP-"
uses: actions/github-script@v7
with:
script: |
const prTitle = context.payload.pull_request.title;
if (!prTitle.startsWith("BIGTOP-")) {
core.setFailed(`PR title does not start with "BIGTOP-": ${prTitle}`);
}