* Adds functionality to change target branch of created pull requests Signed-off-by: Mario Lubenka <[email protected]> * Use const instead of var in JavaScript additions Signed-off-by: Mario Lubenka <[email protected]> * Check if branches are equal and if PR already exists before changing target branch Signed-off-by: Mario Lubenka <[email protected]> * Make sure to check all commits Signed-off-by: Mario Lubenka <[email protected]> * Print error messages for user as error flash message Signed-off-by: Mario Lubenka <[email protected]> * Disallow changing target branch of closed or merged pull requests Signed-off-by: Mario Lubenka <[email protected]> * Resolve conflicts after merge of upstream/master Signed-off-by: Mario Lubenka <[email protected]> * Change order of branch select fields Signed-off-by: Mario Lubenka <[email protected]> * Removes duplicate check Signed-off-by: Mario Lubenka <[email protected]> * Use ctx.Tr for translations Signed-off-by: Mario Lubenka <[email protected]> * Recompile JS Signed-off-by: Mario Lubenka <[email protected]> * Use correct translation namespace Signed-off-by: Mario Lubenka <[email protected]> * Remove redundant if condition Signed-off-by: Mario Lubenka <[email protected]> * Moves most change branch logic into pull service Signed-off-by: Mario Lubenka <[email protected]> * Completes comment Signed-off-by: Mario Lubenka <[email protected]> * Add Ref to ChangesPayload for logging changed target branches instead of creating a new struct Signed-off-by: Mario Lubenka <[email protected]> * Revert changes to go.mod Signed-off-by: Mario Lubenka <[email protected]> * Directly use createComment method Signed-off-by: Mario Lubenka <[email protected]> * Return 404 if pull request is not found. Move written check up Signed-off-by: Mario Lubenka <[email protected]> * Remove variable declaration Signed-off-by: Mario Lubenka <[email protected]> * Return client errors on change pull request target errors Signed-off-by: Mario Lubenka <[email protected]> * Return error in commit.HasPreviousCommit Signed-off-by: Mario Lubenka <[email protected]> * Adds blank line Signed-off-by: Mario Lubenka <[email protected]> * Test patch before persisting new target branch Signed-off-by: Mario Lubenka <[email protected]> * Update patch before testing (not working) Signed-off-by: Mario Lubenka <[email protected]> * Removes patch calls when changeing pull request target Signed-off-by: Mario Lubenka <[email protected]> * Removes unneeded check for base name Signed-off-by: Mario Lubenka <[email protected]> * Moves ChangeTargetBranch completely to pull service. Update patch status. Signed-off-by: Mario Lubenka <[email protected]> * Set webhook mode after errors were validated Signed-off-by: Mario Lubenka <[email protected]> * Update PR in one transaction Signed-off-by: Mario Lubenka <[email protected]> * Move logic for check if head is equal with branch to pull model Signed-off-by: Mario Lubenka <[email protected]> * Adds missing comment and simplify return Signed-off-by: Mario Lubenka <[email protected]> * Adjust CreateComment method call Signed-off-by: Mario Lubenka <[email protected]>
Gitea - Git with a cup of tea
Purpose
The goal of this project is to make the easiest, fastest, and most painless way of setting up a self-hosted Git service. Using Go, this can be done with an independent binary distribution across all platforms which Go supports, including Linux, macOS, and Windows on x86, amd64, ARM and PowerPC architectures. Want to try it before doing anything else? Do it with the online demo! This project has been forked from Gogs since 2016.11 but changed a lot.
Building
From the root of the source tree, run:
TAGS="bindata" make build
More info: https://docs.gitea.io/en-us/install-from-source/
Using
./gitea web
NOTE: If you're interested in using our APIs, we have experimental support with documentation.
Contributing
Expected workflow is: Fork -> Patch -> Push -> Pull Request
NOTES:
- YOU MUST READ THE CONTRIBUTORS GUIDE BEFORE STARTING TO WORK ON A PULL REQUEST.
- If you have found a vulnerability in the project, please write privately to [email protected]. Thanks!
Further information
For more information and instructions about how to install Gitea, please look at our documentation. If you have questions that are not covered by the documentation, you can get in contact with us on our Discord server, or forum!
Authors
Backers
Thank you to all our backers! 🙏 [Become a backer]
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
FAQ
How do you pronounce Gitea?
Gitea is pronounced /ɡɪ’ti:/ as in "gi-tea" with a hard g.
Why is this not hosted on a Gitea instance?
We're working on it.
License
This project is licensed under the MIT License. See the LICENSE file for the full license text.
Screenshots
Looking for an overview of the interface? Check it out!
![]() |
![]() |
![]() |
|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |











