[Webkit-unassigned] [Bug 242369] New: [git-webkit] When run git-webkit pr with a revert commit have an error: AttributeError: 'PullRequest' object has no attribute 'link'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 5 16:48:26 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=242369

            Bug ID: 242369
           Summary: [git-webkit] When run git-webkit pr with a revert
                    commit have an error: AttributeError: 'PullRequest'
                    object has no attribute 'link'
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zhifei_fang at apple.com

[git-webkit] When run git-webkit pr with a revert commit, it raises an error

ntim @ OpenSource ⚡️ git-webkit pr
Branch 'main' set up to track remote branch 'main' from 'origin'.
Total errors found: 0 in 60 files
Enumerating objects: 1244, done.
Counting objects: 100% (1244/1244), done.
Delta compression using up to 8 threads
Compressing objects: 100% (502/502), done.
Writing objects: 100% (869/869), 325.18 KiB | 218.00 KiB/s, done.
Total 869 (delta 737), reused 472 (delta 361), pack-reused 0
remote: Resolving deltas: 100% (737/737), completed with 346 local objects.
remote: 
remote: Create a pull request for 'revert-user-select-unprefixing' on GitHub by visiting:
remote:      https://github.com/nt1m/WebKit/pull/new/revert-user-select-unprefixing
remote: 
To github.com:nt1m/WebKit.git
 * [new branch]                revert-user-select-unprefixing -> revert-user-select-unprefixing
Created 'PR 2102 | Revert 249800 at main: "Unprefix -webkit-user-select"'!
Traceback (most recent call last):
  File "/Volumes/Data/Code/Safari/Internal/Tools/Scripts/git-webkit", line 89, in <module>
    sys.exit(program.main(
  File "/Volumes/Data/Code/Safari/OpenSource/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/__init__.py", line 148, in main
    return parsed.main(
  File "/Volumes/Data/Code/Safari/OpenSource/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py", line 460, in main
    return cls.create_pull_request(repository, args, branch_point)
  File "/Volumes/Data/Code/Safari/OpenSource/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py", line 402, in create_pull_request
    cls.add_comment_to_reverted_commit_bug_tracker(repository, args, pr, commits[0])
  File "/Volumes/Data/Code/Safari/OpenSource/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py", line 259, in add_comment_to_reverted_commit_bug_tracker
    tracker.add_comment('Reverted by {}'.format(pr.link))
AttributeError: 'PullRequest' object has no attribute 'link'

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220705/75beff3f/attachment-0001.htm>


More information about the webkit-unassigned mailing list