-
Notifications
You must be signed in to change notification settings - Fork 19
FDN-4209 Update pr-validator workflow #856
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
Conversation
📝 WalkthroughWalkthroughUpdated PR validator workflow to remove label guards, replace Jira pattern validation with stricter title-only format requirements (3+ uppercase letters, hyphen, 3–6 digits, no all-zero trailing numbers), and simplify error handling to emit single descriptive messages. Changes
Sequence Diagram(s)sequenceDiagram
participant GH as GitHub
participant WF as Workflow
participant VAL as Validator
rect rgb(220, 240, 255)
Note over WF: Previous Flow (Removed)
GH->>WF: PR opened/edited
WF->>VAL: Check PR labels
VAL-->>WF: Label validation
WF->>VAL: Check title & description
VAL-->>WF: Pattern match result
WF-->>GH: Success or array of errors
end
rect rgb(240, 255, 240)
Note over WF: New Flow (Simplified)
GH->>WF: PR opened/edited
WF->>VAL: Check PR title only
VAL->>VAL: Match: 3+ uppercase + hyphen + 3-6 digits<br/>(no all-zeros)
alt Pattern matches
VAL-->>WF: Valid
WF-->>GH: ✓ Pass
else Pattern fails
VAL-->>WF: Single error message
WF-->>GH: ✗ Fail with message
end
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (2)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the pr-validator GitHub Actions workflow to enforce stricter JIRA ticket requirements in pull request titles, removing the previous option to include tickets in descriptions instead.
Key changes:
- Removes the scala-steward label exception that previously bypassed validation
- Enforces JIRA ticket format exclusively in PR titles (no longer accepts tickets in descriptions)
- Implements a stricter regex pattern requiring 3+ uppercase letters, 3-6 digit numbers, and rejecting all-zero ticket numbers
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Click here for code coverage report: https://jenkins.flo.pub/job/flowcommerce/job/dependency/job/PR-856/1/scoverage-report/ |
mikeclimbrock
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Resolves FDN-4209
This PR adds the pr-validator workflow to ensure PRs have associated JIRA tickets.
Summary by CodeRabbit