Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ You can pass all the same arguments that you would to `git diff`, e.g.
You can also use `webdiff` to view GitHub pull requests:

webdiff https://github.com/owner/repo/pull/123
webdiff '#123' # if you're in a git repo with a github remote
webdiff '#150' # if you're in a git repo with a github remote

This will download the files relevant to the Pull Request and run `webdiff`.

Expand Down
87 changes: 77 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ include = ["webdiff/static/js/file_diff.js"]
python = "^3.10"
binaryornot = "*"
pillow = "*"
PyGithub = "==1.55"
PyGithub = "2.3.0"
unidiff = "==0.7.4"

[tool.poetry.group.dev.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion webdiff/githubdiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __repr__(self):

def fetch_pull_request(owner, repo, num):
"""Return a list of Diff objects for a pull request."""
sys.stderr.write(f'Loading pull request {owner}{repo}#{num} from github...\n')
sys.stderr.write(f'Loading pull request {owner}/{repo}#{num} from GitHub...\n')
g = github()
pr = g.get_user(owner).get_repo(repo).get_pull(num)
files = pr.get_files()
Expand Down