summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Adds details about what tags can use the Git tags API (#7989)Richard Mahn2019-08-262-4/+4
|
* swagger/fix: []string are not enum by swagger definition (#7916)Antoine GIRARD2019-08-262-21/+21
| | | | | | | | * []string are not enum by swagger definition * apply suggestion of @guillep2k * re-generate swagger file
* API method to list all commits of a repository (#6408)Mike Schwörer2019-08-266-26/+392
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added API endpoint ListAllCommits (/repos/{owner}/{repo}/git/commits) Signed-off-by: Mike Schwörer <mailport@mikescher.de> * Fixed failing drone build Signed-off-by: Mike Schwörer <mailport@mikescher.de> * Implemented requested changes (PR reviews) Signed-off-by: Mike Schwörer <mailport@mikescher.de> * gofmt Signed-off-by: Mike Schwörer <mailport@mikescher.de> * Changed api route from "/repos/{owner}/{repo}/git/commits" to "/repos/{owner}/{repo}/commits" * Removed unnecessary line * better error message when git repo is empty * make generate-swagger * fixed removed return * Update routers/api/v1/repo/commits.go Co-Authored-By: Lauris BH <lauris@nix.lv> * Update routers/api/v1/repo/commits.go Co-Authored-By: Lauris BH <lauris@nix.lv> * go fmt * Refactored common code into ToCommit() * made toCommit not exported * added check for userCache == nil
* Run CORS handler first for /api routes (#7967)Tamal Saha2019-08-262-9/+8
| | | Signed-off-by: Tamal Saha <tamal@appscode.com>
* [Branch View] show "New Pull Request" Button only if posible (#7977)65432019-08-263-24/+19
| | | | | | | | * add check Commits Ahead is gt 0 * code format to start drone-ci test again and formate code is also nice :)
* Include description in repository search. (#7942)David Svantesson2019-08-2511-73/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add description in repository search. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Refactor SearchRepositoryByName with a general function SearchRepository Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Allow to specify if description shall be included in API repo search. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add new app.ini setting for whether to search within repo description. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Search keyword in description (if setting enabled) on: - Explore page - Organization profile page - User profile page - Admin repo page Do not search keyword in description on: - Any non-keyword search (not relevant) - Incremental search (uses API) Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Put parameters related to keyword directly after it Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add test cases for including (and not including) repository description in search. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Rename test function from TestSearchRepositoryByName to TestSearchRepository. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Make setting SEARCH_REPO_DESCRIPTION default to true Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Abort syncrhonization from LDAP source if there is some error. (#7960)David Svantesson2019-08-242-6/+11
| | | Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add support for DEFAULT_ORG_MEMBER_VISIBLE (#7669)guillep2k2019-08-245-7/+24
| | | | | | | | | | | | * Add support for DEFAULT_ORG_MEMBER_VISIBLE * Correct formatting * Improved description in cheat sheet. * Add test for DefaultOrgMemberVisible * Remove dead code
* Move database settings from models to setting (#7806)Lunny Xiao2019-08-2435-377/+424
| | | | | | | | | | | | | | | | | | * move database settings from models to setting * update docs * fix checkout pr * fix tests * fix lint * remove unsupported tidb options * correct wrong variable name * remove tidb totally
* Document possibility to limit API Repo search to topics only. (#7957)David Svantesson2019-08-232-0/+10
| | | Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Allow token as authorization for accessing attachments (#7909)David Svantesson2019-08-241-1/+6
| | | | | | | | * Allow token as authorization for accessing attachments Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Only allow token authentication for attachments if it is a download (GET)
* Support SSH_LISTEN_PORT env var in docker app.ini template (#7829)leigh capili2019-08-243-0/+3
| | | Signed-off-by: leigh capili <leigh@null.net>
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-231-11/+13
|
* Use gitea forked macaron (#7933)Tamal Saha2019-08-23410-13193/+14858
| | | Signed-off-by: Tamal Saha <tamal@appscode.com>
* Change repo search to use exact match for topic search. (#7941)David Svantesson2019-08-221-1/+5
| | | Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add config option and shortcode for Gitea version (#7940)John Olheiser2019-08-2311-18/+20
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add release notes of 1.9.2 (#7934) (#7939)Lunny Xiao2019-08-221-0/+14
| | | | | * Add release notes of 1.9.2 * add missing issue
* don't convert buffer to string (#7115)Lunny Xiao2019-08-221-1/+1
|
* Add file status on API (#7671)Lunny Xiao2019-08-214-41/+85
| | | | | | | | | | * add file status on API * fix tests * fix tests * fix tests
* Revert RenderCommitMessageLink part of #7659 (#7923)Gary Kim2019-08-201-1/+1
| | | | | | | | | | | | | | RenderCommitMessageLink may have the potential for issues and is overall not very intuitive for the user in its current state. This commit will revert the usage of RenderCommitMessageLink that was added in #7659 to work on addressing some of those issues to and merge this feature again in a more polished state. Signed-off-by: Gary Kim <gary@garykim.dev>
* fix bug when migrating a private repository (#7917)Lunny Xiao2019-08-201-1/+12
|
* Fix pull creation with empty changes (#7920)Mura Li2019-08-202-7/+36
| | | | | * Logs the stderr of git-apply * Add an integration test * Skip testPatch when patch is empty
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-201-2/+398
|
* fix wrong sender when send slack webhook (#7918)Lunny Xiao2019-08-201-4/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-204-1/+70
|
* Provide links in commit summaries in commits table/view list (#7659)Gary Kim2019-08-202-4/+4
| | | | | | | | | | | | | | | | | | * Provide links in commit summaries in commits table/view list Signed-off-by: Gary Kim <gary@garykim.dev> * Check that hashes are commits before making them links Signed-off-by: Gary Kim <gary@garykim.dev> * Revert "Check that hashes are commits before making them links" This reverts commit a88564b8bc9872d4bf11062a4ebcb2f42b702200. * Add Commit Message Links to Files List Signed-off-by: Gary Kim <gary@garykim.dev>
* Evaluate emojis in commit messages in list view (#7906)Mario Lubenka2019-08-181-2/+2
| | | Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Fix upload file type check (#7890)Lunny Xiao2019-08-172-10/+54
| | | | | | | | * fix upload file type check * make the function simple and added tests * Update comment as per @silverwind
* Update MAINTAINERS (#7896)Mura Li2019-08-161-0/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-168-8/+0
|
* Reduce quote usage to bypass bug in GIT_SSH_COMMAND (#7893)guillep2k2019-08-161-1/+1
|
* Extract the username and password from the mirror url (#7651)zeripath2019-08-165-10/+69
| | | | | | | | | | | | * Explode out mirror username and password * Update models/repo_mirror.go * Just roundtrip the password * remove unused declaration * Update templates/repo/settings/options.tmpl
* Detect delimiter in CSV rendering (#7869)Norwin2019-08-166-9/+76
| | | | | | | | | | | | | | | | | | | | | * detect csv delimiter in csv rendering fixes #7868 * make linter happy * fix failing testcase & use ints where possible * expose markup type to template previously all markup had the .markdown class, which is incorrect, as it applies markdown CSS & JS logic to CSV rendering * fix build (missing `make css`) * ignore quoted csv content for delimiter scoring also fix html generation
* Add myself to maintainers (#7881)guillep2k2019-08-151-0/+1
| | | | | | | | * Add myself to maintainers * Add missing handle Co-Authored-By: techknowlogick <matti@mdranta.net>
* Remove unique filter from repo indexer analyzer. (#7878)guillep2k2019-08-153-57/+2
| | | | | | | | | | * Remove unique filter from repo indexer analyzer. * Bump repoIndexerLatestVersion to 4 * Corrrect fmt * make vendor to remove unique dependency
* Display ui time with customize time location (#7792)Lunny Xiao2019-08-1577-662/+770
| | | | | | | | | | | | | | | | | | * display ui time with customize time location * fix lint * rename UILocation to DefaultUILocation * move time related functions to modules/timeutil * fix tests * fix tests * fix build * fix swagger
* Convert files to utf-8 for indexing (#7814)guillep2k2019-08-1513-166/+371
| | | | | | | | | | | | | | * Convert files to utf-8 for indexing * Move utf8 functions to modules/base * Bump repoIndexerLatestVersion to 3 * Add tests for base/encoding.go * Changes to pass gosimple * Move UTF8 funcs into new modules/charset package
* lfs/lock: round locked_at timestamp to second (#7872)Antoine GIRARD2019-08-152-2/+6
| | | | | | | | * lfs/lock: round locked_at timestamp to second * test returned locked_at values * tests: use time RFC3339
* Add changelog of v1.9.1 (#7859) (#7866)Lunny Xiao2019-08-151-0/+27
| | | | | | | | | | | | | * add changelog of v1.9.1 * Update CHANGELOG.md Co-Authored-By: Lauris BH <lauris@nix.lv> * mention releases build by go1.12.8 * Update CHANGELOG.md Co-Authored-By: Lauris BH <lauris@nix.lv>
* fix non existent milestone with 500 error (#7867)Lanre Adelowo2019-08-141-0/+5
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-141-0/+1
|
* move CreateReview to moduels/pull (#7841)Lunny Xiao2019-08-143-38/+60
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-141-1/+4
|
* Fix local runs of ssh-requiring integration tests (#7855)zeripath2019-08-141-7/+11
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-08-141-4/+4
|
* Attempt to fix hook problem (#7854)zeripath2019-08-143-6/+18
|
* Check commit message hashes before making links (#7713)Gary Kim2019-08-144-16/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Check commit message hashes before making links Previously, when formatting commit messages, anything that looked like SHA1 hashes was turned into a link using regex. This meant that certain phrases or numbers such as `777777` or `deadbeef` could be recognized as a commit even if the repository has no commit with those hashes. This change will make it so that anything that looks like a SHA1 hash using regex will then also be checked to ensure that there is a commit in the repository with that hash before making a link. Signed-off-by: Gary Kim <gary@garykim.dev> * Use gogit to check if commit exists This commit modifies the commit hash check in the render for commit messages to use gogit for better performance. Signed-off-by: Gary Kim <gary@garykim.dev> * Make code cleaner Signed-off-by: Gary Kim <gary@garykim.dev> * Use rev-parse to check if commit exists Signed-off-by: Gary Kim <gary@garykim.dev> * Add and modify tests for checking hashes in html link rendering Signed-off-by: Gary Kim <gary@garykim.dev> * Return error in sha1CurrentPatternProcessor Co-Authored-By: mrsdizzie <info@mrsdizzie.com> * Import Gitea log module Signed-off-by: Gary Kim <gary@garykim.dev> * Revert "Return error in sha1CurrentPatternProcessor" This reverts commit 28f561cac46ef7e51aa26aefcbe9aca4671366a6. Signed-off-by: Gary Kim <gary@garykim.dev> * Add debug logging to sha1CurrentPatternProcessor This will log errors by the git command run in sha1CurrentPatternProcessor if the error is one that was unexpected. Signed-off-by: Gary Kim <gary@garykim.dev>
* Import topics during migration (#7851)Antoine GIRARD2019-08-148-0/+34
| | | | | | | | * add GetTopics interface * CreateTopics * remove un-needed comment
* Update golangci-lint to v1.17.1 (#7848)techknowlogick2019-08-132-2/+5
|
* Update app.ini.sample (#7816)clavinet2019-08-131-1/+1
| | | grammar fix