Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: af6725a1fa1dc3afbd1fbd5f592b31ff32d0d80d
https://github.com/WebKit/WebKit/commit/af6725a1fa1dc3afbd1fbd5f592b31ff32d0d80d
Author: Geoffrey Garen <[email protected]>
Date: 2026-04-24 (Fri, 24 Apr 2026)
Changed paths:
M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/branch.py
M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py
M
Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/pull_request_unittest.py
Log Message:
-----------
'git webkit pr' should support running from any branch (not just main)
https://bugs.webkit.org/show_bug.cgi?id=312930
rdar://175277222
Reviewed by Jonathan Bedard.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/branch.py:
(Branch.ensure_issue): Factored out a helper function for use below.
(Branch):
(Branch.main): Call the helper function.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py:
(PullRequest.create_commit): Update the commit message to include the
bug title and URL whenever we create a commit, since branch-based
workflows won't have taken that step yet.
(PullRequest):
(PullRequest.issue_from_commits): Factored out a helper function for use below.
(PullRequest.pull_request_branch_point): This is most of the fix: If we're on
a branch already but we don't have an issue filed yet, now's the time to file
it.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/pull_request_unittest.py:
Test the on branch with local changes case and the on branch with an existing
commit case.
Canonical link: https://commits.webkit.org/311983@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications