style: Fixes useless-exception-statement (PLW0133) #419
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: Validate Titles | |
on: | |
pull_request_target: | |
types: | |
- edited | |
# The following types are default for pull_request_target | |
- opened | |
- synchronize | |
- reopened | |
permissions: {} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
validate-titles: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout base repository (doesn't include the PR changes) | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Call PR title validation function | |
run: python utils/generate_release_notes.py check "${PR_TITLE}" "" "" | |
env: | |
PR_TITLE: ${{ github.event.pull_request.title }} |