question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add button to download diff of PR

See original GitHub issue

For instance, here https://github.com/ansible/ansible/pull/54740, a button that reads ‘Patch’ with a download icon could appear next to the Files changed tab or next to the title of the PR.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fregantecommented, Apr 3, 2019

RGH already shows diff/patch links in commit pages, but not in PRs.

For the record, you can always access that by appending .diff to the URL: https://github.com/ansible/ansible/pull/54740.diff

But before we go further, why? How do you use the downloaded .diff file?

0reactions
nkakouroscommented, Apr 3, 2019

Here’s a screenshot

Oh right! Thanks for pointing out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add button to download diff of PR · Issue #1907 - GitHub
Ctrl+L , ➡️ , type .diff and Enter; cd into/ansible/folder; patch -p1 < ~/Downloads/54740. Making ...
Read more >
Download Github pull request as unified diff - Stack Overflow
To view a commit as a diff/patch file, just add .diff or .patch to the end of the URL, for example: https://github.com/weppos/whois/pull/90 ...
Read more >
Allow for download of diff for use in external diff tools
It would be convenient to allow for the download of the diff file during a pull request. By this I mean, it would...
Read more >
Create a pull request to review and merge code - Azure Repos
Learn how to create pull requests or draft pull requests in Azure Repos using Git, and add details and reviewers.
Read more >
How to Create a Pull Request on GitHub using VS Code
1. Head over to GitHub to create your PR after committing! ... Go to the Pull requests section in the repository and click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found