Skip to content

Commit

Permalink
Add an action to check the PR title (#3543)
Browse files Browse the repository at this point in the history
* Manually sync check-pr-title workflow

* Target @main

* Rename workflow
  • Loading branch information
nirinchev authored Mar 7, 2024
1 parent 5d81e87 commit 311b797
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/check-pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
# and should only be modified in that repository.

name: "Check PR Title"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled, converted_to_draft, edited]

jobs:
check-pr-title:
name: Check PR Title
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: false
- name: Enforce PR title
uses: realm/ci-actions/title-checker@main
with:
regex: R[A-Z]{2,5}-[0-9]{1,6}
error-hint: Invalid PR title. Make sure it's prefixed with the JIRA ticket the PR addresses or add the no-jira-ticket label.
ignore-labels: 'no-jira-ticket'

0 comments on commit 311b797

Please sign in to comment.