Title: [288468] trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy
- Revision
- 288468
- Author
- [email protected]
- Date
- 2022-01-24 14:31:14 -0800 (Mon, 24 Jan 2022)
Log Message
Incorrect pull-request url printed by git-webkit
https://bugs.webkit.org/show_bug.cgi?id=235513
Reviewed by Jonathan Bedard.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py:
(GitHub.PRGenerator.PullRequest):
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/pull_request_unittest.py:
Canonical link: https://commits.webkit.org/246353@main
Modified Paths
Diff
Modified: trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py (288467 => 288468)
--- trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py 2022-01-24 22:22:46 UTC (rev 288467)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py 2022-01-24 22:31:14 UTC (rev 288468)
@@ -57,7 +57,7 @@
generator=self,
metadata=dict(
issue=data.get('_links', {}).get('issue', {}).get('href'),
- ), url=''.format(self.repository.url, data['number']),
+ ), url=''.format(self.repository.url, data['number']),
)
def get(self, number):
Modified: trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/pull_request_unittest.py (288467 => 288468)
--- trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/pull_request_unittest.py 2022-01-24 22:22:46 UTC (rev 288467)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/pull_request_unittest.py 2022-01-24 22:31:14 UTC (rev 288468)
@@ -330,7 +330,7 @@
captured.stdout.getvalue(),
"Created the local development branch 'eng/pr-branch'!\n"
"Created 'PR 1 | [Testing] Creating commits'!\n"
- "https://github.example.com/WebKit/WebKit/pulls/1\n",
+ "https://github.example.com/WebKit/WebKit/pull/1\n",
)
self.assertEqual(captured.stderr.getvalue(), '')
log = captured.root.log.getvalue().splitlines()
@@ -366,7 +366,7 @@
self.assertEqual(
captured.stdout.getvalue(),
"Updated 'PR 1 | [Testing] Amending commits'!\n"
- "https://github.example.com/WebKit/WebKit/pulls/1\n",
+ "https://github.example.com/WebKit/WebKit/pull/1\n",
)
self.assertEqual(captured.stderr.getvalue(), '')
log = captured.root.log.getvalue().splitlines()
@@ -408,7 +408,7 @@
"'eng/pr-branch' is already associated with 'PR 1 | [Testing] Creating commits', which is closed.\n"
'Would you like to create a new pull-request? (Yes/[No]): \n'
"Updated 'PR 1 | [Testing] Amending commits'!\n"
- "https://github.example.com/WebKit/WebKit/pulls/1\n",
+ "https://github.example.com/WebKit/WebKit/pull/1\n",
)
self.assertEqual(captured.stderr.getvalue(), '')
log = captured.root.log.getvalue().splitlines()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes