summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix approvals limitation (#5521)Lunny Xiao2018-12-112-3/+6
|
* fix permission check on api create org (#5523)Lunny Xiao2018-12-111-1/+1
|
* fix clone wiki failed via ssh (#5503)Lunny Xiao2018-12-114-4/+76
|
* fix adding reaction fail for read permission (#5515)Lunny Xiao2018-12-111-2/+2
|
* add git protocol v2 support via SSH on Docker image (#5520)Lunny Xiao2018-12-111-0/+2
| | | | | | * add git protocol v2 support via SSH on Docker image * remove new layer on dockerfile
* Fix the Let's Encrypt handler by listening on a valid address (#5525)Greg Karékinian2018-12-111-1/+7
| | | | | | | | | | | | | | | | | | | * Fix the Let's Encrypt handler by listening on a valid address Also handle errors in the HTTP server go routine, return a fatal error when something goes wrong. Thanks to @gbl08ma for finding the actual bug Here is an example of the error handling: 2018/12/11 14:23:07 [....io/gitea/cmd/web.go:87 func1()] [E] Failed to start the Let's Encrypt handler on port 30: listen tcp 0.0.0.0:30: bind: permission denied Closes #5280 * Fix a typo
* Approvals at Branch Protection (#5350)Jonas Franz2018-12-1113-41/+251
| | | | | | | | | | | | | | | | | | | | | | * 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>
* Fixing MSSQL timestamp type (#5511)Christopher2018-12-111-1/+1
| | | | | | MSSQL is using the wrong type here which results in a strconv.ParseInt: parsing "2018-12-07T00:00:00Z": invalid syntax error. The added datediff(SECOND, '19700101', x) results in the unix timestamp to be returned. Signed-off-by: Christopher Dziomba <christopher.dziomba@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2018-12-111-0/+6
|
* fix code review on mssql (#5502)Lunny Xiao2018-12-111-7/+19
|
* [skip ci] Updated translations via CrowdinGiteaBot2018-12-102-0/+3
|
* fix forgot deletion of notification when delete repository (#5506)Lunny Xiao2018-12-101-0/+1
|
* Fix empty wiki (#5504)Lunny Xiao2018-12-091-1/+3
| | | | | | * fix wiki page when wiki path is exist but empty * improve the error check
* backport 1.6.1 changelog (#5507)techknowlogick2018-12-091-0/+10
|
* Improve team members and repositories settings UI (#5457)Lunny Xiao2018-12-096-10/+19
| | | | | | | | | | | | * improve team members and repositories settings UI * use tab on team pages * add default description on team members and repos * add blank on numbers and texts * improve translation
* add tests for api user orgs (#5494)Lunny Xiao2018-12-092-1/+64
| | | | | | * add tests for api user orgs * add permission for admin to list user's orgs even he is a private user of org
* fix topic name length on database (#5493)Lunny Xiao2018-12-082-2/+2
|
* Allow link verification for services like Mastodon (#5481)koyu2018-12-061-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2018-12-041-1/+1
|
* improve the git-scm url's in docs and sample.ini (#5467)Roman2018-12-052-4/+4
| | | | | | | | | | | | | | * 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: replace lint to revive (#5422)Bo-Yi Wu2018-12-032-3/+28
| | | | | | | | * refactor: replace lint to revive * make changes. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* ensure that the `closed_at` is set for closed (#5449)romankl2018-12-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | right now the `closed_at` field for json responses is not filled during the `APIIssue` creation for api responses. For a closed issue you get a result like: ```json "state":"open","comments":0,"created_at":"2018-11-29T16:39:24+01:00", "updated_at":"2018-11-30T10:49:19+01:00","closed_at":null, "due_date":null,"pull_request":null} ``` which has no information about the closing date. (which exists in the db and ui) with this PR the result changes to this: ```json :null,"assignee":null,"assignees":null, "state":"closed", "comments":0,"created_at":"2018-11-29T16:43:05+01:00", "updated_at":"2018-12-02T19:17:05+01:00", "closed_at":"2018-12-02T19:17:05+01:00", "due_date":null,"pull_request":null} ``` fixes: https://github.com/go-gitea/gitea/issues/5446 Signed-off-by: Roman <romaaan.git@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2018-12-021-3/+3
|
* admin should be able to delete repos even if he is not a member of the ↵Lanre Adelowo2018-12-021-1/+1
| | | | organization (#5443)
* [skip ci] Updated translations via CrowdinGiteaBot2018-12-011-0/+12
|
* Removing Labels via EditPullRequest API (#5348)Lucien Kerl2018-12-011-1/+1
| | | | | | | | * added the ability to provide an empty array at the EditPullRequests API to remove all labels Signed-off-by: Lucien Kerl <lucien.kerl@wuerth-it.com> * Update pull.go
* word-break the WebHook url to prevent a ui-break (#5432)romankl2018-11-301-1/+1
| | | | | | | | | | | | | | | right now, the url is displayed with an anchor tag with no classes. If the url is really really long, the url will break out of the containing div and (depending on the url length) the browser shows the horizontal scrollbar. This pr makes use of the already existing css class `dont-break-out` which gives all the anchor the necessary properties to prevent the break. Another solution could be to introduce some classes like `text text-break-word`, but that would duplicate the `dont-break-out` class just for text elements that use the `text` class. fixes: https://github.com/go-gitea/gitea/issues/5416 Signed-off-by: Roman <romaaan.git@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2018-11-3010-14/+44
|
* Fix repository deletion when there is large number of issues in it (#5426)Lunny Xiao2018-11-301-39/+40
|
* [skip ci] Updated translations via CrowdinGiteaBot2018-11-301-0/+2
|
* Allow to add organization members as collaborators on organization owned ↵Lanre Adelowo2018-11-302-14/+0
| | | | | repositories (#4748) repository... Fixes #4507
* [skip ci] Updated translations via CrowdinGiteaBot2018-11-291-0/+1
|
* Remove the required class from optional ssh port in installation page (#5428)romankl2018-11-291-1/+1
| | | | | | | | | | the ssh port is optional during the installation process. The translations even mention that it is optional and can be blank. Right now it has the `required` class which creates the red `*` behind the field caption - used for required fields. If you leave it blank, the SSH option is disabled (not touched by this PR) Signed-off-by: Roman <romaaan.git@gmail.com>
* Upgrade alpine to 3.8 (#5423)techknowlogick2018-11-281-2/+2
|
* Milestone issues and pull requests (#5293)Lunny Xiao2018-11-298-261/+572
| | | | | | | | | | | | * add milestone issues and pulls page instead of redirecting issues page * add milestone when creating issue from milestone page * refactor to merge similiar codes as a new function issues * remove milestone info on milestone issues list * fix missing params
* Git-Trees API (#5403)Kasi Reddy2018-11-284-2/+134
| | | | | | | | | | | | * Git-Trees API * update vendor'd libs * added comments to exported function and formatted. * make fmt * update per @lafirks feedback
* Fix heatmap colors for Chrome/Safari (#5421)Lauris BH2018-11-281-1/+6
|
* Restrict permission check on repositories and fix some problems (#5314)Lunny Xiao2018-11-2880-765/+1351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-286-25/+51
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Implement git refs API for listing references (branches, tags and other) (#5354)Lauris BH2018-11-27268-10/+48603
| | | | | | | | | | | | | | | | * Inital routes to git refs api * Git refs API implementation * Update swagger * Fix copyright * Make swagger happy add basic test * Fix test * Fix test again :)
* Create Progressive Web App (#4730)SohnyBohny2018-11-279-0/+152
| | | | | | | | | | | | | | | | | | | | | | * 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-2718-384/+258
|
* [skip ci] Updated translations via CrowdinGiteaBot2018-11-261-0/+2
|
* Explicitly decide whether to use TLS in mailer's configuration (#5024)Lanre Adelowo2018-11-264-6/+10
| | | | | | | | * explicitly decide on using TLS for mail connections * explicitly decide on using TLS for mail connections * keep compatibility
* fix password variable shadowing (#5405)Lanre Adelowo2018-11-261-1/+2
|
* show only opened milestones on issues page milestone filter (#5051)Lanre Adelowo2018-11-263-6/+6
| | | | | | | | | | | | | | * show only opened milestones on issues page milestone filter * update Godoc * update Godoc everywhere * update swagger * use false instead of 0 * Add seccond ordering by ID for milestones where no deadline is set
* Notes on upgrading docker installation (#5395)Ryan Halliday2018-11-251-0/+13
| | | | | | | | * Notes on upgrading docker installation Basis from [gogs/gogs](https://github.com/gogs/gogs/blob/master/docker/README.md) * Feedback from @sapk to use docker-compose only
* Fix dependent issue searching when gitea is run in subpath (#5392)Lauris BH2018-11-252-2/+2
|
* Fix typos in configuration (#5398)Patrick Lühne2018-11-251-4/+4
|
* Don't force a password change for the admin user when creating an account ↵Lanre Adelowo2018-11-251-0/+6
| | | | | | | | via cli (#5391) * don't force a password change for the admin user * don't totally dicard -must-change-password flag if creating the first (admin) user via the cli. Use flag if present but make sure to default to not forcing a password update