feat: improve title generation for .github and non-conventional commits#101
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the deterministic_title function to improve PR title generation. It falls back to the first commit's subject line instead of a generic placeholder when no conventional commits are present, and maps changes confined to the .github directory to the ci type while dropping the redundant scope. It also adds corresponding unit tests. The reviewer suggested a code improvement to consistently strip the redundant .github scope when the resolved type is ci, even if the type was explicitly specified in a conventional commit.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Summary
Changed files
Modified
github_rest_api/pr_content.py(+18/-7)tests/test_pr_content.py(+48/-0)Commits