summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* API: '/orgs/:org/repos': return private repos with read access (#5310) ↵Daniel Balko2018-11-232-19/+46
| | | | | (#3829) (#5383) Signed-off-by: Daniel Balko <inxonic+github@gmail.com>
* [website] file rendering through external binaries (#5387)Juan Pablo Santos Rodríguez2018-11-231-0/+70
| | | | | | | | * #3758: [doc] file rendering through external binaries * fix subsections markup * include proposed changes from PR review
* [skip ci] Updated translations via CrowdinGiteaBot2018-11-231-0/+1
|
* Backport 1.6.0 changelog to master (#5384)techknowlogick2018-11-231-76/+77
|
* Show review summary in pull requests (#5132)kolaente2018-11-228-2/+179
|
* support envs on external render commands (#5278)Lunny Xiao2018-11-201-5/+17
|
* add api for user to create org (#5268)Lunny Xiao2018-11-204-0/+137
| | | | | | | | | | | | | | | | * add api for user to create org * remove unused blank line on the swagger file end * fix create and add test * fix tests * fix routes of create org API * fix bug * add copyright heads
* dont' send assign webhooks when creating issue (#5365)Lunny Xiao2018-11-201-4/+5
|
* 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
* Add raw blob endpoint to get objects by SHA ID (#5334)Peter Hoffmann2018-11-186-2/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* [skip ci] Updated translations via CrowdinGiteaBot2018-11-181-0/+1
|
* Migration fixes for gogs (0.11.66) to gitea (1.6.0) #5318 (#5341)Florian Eitel2018-11-182-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | * Remove field from migration to support upgrades from older version That will ensure the field does not get queried in the Select if it does not exist yet: ``` [I] [SQL] SELECT "id", "repo_id", "index", "poster_id", "name", "content", "milestone_id", "priority", "assignee_id", "is_closed", "is_pull", "num_comments", "ref", "deadline_unix", "created_unix", "updated_unix [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: pq: column "ref" does not exist ``` see #5318 * Skip remove stale watcher migration if not required Otherwise the migration will fail if executed from a older database version without multiple IssueWatch feature. ``` 2018/11/11 23:51:14 [I] [SQL] SELECT DISTINCT "issue_watch"."user_id", "issue"."repo_id" FROM "issue_watch" INNER JOIN issue ON issue_watch.issue_id = issue.id WHERE (issue_watch.is_watching = $1) LIMIT 50 []int [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: pq: relation "issue_watch" does not exist ``` see #5318
* Set ACL on uploads (#5344)techknowlogick2018-11-161-0/+3
| | | To support https://github.com/go-gitea/infrastructure/pull/39
* [skip ci] Updated translations via CrowdinGiteaBot2018-11-161-0/+1
|
* added the ability to set labels on the "edit pull request" api (#5347)Lucien Kerl2018-11-161-0/+12
| | | Signed-off-by: Lucien Kerl <lucien.kerl@wuerth-it.com>
* Implement pasting image from clipboard for browsers that supports that (#5317)Lauris BH2018-11-141-0/+82
|
* [skip ci] Updated translations via CrowdinGiteaBot2018-11-151-1/+2
|
* Block registration based on email domain (#5157)Lanre Adelowo2018-11-147-0/+106
| | | * implement email domain whitelist
* Remove x/net/context vendor by using std package (#5202)Antoine GIRARD2018-11-1040-641/+1489
| | | | | | | | | | | | * Update dep github.com/markbates/goth * Update dep github.com/blevesearch/bleve * Update dep golang.org/x/oauth2 * Fix github.com/blevesearch/bleve to c74e08f039e56cef576e4336382b2a2d12d9e026 * Update dep golang.org/x/oauth2