Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 56837d22f51528cad8c1dc45c49085ef9b20bdad
      
https://github.com/WebKit/WebKit/commit/56837d22f51528cad8c1dc45c49085ef9b20bdad
  Author: David Kilzer <[email protected]>
  Date:   2025-10-13 (Mon, 13 Oct 2025)

  Changed paths:
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/pull_request.py
    M 
Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/pull_request_unittest.py

  Log Message:
  -----------
  [Tools] git-webkit should link commit IDs like "301069@main" in the commit 
message
<https://bugs.webkit.org/show_bug.cgi?id=300512>
<rdar://162374652>

Reviewed by Jonathan Bedard.

* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/pull_request.py:
(PullRequest.escape_html):
- Update URL regex to match at end-of-string to handle URLs at the end
  of commit messages.
- Add regex to match and link commit IDs.  Use negative lookbehind to
  prevent matching commit IDs that are part of URLs.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/pull_request_unittest.py:
(TestPullRequest.test_create_body_commit_identifiers):
- Test standalone commit ID linking.
(TestPullRequest.test_create_body_commit_identifiers_in_urls):
- Test that commit IDs within existing URLs are not double-linked.

Canonical link: https://commits.webkit.org/301411@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to