Bump undici from 5.28.2 to 5.28.4 in /web-pst #2215
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 Check | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
jobs: | |
pr-title-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Check PR title | |
uses: actions/github-script@v5 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
const pattern = /^PE-\d+: .*/; | |
const pr = context.payload.pull_request; | |
if (!pattern.test(pr.title)) { | |
github.rest.issues.createComment({ | |
issue_number: pr.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: ':warning: Your PR title does not match the required pattern. Please update the title in the format `PE-{number}: {description}`.' | |
}); | |
} |