Skip to content

fix: harden picklescan stdlib callable detection #5016

fix: harden picklescan stdlib callable detection

fix: harden picklescan stdlib callable detection #5016

name: Validate PR Title
on:
pull_request:
types: [opened, edited, synchronize]
# Only validate when PR title might have changed
paths-ignore:
- "**.md"
- "**.txt"
- "**.rst"
- "LICENSE*"
permissions:
pull-requests: read
jobs:
validate-pr-title:
name: Validate PR Title
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Configure which types are allowed
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
# Ensure the subject doesn't start with uppercase
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
doesn't start with an uppercase character.