-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add apply-patch, basic revert and cherry-pick functionality #17902
Conversation
This PR is essentially a rebase of the very old WIP. One thing that this PR isn't currently doing is ensuring that the protect file paths are checked but as far as I understand these will be checked in the post-receive of the ultimate push so I think this should be fine. |
This code adds a simple endpoint to apply patches to repositories and branches on gitea. Signed-off-by: Andrew Thornton <art27@cantab.net>
imho it's missing golang view tmpl file 😉 |
Signed-off-by: Andrew Thornton <art27@cantab.net>
What do you mean? |
Sorry, GitHub wasn't showing templates/repo/editor/patch.tmpl file in diff previously somehow for me 😅 |
Co-authored-by: silverwind <me@silverwind.io>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
This PR provides a very basic implementation of #3880 |
Could you post some screentshots? |
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
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.
lgtm on backend side :)
Signed-off-by: Andrew Thornton <art27@cantab.net>
🚀 |
* giteaofficial/main: Fix issue with docker-rootless shimming script (go-gitea#18690) tests: remove redundant comparison in repo dump/restore (go-gitea#18660) [skip ci] Updated translations via Crowdin Disable unnecessary OpenID/OAuth2 elements (go-gitea#18491) Add apply-patch, basic revert and cherry-pick functionality (go-gitea#17902) C preprocessor colors improvement (go-gitea#18671) Update object repo with the migrated repository (go-gitea#18684)
…#17902) This code adds a simple endpoint to apply patches to repositories and branches on gitea. This is then used along with the conflicting checking code in go-gitea#18004 to provide a basic implementation of cherry-pick revert. Now because the buttons necessary for cherry-pick and revert have required us to create a dropdown next to the Browse Source button I've also implemented Create Branch and Create Tag operations. Fix go-gitea#3880 Fix go-gitea#17986 Signed-off-by: Andrew Thornton <art27@cantab.net>
This code adds a simple endpoint to apply patches to repositories and
branches on gitea. This is then used along with the conflicting checking
code in #18004 to provide a basic implementation of cherry-pick revert.
Now because the buttons necessary for cherry-pick and revert have
required us to create a dropdown next to the Browse Source button
I've also implemented Create Branch and Create Tag operations.
Fix #3880
Fix #17986
Signed-off-by: Andrew Thornton art27@cantab.net
Screenshots
Apply Patch
Cherry Pick/Revert
The commit message will be prefilled with the commit message being cherry-picked.
If the cherry-pick/revert fails then the results will pass back to the apply-patch screen to adjust the patch.