summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* Support CORS headers to git smart http protocol (#5719)Lunny Xiao2019-01-141-18/+20
|
* Prioritize "readme.md" (#5691)Khaled Hamed2019-01-142-2/+29
| | | | | | | | * prioritize readme.md * Improve IsReadmeFile * Add more tests
* Discord Oauth2 support (#4476)techknowlogick2019-01-131-0/+3
| | | | | | | | | | | | | | * add discord auth * add vendor for discord * fix syntax error * make fmt * update version of goth in use * update markbates/goth
* Refactor mail notification (#5110)Lunny Xiao2019-01-135-46/+185
| | | | | | | | * mail notification implement interface * fix file comment year * use NullNotifier as parent struct of notifiers
* When redirecting clean the path to avoid redirecting to //www.othersite.com ↵zeripath2019-01-091-1/+1
| | | | | | | (#5669) Fix #5627 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Allow for user specific themes (#5668)Lanre Adelowo2019-01-093-4/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Synchronize SSH keys on login with LDAP + Fix SQLite deadlock on ldap ssh ↵zeripath2018-12-271-7/+9
| | | | | | | | key deletion (#5557) * Synchronize SSH keys on login with LDAP * BUG: Fix hang on sqlite during LDAP key deletion
* LDAP via simple auth separate bind user and search base (#5055)Tony Homrich2018-12-271-11/+29
|
* Add rebase with merge commit merge style (#3844) (#4052)Julian2018-12-271-1/+2
| | | Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
* fix indexer reindex bug when gitea restart (#5563)Lunny Xiao2018-12-192-8/+19
| | | | | | * fix issue indexer bug reindex when restart gitea * also fix code indexer reindex when gitea restart
* fix lfs version check warning log when using ssh protocol (#5501)Lunny Xiao2018-12-191-21/+21
|
* Support reverse proxy providing email (#5554)zeripath2018-12-182-10/+21
| | | This PR implements #2347
* fix clone wiki failed via ssh (#5503)Lunny Xiao2018-12-111-0/+33
|
* Approvals at Branch Protection (#5350)Jonas Franz2018-12-111-7/+10
| | | | | | | | | | | | | | | | | | | | | | * Add branch protection for approvals Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add required approvals Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing comments and fmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add type = approval and group by reviewer_id to review * Prevent users from adding negative review limits * Add migration for approval whitelists Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Restrict permission check on repositories and fix some problems (#5314)Lunny Xiao2018-11-285-134/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix units permission problems * fix some bugs and merge LoadUnits to repoAssignment * refactor permission struct and add some copyright heads * remove unused codes * fix routes units check * improve permission check * add unit tests for permission * fix typo * fix tests * fix some routes * fix api permission check * improve permission check * fix some permission check * fix tests * fix tests * improve some permission check * fix some permission check * refactor AccessLevel * fix bug * fix tests * fix tests * fix tests * fix AccessLevel * rename CanAccess * fix tests * fix comment * fix bug * add missing unit for test repos * fix bug * rename some functions * fix routes check
* Explicitly disable Git credential helper (#5367)Michael Kuhn2018-11-281-17/+12
| | | | | | | | | | | | | | | | | | | | | | | | | * Explicitly disable Git credential helper If the user running Gitea has configured a credential helper, Git credentials might leak out of Gitea. There are two problems with credential helpers when combined with Gitea: 1. Credentials entered by a user when doing a migration or setting up a mirror will end up in the credential store. In the worst case, this is the plain text file ~/.git-credentials. 2. Credentials in the credential store will be used for migrations and mirrors by all users. For example, if user A sets up a mirror, their credentials will be stored. If user B later sets up a mirror from the same host and does not enter any credentials, user A's credentials will be used. This PR prepends -c credential.helper= to all Git commands to clear the list of helpers. This requires at least Git version 2.9, as previous versions will try to load an empty helper instead. For more details, see https://github.com/git/git/commit/24321375cda79f141be72d1a842e930df6f41725 * Update git module
* Create Progressive Web App (#4730)SohnyBohny2018-11-272-0/+21
| | | | | | | | | | | | | | | | | | | | | | * Create manifest and serviceworker * Create templates and add AppSubUrl * Add JSRenderer * fix ctx type * Add JSRenderer to static.go * Complete adding {{AppSubUrl}} * Add more fonts to urlsToCache * Add 512px and 192px icons * Hardcode font MD5 * Default theme doesn't have a specific CSS file
* Refactor heatmap to vue component (#5401)Lauris BH2018-11-272-5/+0
|
* Explicitly decide whether to use TLS in mailer's configuration (#5024)Lanre Adelowo2018-11-262-3/+4
| | | | | | | | * explicitly decide on using TLS for mail connections * explicitly decide on using TLS for mail connections * keep compatibility
* support envs on external render commands (#5278)Lunny Xiao2018-11-201-5/+17
|
* Add raw blob endpoint to get objects by SHA ID (#5334)Peter Hoffmann2018-11-181-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add raw blob endpoint This should make it possible to download raw blobs directly from /:repo/:username/raw/blob/:sha1 URLs. * fix: Make it work * As an SHA-ID is no path getRefNameFromPath can't be used to verify file specifying parameter * added relevant change in go-gitea/git #132 Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de> * Update Gopkg.lock Can't update all vendors due to errors Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de> * style: Add Gitea copyright header * feat: Added integration test for /repo/u/r/raw/blob * fix: correct year in copyright header
* Block registration based on email domain (#5157)Lanre Adelowo2018-11-143-0/+95
| | | * implement email domain whitelist
* Remove maxlines option for file logger (#5282)Lauris BH2018-11-072-22/+3
|
* Prometheus endpoint (#5256)Stanislav2018-11-042-0/+310
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix #5226 by adding CSRF checking to api reqToken and add CSRF to the POST ↵zeripath2018-11-031-0/+13
| | | | | | | | | | header for deadline (#5250) * Add CSRF checking to reqToken and place CSRF in the post for deadline creation Fixes #5226, #5249 * /api/v1/admin/users routes should have reqToken middleware
* Create AuthorizedKeysCommand (#5236)zeripath2018-11-011-17/+19
|
* Fix markdown image with link (#4675)L.E.R2018-10-302-22/+21
| | | | | | | | | | * Fix markdown image with link * Add gitea copyright notice * add a test for markdown image with link * remove svg related variables
* Pass link prefixes to external markup parsers (#5201)Nicolas Lenz2018-10-301-0/+5
| | | | | | | | | | | | | | * Pass environment variables for URL prefixes to external markup parser Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com> * Document external markup link prefix environment variables Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com> * Run format on link prefix changes Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com>
* Make gitea serv use api/internal (#4886)Antoine GIRARD2018-10-303-12/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Start to move to internal/private * Add GetPublicKeyByID * Add HasDeployKey * Add private.UpdateDeployKeyUpdated * Add private.GetUserByKeyID * Add private.AccessLevel * Add private.CheckUnitUser * Fix mistakes I made * Some cleaning + moving code to separate files * Fix error handling * Remove useless error handling for setup * lint: fix comment on exported func * fix copyright header * Fix order of args
* Serve audio files using HTML5 audio tag (#5221)Jonas Bröms2018-10-301-0/+5
| | | | | | * Serve audio files using HTML5 audio tag * Correct copy paste error
* Set heatmap color range configurable (#5165)Antoine GIRARD2018-10-242-0/+5
|
* User action heatmap (#5131)kolaente2018-10-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added basic heatmap data * Added extra case for sqlite * Built basic heatmap into user profile * Get contribution data from api & styling * Fixed lint & added extra group by statements for all database types * generated swagger spec * generated swagger spec * generated swagger spec * fixed swagger spec * fmt * Added tests * Added setting to enable/disable user heatmap * Added locale for loading text * Removed UseTiDB * Updated librejs & moment.js * Fixed import order * Fixed heatmap in postgresql * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: kolaente <konrad@kola-entertainments.de> * Added copyright header * Fixed a bug to show the heatmap for the actual user instead of the currently logged in * Added integration test for heatmaps * Added a heatmap on the dashboard * Fixed timestamp parsing * Hide heatmap on mobile * optimized postgresql group by query * Improved sqlite group by statement
* Add comment replies (#5104)Jonas Franz2018-10-221-0/+1
| | | | | | * Add comment replies * Replace reviewID with review.ID
* Remove check for negative length (#5120)Oleg Kovalov2018-10-202-2/+2
|
* Give user a link to create PR after push (#4716)Julien Tant2018-10-201-0/+68
| | | | | | | | * Give user a link to create PR after push * Forks now create PR in the base repository + make sure PR creation is allowed * fix code style
* Use type switch (#5122)Oleg Kovalov2018-10-192-24/+24
|
* Add notification interface and refactor UI notifications (#5085)Lunny Xiao2018-10-183-28/+330
| | | | | | | | * add notification interface and refactor UI notifications * add missing methods on notification interface and notifiy only issue status really changed * implement NotifyPullRequestReview for ui notification
* Use native go method to get current user rather than environment variable ↵SagePtr2018-10-182-10/+48
| | | | | | | | (#4930) * Use native go method to get current user rather than environment var * Use t.Skip instead of return in test
* Detect charset and convert non UTF-8 files for display (#4950)Lauris BH2018-09-292-2/+40
| | | | | | | | | | | | | | * Detect charset and convert non UTF-8 files for display * Refactor and move function to correct module * Revert unrelated changes * More unrelated changes * Duplicate content for small text to have better encoding detection * Check if original content is valid before duplicating it
* Allow admin toggle forcing a password change for newly created users (#4563)Lanre Adelowo2018-09-131-6/+7
|
* Force user to change password (#4489)Lanre Adelowo2018-09-132-4/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * redirect to login page after successfully activating account * force users to change password if account was created by an admin * force users to change password if account was created by an admin * fixed build * fixed build * fix pending issues with translation and wrong routes * make sure path check is safe * remove unneccessary newline * make sure users that don't have to view the form get redirected * move route to use /settings prefix so as to make sure unauthenticated users can't view the page * update as per @lafriks review * add necessary comment * remove unrelated changes * support redirecting to location the user actually want to go to before being forced to change his/her password * run make fmt * added tests * improve assertions * add assertion * fix copyright year Signed-off-by: Lanre Adelowo <yo@lanre.wtf>
* Fix: Let's Encrypt configuration settings (#4911)Drew Bowering2018-09-121-2/+2
| | | ENABLE_LETSENCRYPT and LETSENCRYPT_ACCEPTTOS were not being properly loaded from the config file, always resulting in the default settings being in place.
* Enforce token on api routes [fixed critical security issue #4357] (#4840)B-OnTheGo2018-09-101-1/+2
|
* Slack webhook channel name cannot be empty or just contain an hashtag (#4786)Lanre Adelowo2018-09-101-0/+7
|
* Add push webhook support for mirrored repositories (#4127)Lauris BH2018-09-061-0/+2
|
* Fix redirect with non-ascii branch names (#4764) (#4810)SagePtr2018-09-061-1/+1
| | | | | | | | * Fix redirect with non-ascii branch names (#4764) * Add integration tests for non-ascii branch redirect * Fix mysql test and coverage test
* Fix trimming of markup section names (#4863)Nicolas Lenz2018-09-031-1/+1
| | | Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com>
* Upgrade images in .drone.yml to more recent versions (#4819)techknowlogick2018-08-292-10/+10
|
* Hide home button when landing page is not set to home (#4651)Piotr Orzechowski2018-08-261-0/+5
|
* Disable 'May Import Local Repository' when is disabled by setting (Issue ↵EnricoFerro2018-08-241-0/+3
| | | | #4779) (#4780)