-
Notifications
You must be signed in to change notification settings - Fork 90
build: Add github action for PR title validation VSCODE-642 #859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| 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: | ||
| - name: Enforce conventional commit style | ||
| uses: realm/ci-actions/title-checker@main | ||
| with: | ||
| regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|ops){1}(\([\w\-\.]+\))?(!)?: .*' | ||
| error-hint: 'Invalid PR title. Make sure it follows the conventional commit specification (i.e. "<type>(<optional scope>): <description>") or add the no-title-validation label' | ||
| ignore-labels: 'no-jira-ticket' | ||
| - name: Enforce JIRA ticket in title | ||
| uses: realm/ci-actions/title-checker@main | ||
| with: | ||
| regex: 'VSCODE-[0-9]{1,5}$' | ||
|
||
| error-hint: 'Invalid PR title. Make sure it ends with a JIRA ticket - i.e. VSCODE-1234 or add the no-title-validation label' | ||
| ignore-labels: 'no-title-validation' | ||
Uh oh!
There was an error while loading. Please reload this page.