Skip to content

Commit

Permalink
CI(Titles): Validate PR titles in CI (#3877)
Browse files Browse the repository at this point in the history
* CI(title): Create a validation of PR titles workflow on pull_request_target

* CI(title): Add extra required dummy arguments
  • Loading branch information
echoix authored Jun 17, 2024
1 parent 6e7787b commit a2d9ad8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/titles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Validate Titles

on:
pull_request_target:
types:
- edited
# The following types are default for pull_request_target
- opened
- synchronize
- reopened

permissions: {}

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 }}

0 comments on commit a2d9ad8

Please sign in to comment.