Skip to content

feat: improve title generation for .github and non-conventional commits#101

Merged
dclong merged 1 commit into
mainfrom
push-uvokklovonkr
Jul 18, 2026
Merged

feat: improve title generation for .github and non-conventional commits#101
dclong merged 1 commit into
mainfrom
push-uvokklovonkr

Conversation

@dclong

@dclong dclong commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • feat(pr_content): improve title generation for .github and non-conventional commits

Changed files

Modified

  • github_rest_api/pr_content.py (+18/-7)
  • tests/test_pr_content.py (+48/-0)

Commits

  • 89b62cd feat(pr_content): improve title generation for .github and non-conventional commits

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread github_rest_api/pr_content.py
@dclong
dclong merged commit c773098 into main Jul 18, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant