summaryrefslogtreecommitdiffstats
path: root/custom
Commit message (Collapse)AuthorAgeFilesLines
* Feature - Pagination for git tree API (#5838)Richard Mahn2019-02-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Feature - Pagination for git tree API * Handles case when page is negative * Does a for loop over the start and end rather than all entries * Removed redundent logic * Adds per_page as a query parameter * Adds DEFAULT_GIT_TREES_PER_PAGE for settings, ran make fmt * Fix typo in cheat-sheet en * Makes page start at 1, generated swagger * Use updates to SDK * Updates to use latest sdk * Updates swagger for tree api * Adds test for GetTreeBySHA * Updates per PR reviews * Updates per PR reviews * Remove file * Formatting * Fix to swagger file * Fix to swagger * Update v1_json.tmpl * Fix to swagger file
* Allow Macaron to be set to log through to gitea.log (#5667)zeripath2019-02-051-0/+1
| | | | | | * Allow Macaron to be set to log through gitea.log Fix #4291
* Make log mailer for testing (#5893)zeripath2019-02-021-2/+2
| | | | | | | | | | | | | | | | | | * Create log mailer for testing email settings Signed-off-by: Andrew Thornton <art27@cantab.net> * Switch on the log mailer for the integration tests This ensures that the sending mail process works Signed-off-by: Andrew Thornton <art27@cantab.net> * rename the from user for mysql/mssql * rename log sender to dummy sender * update the integration tests
* Config option to disable automatic repo watching (#5852)sebastian-sauer2019-01-271-0/+4
| | | | | | | | | Add a new config option to enable / disable the automatic watching of repos for new repositories and if a user is added to a team. Fixes #653 Signed-off-by: Sebastian Sauer <sauer.sebastian@gmail.com>
* improve the releases api paging (#5831)Lunny Xiao2019-01-241-0/+2
| | | | | | * improve the releases api paging * add max limit on API paging
* Add documentation for SHOW_REGISTRATION_BUTTON (#5778)techknowlogick2019-01-191-0/+2
| | | | * Fix #5737
* Make db connect more robust (#5738)Paul Brackin2019-01-191-0/+5
|
* update docs to include THEMES config value (#5752)Lanre Adelowo2019-01-171-1/+1
| | | | | | | | * update docs to include THEMES * Update app.ini.sample * Update config-cheat-sheet.en-us.md
* Support CORS headers to git smart http protocol (#5719)Lunny Xiao2019-01-141-0/+3
|
* Allow for user specific themes (#5668)Lanre Adelowo2019-01-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * add migration and basic UI for changing a user's theme * update user themem * use right text on button * load theme based on users' selection * load theme based on users' selection in pwa too * update sample config * delete older theme loading * implement AfterLoad to set users' theme properly * set up default theme when creating a user. This uses the installation wide theme * use flash messages for error * set default theme when creating a user from the cli * fix @lunny review
* Support reverse proxy providing email (#5554)zeripath2018-12-181-0/+2
| | | This PR implements #2347
* improve the git-scm url's in docs and sample.ini (#5467)Roman2018-12-051-2/+2
| | | | | | | | | | | | | | * remove old git-version from git-scm url in app.ini The url includes the version of git, which is not required to view the page. If you open the page without the version you get the current version and it's possible to switch the used version. Signed-off-by: Roman <romaaan.git@gmail.com> * docs: mention the git-scm url for git configs Signed-off-by: Roman <romaaan.git@gmail.com>
* Refactor heatmap to vue component (#5401)Lauris BH2018-11-271-2/+0
|
* Explicitly decide whether to use TLS in mailer's configuration (#5024)Lanre Adelowo2018-11-261-0/+2
| | | | | | | | * explicitly decide on using TLS for mail connections * explicitly decide on using TLS for mail connections * keep compatibility
* Fix typos in configuration (#5398)Patrick Lühne2018-11-251-4/+4
|
* app.ini.sample: add ENABLE_USER_HEATMAP default config (#5362)Antoine GIRARD2018-11-201-0/+2
| | | Doc: https://github.com/go-gitea/gitea/blob/b97af15de67b04fd259bd70a4abbc873f12e9491/docs/content/doc/advanced/config-cheat-sheet.en-us.md#service-service
* Block registration based on email domain (#5157)Lanre Adelowo2018-11-141-0/+3
| | | * implement email domain whitelist
* Fix typo in configuration (#5295)Patrick Lühne2018-11-081-1/+1
| | | Signed-off-by: Patrick Lühne <patrick@luehne.de>
* Prometheus endpoint (#5256)Stanislav2018-11-041-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add prometheus collector and route * dep ensure -add github.com/prometheus/client_golang/prometheus * dep ensure -update github.com/golang/protobuf * add metrics to reserved usernames * add comment head in metrics package * fix style imports * add metrics settings * add bearer token check * mapping metrics configs * fix lint * update config cheat sheet * update conf sample, typo fix
* Clean up docs (#5274)techknowlogick2018-11-041-2/+2
| | | | | | | | | | | | * make docs more clear * make docs more clear * Add analytics * Update customizing-gitea.en-us.md * Update app.ini.sample
* Create AuthorizedKeysCommand (#5236)zeripath2018-11-011-0/+3
|
* Set heatmap color range configurable (#5165)Antoine GIRARD2018-10-241-0/+2
|
* Fix a typo in app.ini.sample (#5015)Chih-Hsuan Yen2018-10-051-1/+1
|
* MySQL TLS (#4642)Russell Aunger2018-08-231-1/+2
|
* Disable merging a WIP Pull request (#4529)Julien Tant2018-08-131-0/+4
| | | | | | | | | | | | | | | | | * prevent pull request to be merged when PR is a WIP * add tests * add helper to prepend WIP: in PR title * move default wip prefixes into settings * use configurable WIP prefixes in javascript and default to first one in templates * add documentation * add unit test on pull model Signed-off-by: Julien Tant <julien@craftyx.fr>
* cmd/serve: pprof cpu and memory profile dumps to disk (#4560)Jerry Jacobs2018-08-071-1/+7
|
* Pull request review/approval and comment on code (#3748)Lauris BH2018-08-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial ui components for pull request review * Add Review Add IssueComment types Signed-off-by: Jonas Franz <info@jonasfranz.software> (cherry picked from commit 2b4daab) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Replace ReviewComment with Content Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add load functions Add ReviewID to findComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add create review comment implementation Add migration for review Other small changes Signed-off-by: Jonas Franz <info@jonasfranz.software> * Simplified create and find functions for review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved "Pending" to first position Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add GetCurrentReview to simplify fetching current review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Preview for listing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Move new comment form to its own file Signed-off-by: Jonas Franz <info@jonasfranz.software> * Implement Review form Show Review comments on comment stream Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for single comments Showing buttons in context Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add pending tag to pending review comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add unit tests for Review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fetch all review ids at once Add unit tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improved comment rendering in "Files" view by adding Comments to DiffLine Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for invalidating comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Switched back to code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved review migration from v64 to v65 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Rebuild css Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improve translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests by updating fixtures and updating outdated test Signed-off-by: Jonas Franz <info@jonasfranz.software> * Comments will be shown at the right place now Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for deleting CodeComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems caused by files in subdirectories Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for showing code comments of reviews in conversation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for "Show/Hide outdated" Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for new webhooks Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update comparison Signed-off-by: Jonas Franz <info@jonasfranz.software> * Resolve conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Minor UI improvements * update code.gitea.io/git * Fix ui bug reported by @lunny causing wrong position of add button Add functionality to "Cancel" button Add scale effects to add button Hide "Cancel" button for existing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Prepare solving conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show add button only if no comments already exist for the line Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing vendor files Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if reviewer is nil Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show forms only to users who are logged in Signed-off-by: Jonas Franz <info@jonasfranz.software> * Revert "Show forms only to users who are logged in" This reverts commit c083682 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Save patch in comment Render patch for code comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add link to comment in code Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add reply form to comment list Show forms only to signed in users Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add 'Reply' as translatable Add CODE_COMMENT_LINES setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems introduced by checking for singed in user Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add v70 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update generated stylesheet Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix preview Beginn with new review comment patch system Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add new algo to generate diff for line range Remove old algo used for cutting big diffs (it was very buggy) * Add documentation and example for CutDiffAroundLine * Fix example of CutDiffAroundLine * Fix some comment UI rendering bugs * Add code comment edit mode * Send notifications / actions to users until review gets published Fix diff generation bug Fix wrong hashtag * Fix vet errors * Send notifications also for single comments * Fix some notification bugs, fix link * Fix: add comment icon is only shown on code lines * Add lint comment * Add unit tests for git diff * Add more error messages * Regenerated css Signed-off-by: Jonas Franz <info@jonasfranz.software> * fmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Regenerated CSS with latest less version Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test by updating comment type to new ID Signed-off-by: Jonas Franz <info@jonasfranz.software> * Introducing CodeComments as type for map[string]map[int64][]*Comment Other minor code improvements Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix data-tab issues Signed-off-by: Jonas Franz <info@jonasfranz.software> * Remove unnecessary change Signed-off-by: Jonas Franz <info@jonasfranz.software> * refactored checkForInvalidation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Append comments instead of setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * Use HeadRepo instead of BaseRepo Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update migration Signed-off-by: Jonas Franz <info@jonasfranz.de> * Regenerated CSS Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add copyright Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update index.css Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Swagger.v1.json template (#3572)Piotr Orzechowski2018-07-281-2/+2
| | | | | | * Turn swagger.v1.json into template * Rename ENABLE_SWAGGER_ENDPOINT option to ENABLE_SWAGGER
* Make max commits in graph configurable (#4498)Kjell Kvinge2018-07-231-0/+2
|
* Added dependencies for issues (#2196) (#2531)kolaente2018-07-171-0/+3
|
* Add the ability to have built in themes in Gitea (#4198)techknowlogick2018-07-051-0/+2
| | | | | | | | | This makes it easier for user who want to theme but don't have the ability to know how to customize templates all that is required is a change in a config option The reason why I chose the DEFAULT_THEME as variable, as perhaps in the future we will allow users to chose their theme whon logged in just like we do with languages
* Add Recaptcha functionality to Gitea (#4044)Fluf2018-07-051-1/+7
|
* Limit uploaded avatar image-size to 4096x3072 by default (#4353)Kim "BKC" Carlbäcker2018-07-031-0/+4
|
* Fix missing close tags in U2F (#4256)François M2018-06-191-2/+2
|
* LFS: make HTTP auth period configurable (#4035)Inon S2018-05-291-0/+2
| | | | | | | | | | | | | | * LFS: make HTTP auth period configurable * Formatting: Removed semicolon Due to automated fmt-check failure (drone.gitea.io) * applying code reviews * Applied code review comment: Change HTTPAuthExpiry to time.Duration * Updated config cheat sheet
* fix attachment ENABLED (#4064)Lunny Xiao2018-05-281-1/+1
| | | | | | * fix attachment ENABLED * change wrong name on app.ini.sample
* add i18n section in config cheat sheet, reordered app.ini.sample (#4038)David Schneiderbauer2018-05-241-9/+8
| | | | | | * add i18n section in config cheat sheet, reordered app.ini.sample * fix wrong default config
* add a Ukrainian language (#4036)3_1_3_u2018-05-241-2/+3
|
* doc: update LOCAL_ROOT_URL description for PROTOCOL = 'unix' case (#3760)Timothée Ravier2018-05-221-0/+1
| | | | | | | | | Update the sample configuration and config cheat sheet description for the LOCAL_ROOT_URL configuration variable to mention the special case required if PROTOCOL is set to 'unix'. Fixes #3741. Signed-off-by: Timothée Ravier <tim@siosm.fr>
* Add support for FIDO U2F (#3971)Jonas Franz2018-05-191-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for U2F Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add vendor library Add missing translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Minor improvements Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add U2F support for Firefox, Chrome (Android) by introducing a custom JS library Add U2F error handling Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add U2F login page to OAuth Signed-off-by: Jonas Franz <info@jonasfranz.software> * Move U2F user settings to a separate file Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add unit tests for u2f model Renamed u2f table name Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems caused by refactoring Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add U2F documentation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Remove not needed console.log-s Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add default values to app.ini.sample Add FIDO U2F to comparison Signed-off-by: Jonas Franz <info@jonasfranz.software>
* issue-2768: added new option allow_only_external_registration (#3910)FabioFortini2018-05-131-0/+2
|
* Fix comments in config1 (#3946)mikolaj holysz2018-05-111-65/+67
| | | | | | | | | | | | | | | | | * Fix some comments in custom/conf/app.ini.sample Some comments in app.ini.sample were very vague, didn't contain much information. Some of them have been fixed, but mistakes that need to be fixed by an expert still remain, see #3928 Signed-off-by: Mikolaj Holysz <miki123211@gmail.com> * Add an additional comment pointing to more documentation. Add an additional comment to the top of the sample configuration file. It contains a link pointing to gitea's docs and the configcheat sheet, which contains some explanations about the parameters in the config. Signed-off-by: Mikolaj Holysz <miki123211@gmail.com>
* Add EnableTimetracking option to app settings (#3719)Bwko2018-04-091-0/+2
|
* Add config option to enable or disable log executed SQL (#3726)Lunny Xiao2018-03-301-0/+2
| | | | | | * add config option to enable or disable log executed SQL * rename ShowSQL to LogSQL
* Add option to enable or disable swagger endpoints (#3502)Piotr Orzechowski2018-02-141-0/+2
|
* Add mising `LOCAL_WIKI_PATH` documentation (#3420)Lauris BH2018-01-281-1/+3
|
* Added quoting for passwords in sample.app.ini and documentation (#3395)Timo Schindler2018-01-271-0/+3
|
* Fixed link to Issue 165 in comment, that was broken by commit ↵Roman Egunkov2017-12-291-1/+1
| | | | 2d68bd1ef98849da54c869b103e93719d1accb5e (index 8110ac85..0f6163c4 100644). (#3267)
* Add an option to allow redirect of http port 80 to https. (#1928)Mike Fellows2017-12-251-0/+6
| | | | | | | | | | | | | * Add an option to allow redirect of http port 80 to https. This is an "opt in" option (default is to not redirect). It will only redirect if protocol is https and the new REDIRECT_PORT_80 option is set to true. The Port to redirect in previous commit was hardcoded to 80, now it can be specified in the app.ini, defaulting to 80. The boolean option to turn redirection on has been changed to REDIRECT_OTHER_PORT to be logically consistent with the new port option. Signed-off-by: Mike Fellows <mike.fellows@shaw.ca>
* Support default private when creating or migrating repository (#3239)Lunny Xiao2017-12-201-0/+2
| | | | | | | | | | * support default private when creating or migrating repository * fix fmt * use string constants on repository default private in app.ini * fix fmt