-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[git-webkit] Add screen-reader friendly review wizard (Part 1) #27628
[git-webkit] Add screen-reader friendly review wizard (Part 1) #27628
Conversation
EWS run on previous version of this PR (hash eac1a27) |
eac1a27
to
ba0312b
Compare
EWS run on previous version of this PR (hash ba0312b) |
ba0312b
to
364d251
Compare
EWS run on previous version of this PR (hash 364d251) |
364d251
to
ed3950c
Compare
@emw-apple, there is a "part 2" which is ready as well, I will upload that tomorrow. |
EWS run on previous version of this PR (hash ed3950c) |
ed3950c
to
097948b
Compare
EWS run on previous version of this PR (hash 097948b) |
help='Specify remote to search for pull request from.', | ||
) | ||
parser.add_argument( | ||
'--dry-run', '-d', '--no-dry-run', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: "-n" is typically the single-character dry run argument.
if from_config: | ||
return from_config.split(' ') | ||
|
||
from whichcraft import which |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use shutil.which
? Surely we don't need to support python < 3.3 here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not any more! When this PR was first written, we still needed Python 2 support here.
return from_config.split(' ') | ||
|
||
from whichcraft import which | ||
return [which('vi')] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: On some linux distributions (iirc, anything Debian-based), vi
will be the ancient POSIX vi program, not vim. So you might want to default to vim?
097948b
to
f7983bb
Compare
https://bugs.webkit.org/show_bug.cgi?id=261242 rdar://115083100 Reviewed by Elliott Williams. Add a read-only text-based PR review tool to git-webkit. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py: (Git.__init__): Add an "editor" argument which allows a caller to define an editor callback which is invoke when the mock commit message editor is called during the testing context. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/__init__.py: Add Review program. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/review.py: Added. (Review.parser): Define arguments for the sub-program. (Review.editor): Use a repository object to determine the user's prefered editor, matching the editor used to edit commit messages. (Review.args_for_url): Extract PR number and repository object from a URL, allowing a user to specify a PR URL instead of a number and remote. (Review.invoke_wizard): Generate a local file representing a PR, which includes the PR diff and comments made against that diff. Open that local file in the user's prefered editor. (Review.main): Extract a remote pull-request from the provided arguments and invoke the local wizard with the pull-request details. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/review_unittest.py: Added. (TestReview): (TestReview.editor_callback): (TestReview.editor_callback.callback): (TestReview.test_bitbucket): (TestReview.test_bitbucket_diff): (TestReview.test_github): (TestReview.test_github_files): (TestReview.test_invalid_pr_url): (TestReview.test_pr_argument): (TestReview.test_editor_no_repo): (TestReview.test_editor_repo): (TestReview.test_invoke_wizard): (TestReview.test_help): (TestReview.test_bitbucket_read): (TestReview.test_github_read): (TestReview.test_bitbucket_read_comments): (TestReview.test_github_read_comments): Canonical link: https://commits.webkit.org/279244@main
f7983bb
to
26ef083
Compare
Committed 279244@main (26ef083): https://commits.webkit.org/279244@main Reviewed commits have been landed. Closing PR #27628 and removing active labels. |
26ef083
f7983bb
π wpeπ wincairoπ§ͺ wpe-wk2π§ͺ wincairo-testsπ§ͺ ios-wk2π§ͺ api-wpeπ§ͺ ios-wk2-wptπ§ͺ api-iosπ tvπ§ͺ mac-AS-debug-wk2π§ͺ gtk-wk2π tv-simπ§ͺ api-gtkπ watchπ watch-sim