[Feature Request] At Pull Request: download patchfile [Button] #4087

Closed
opened 2025-11-02 05:37:08 -06:00 by GiteaMirror · 12 comments
Owner

Originally created by @6543 on GitHub (Oct 9, 2019).

add a option to download the patch of the PullRequest

GitLab has a buton and Github does via link

For example:
-> https://patch-diff.githubusercontent.com/raw/alpinelinux/aports/pull/10887.patch
-> https://patch-diff.githubusercontent.com/raw/alpinelinux/aports/pull/10887.diff

Originally created by @6543 on GitHub (Oct 9, 2019). add a option to download the patch of the PullRequest GitLab has a buton and Github does via link For example: -> https://patch-diff.githubusercontent.com/raw/alpinelinux/aports/pull/10887.patch -> https://patch-diff.githubusercontent.com/raw/alpinelinux/aports/pull/10887.diff
Author
Owner

@bagasme commented on GitHub (Oct 10, 2019):

What about your use case for this feature request?

@bagasme commented on GitHub (Oct 10, 2019): What about your use case for this feature request?
Author
Owner

@zeripath commented on GitHub (Oct 10, 2019):

It's basically copying GitHub functionality, but allows Gitea to function a bit like a patch server. I could imagine it being necessary to form part of federation or to allow Gitea to integrate with other VCS s.

It's not a high priority issue afaics just a nice to have.

@zeripath commented on GitHub (Oct 10, 2019): It's basically copying GitHub functionality, but allows Gitea to function a bit like a patch server. I could imagine it being necessary to form part of federation or to allow Gitea to integrate with other VCS s. It's not a high priority issue afaics just a nice to have.
Author
Owner

@lunny commented on GitHub (Oct 10, 2019):

@6543 Did you mean https://gitea.com/gitnex/GitNex/pulls/122.patch and https://gitea.com/gitnex/GitNex/pulls/122.diff ?

@lunny commented on GitHub (Oct 10, 2019): @6543 Did you mean https://gitea.com/gitnex/GitNex/pulls/122.patch and https://gitea.com/gitnex/GitNex/pulls/122.diff ?
Author
Owner

@6543 commented on GitHub (Oct 10, 2019):

@zeripath you are right :low_prio: ... this is a note for a nice to have fumction
@lunny this are only demo links how it can look like (kan add a gitlab demo too butvdont think it is nessesary)

@6543 commented on GitHub (Oct 10, 2019): @zeripath you are right :low_prio: ... this is a note for a nice to have fumction @lunny this are only demo links how it can look like (kan add a gitlab demo too butvdont think it is nessesary)
Author
Owner

@zeripath commented on GitHub (Oct 10, 2019):

I think @lunny means that the code for this is already present:

https://gitea.com/gitea/log/pulls/10.patch

https://gitea.com/gitea/log/pulls/10.diff

(Which are both public PRs so anyone should be able to see.)

I guess the issue is that the links aren't displayed anywhere.

@zeripath commented on GitHub (Oct 10, 2019): I think @lunny means that the code for this is already present: https://gitea.com/gitea/log/pulls/10.patch https://gitea.com/gitea/log/pulls/10.diff (Which are both public PRs so anyone should be able to see.) I guess the issue is that the links aren't displayed anywhere.
Author
Owner

@lunny commented on GitHub (Oct 10, 2019):

Yes, so we only need a button or a link on a suitable place.

@lunny commented on GitHub (Oct 10, 2019): Yes, so we only need a button or a link on a suitable place.
Author
Owner

@6543 commented on GitHub (Oct 10, 2019):

I'm searching in the docu if there is a note ..

@6543 commented on GitHub (Oct 10, 2019): I'm searching in the docu if there is a note ..
Author
Owner

@6543 commented on GitHub (Oct 10, 2019):

and I'll search for the button too - perhaps i find a place

@6543 commented on GitHub (Oct 10, 2019): and I'll search for the button too - perhaps i find a place
Author
Owner

@6543 commented on GitHub (Oct 10, 2019):

does gogs have this too?

@6543 commented on GitHub (Oct 10, 2019): does gogs have this too?
Author
Owner

@6543 commented on GitHub (Oct 10, 2019):

Bildschirmfoto zu 2019-10-10 17-22-19

make "Show Diff Stats" to a dropdown menue "Diff Options" wich contain

  • "Show Stats"
  • "Download Patch"
  • "Download Diff"

?

@6543 commented on GitHub (Oct 10, 2019): ![Bildschirmfoto zu 2019-10-10 17-22-19](https://user-images.githubusercontent.com/24977596/66582762-946da400-eb82-11e9-8fba-05339a4a7ff9.png) make "Show Diff Stats" to a dropdown menue "Diff Options" wich contain * "Show Stats" * "Download Patch" * "Download Diff" ?
Author
Owner

@guillep2k commented on GitHub (Oct 10, 2019):

Sounds reasonable.

@guillep2k commented on GitHub (Oct 10, 2019): Sounds reasonable.
Author
Owner

@6543 commented on GitHub (Oct 11, 2019):

-> https://github.com/go-gitea/gitea/pull/8470

@6543 commented on GitHub (Oct 11, 2019): -> https://github.com/go-gitea/gitea/pull/8470
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4087