[webkit-changes] [WebKit/WebKit] 767f67: [git-webkit] Recognize self in Bitbucket PRs

Jonathan Bedard noreply at github.com
Wed Sep 6 15:39:45 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 767f671b38739465c9bd477d1c1d73a596ab6948
      https://github.com/WebKit/WebKit/commit/767f671b38739465c9bd477d1c1d73a596ab6948
  Author: Jonathan Bedard <jbedard at apple.com>
  Date:   2023-09-06 (Wed, 06 Sep 2023)

  Changed paths:
    M Tools/Scripts/libraries/webkitscmpy/setup.py
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/contributor.py
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/bitbucket.py
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/contributor_unittest.py

  Log Message:
  -----------
  [git-webkit] Recognize self in Bitbucket PRs
https://bugs.webkit.org/show_bug.cgi?id=260802
rdar://114570779

Reviewed by Dewei Zhu.

We should include the Bitbucket username in contributor objects returned
from Bitbucket APIs, so that `git-webkit pr` can recognize PRs uploaded
by the current user.

* Tools/Scripts/libraries/webkitscmpy/setup.py: Bump version.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/contributor.py:
(Contributor.Mapping.create): Allow github and bitbucket usernames to be specified.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/bitbucket.py:
(BitBucket.PRGenerator.PullRequest): Include Bitbucket username in contributor object.
(BitBucket.PRGenerator.update): Ditto.
(BitBucket.PRGenerator.comments): Ditto.
(BitBucket.commit): Ditto.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/contributor_unittest.py:
(TestContributor.test_github):
(TestContributor.test_bitbucket):

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




More information about the webkit-changes mailing list