Skip to content

Handle missing file path in PR title gracefully#2320

Merged
hiroshinishio merged 1 commit intomainfrom
wes
Feb 24, 2026
Merged

Handle missing file path in PR title gracefully#2320
hiroshinishio merged 1 commit intomainfrom
wes

Conversation

@hiroshinishio
Copy link
Collaborator

@hiroshinishio hiroshinishio commented Feb 24, 2026

Summary

  • get_impl_file_from_pr_title now returns None instead of raising ValueError when the PR title has no file path (e.g. user-edited titles, non-English titles)
  • check_suite_handler and is_target_test_file handle None gracefully so the agent isn't blocked
  • new_pr_handler still raises since schedule PRs must have a file path in the title
  • Added logging to is_target_test_file for each return path

get_impl_file_from_pr_title now returns None instead of raising ValueError
when the PR title has no file path (e.g. user-edited or non-English titles).
Callers in check_suite_handler and is_target_test_file handle None gracefully,
while new_pr_handler raises since schedule PRs must have a file path.
@hiroshinishio hiroshinishio self-assigned this Feb 24, 2026
@hiroshinishio hiroshinishio merged commit 8f68cd2 into main Feb 24, 2026
1 check passed
@hiroshinishio hiroshinishio deleted the wes branch February 24, 2026 17:53
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