feat: add PDEV team prefix to linear ref validation#34
Conversation
Adds PDEV to the list of recognised Linear ticket prefixes so that commits and branches using the PDEV-* format pass the pre-commit hook. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
| @@ -34,7 +34,8 @@ | |||
| teams: list[str] = [ | |||
| "T", | |||
There was a problem hiding this comment.
lets just relax the rule to allow any 1 to 4 letter prefix?
There was a problem hiding this comment.
think we can remove the teams block right?
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the commit message validation system by integrating support for the 'PDEV' team prefix in Linear ticket references. The changes involve updating the core configuration to recognize 'PDEV' and adjusting the regular expression logic to be more flexible with prefix lengths, ensuring that commits adhering to the 'PDEV-*' format are correctly validated by the pre-commit hook. Comprehensive test cases have been added to confirm the proper functioning of these updates. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds support for the PDEV team prefix in Linear ticket references for commit messages. The change correctly adds PDEV to the list of recognized teams and includes comprehensive test cases to validate the new prefix across different regex patterns. I have one suggestion to improve maintainability.
| "T", | ||
| "L2", | ||
| "DAE" | ||
| "DAE", | ||
| "PDEV" |
Summary
PDEVto theteamslist incommon.pyso thatPDEV-*Linear ticket references pass the pre-commit hook validationPDEVis 4 characters and was not matched by the existing[A-Z]{3}fallback, requiring an explicit entryPDEV-1234test cases totest_linear_ref,test_valid_commit_regex,test_commit_msg_issue_regex, andtest_issue_regexTest plan
PDEV-*prefix are now accepted by the hook🤖 Generated with Claude Code