[docs] Change Twitter to X #987 #663
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pr_title | |
on: | |
pull_request: | |
branches: ["main"] | |
types: | |
- edited | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
title_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/github-script@v6 | |
with: | |
script: | | |
const regex = RegExp("^\\[(api|ci|db|docs|server|studio|tests|web)\\] .+ #[\\d]+$") | |
const title = context.payload.pull_request.title | |
if (!regex.test(title)) { | |
core.setFailed(`PR title "${title}" failed to pass regex - ${regex}. Correct example: [ci] description #1`); | |
} |