]>
source.dussan.org Git - gitea.git/log
Lunny Xiao [Sun, 9 Dec 2018 00:57:49 +0000 (08:57 +0800)]
fix topic name length on database (#5493) (#5495)
romankl [Sun, 2 Dec 2018 22:50:47 +0000 (23:50 +0100)]
ensure that the `closed_at` is set for closed (#5450)
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>
Lanre Adelowo [Sun, 2 Dec 2018 18:07:20 +0000 (19:07 +0100)]
Admin should be able to delete repos even if he is not a member of the organization (#5443) (#5447)
romankl [Sun, 2 Dec 2018 15:47:45 +0000 (16:47 +0100)]
word-break the WebHook url to prevent a ui-break (#5445)
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>
Lunny Xiao [Fri, 30 Nov 2018 14:38:35 +0000 (22:38 +0800)]
Fix repository deletion when there is large number of issues in it (#5426) (#5434)
Lauris BH [Mon, 26 Nov 2018 00:27:17 +0000 (02:27 +0200)]
Fix dependent issue searching when gitea is run in subpath (#5392) (#5400)
Daniel Balko [Sat, 24 Nov 2018 11:14:27 +0000 (12:14 +0100)]
Backported #5383 on v1.6: API: '/orgs/:org/repos': return private repos with read access (#5310) (#3829) (#5393)
Signed-off-by: Daniel Balko <inxonic+github@gmail.com>
Lunny Xiao [Fri, 23 Nov 2018 03:53:58 +0000 (11:53 +0800)]
add changelog of v1.6.0 (#5379)
* add changelog of v1.6.0
* improve changelog
Lunny Xiao [Wed, 21 Nov 2018 15:12:17 +0000 (23:12 +0800)]
dont' send assign webhooks when creating issue (#5365) (#5369)
Florian Eitel [Sun, 18 Nov 2018 20:34:14 +0000 (21:34 +0100)]
Migration fixes 5318 1.6 backport (#5355)
* 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
Lunny Xiao [Sun, 11 Nov 2018 17:43:56 +0000 (01:43 +0800)]
Fix create team, update team missing units (#5188) (#5313)
Lauris BH [Sat, 10 Nov 2018 14:12:58 +0000 (16:12 +0200)]
Fix file edit change preview functionality (#5300) (#5311)
Lunny Xiao [Fri, 9 Nov 2018 09:46:38 +0000 (17:46 +0800)]
fix bug when users have serval teams with different units on different repositories (#5307) (#5308)
Lauris BH [Fri, 9 Nov 2018 05:45:50 +0000 (07:45 +0200)]
Fix U2F if gitea is configured in subpath (#5302) (#5306)
Lauris BH [Thu, 8 Nov 2018 22:47:24 +0000 (00:47 +0200)]
Fix markdown image with link (#4675) (#5299)
* Fix markdown image with link
* Add gitea copyright notice
* add a test for markdown image with link
* remove svg related variables
Lauris BH [Thu, 8 Nov 2018 22:20:10 +0000 (00:20 +0200)]
Add changelog for 1.5.3 release (#5227) (#5298)
Lauris BH [Wed, 7 Nov 2018 07:14:44 +0000 (09:14 +0200)]
Remove maxlines option for file logger (#5282) (#5287)
Lauris BH [Wed, 7 Nov 2018 04:50:52 +0000 (06:50 +0200)]
Backport fix broken translation (#5284)
techknowlogick [Sun, 4 Nov 2018 22:07:08 +0000 (17:07 -0500)]
1.6.0-RC2 Changelog (#5275)
zeripath [Sun, 4 Nov 2018 15:42:15 +0000 (15:42 +0000)]
Backport #5250 on v1.6: Fix Issue 5249 and protect /api/v1/admin routes with CSRF token (#5272)
* 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
kolaente [Sat, 3 Nov 2018 21:43:11 +0000 (22:43 +0100)]
Backported wrong api request url for instances running in subfolders (#5247) (#5261)
Peter Hoffmann [Thu, 1 Nov 2018 15:24:23 +0000 (16:24 +0100)]
fix: Accept web-command cli flags if web-command is commited (#5245)
* Added flags of default cmd CmdWeb to app-wide flags
* If command *is* specified app-wide flags are ignored
Backport of #5200
Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de>
Lunny Xiao [Thu, 1 Nov 2018 00:21:31 +0000 (08:21 +0800)]
This commit will reduce join star, repo_topic, topic tables on repo search, so that fix extra columns problem on mssql (#5136) (#5229)
* This commit will reduce join star, repo_topic, topic tables on repo search, so that fix extra columns problem on mssql
* fix tests
Lunny Xiao [Wed, 31 Oct 2018 12:23:13 +0000 (20:23 +0800)]
fix data race on migrate repository (#5224) (#5230)
Peter Hoffmann [Tue, 30 Oct 2018 15:14:12 +0000 (16:14 +0100)]
fix: Add secret to all webhook's payload where it has been missing (#5208)
* Updated dependency manager via `dep ensure -update code.gitea.io/sdk`
* Gopkg.toml was not changed as sdk version is set to "master"
* affects webhooks for: Delete, Fork, IssueComment, Release
* also contains changes from go-gitea/go-sdk#125 and hence a swagger update
Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de>
Resolves: #4732, #5173
Lunny Xiao [Tue, 30 Oct 2018 06:21:55 +0000 (14:21 +0800)]
fix sqlite lock (#5210) (#5223)
Kim "BKC" Carlbäcker [Tue, 30 Oct 2018 05:36:50 +0000 (06:36 +0100)]
Update go-macaron/session to latest mast to fix RCE-bug (#5195)
Lunny Xiao [Tue, 30 Oct 2018 01:20:18 +0000 (09:20 +0800)]
Fix race on updatesize (#5190) (#5215)
* fix race on updatesize
* fix more repoPath
Rodrigo Villablanca Vásquez [Mon, 29 Oct 2018 19:56:21 +0000 (16:56 -0300)]
fix to 3819 - Backport (#5219)
Lunny Xiao [Mon, 29 Oct 2018 18:10:51 +0000 (02:10 +0800)]
fix sqlite and mssql lock (#5214) (#5218)
Lunny Xiao [Thu, 25 Oct 2018 14:30:25 +0000 (22:30 +0800)]
Fix sqlite lock (#5176) (#5179)
* fix sqlite lock
* fix sqlite lock on getUnitType
Jonas Franz [Tue, 23 Oct 2018 14:38:06 +0000 (16:38 +0200)]
Add comment replies (#5147)
* Add comment replies
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Use review.ID instead
Signed-off-by: Jonas Franz <info@jonasfranz.software>
Filip Navara [Mon, 22 Oct 2018 18:46:47 +0000 (20:46 +0200)]
Fix SQL quoting (#5137)
`show` is keyword in MySQL and has to be quoted to reference a column name. Use grave accents (ASCII code 96) for quoting to match rest of the source code. It's non-standard SQL, but it's supported by SQLite and MySQL.
Signed-off-by: Filip Navara <navara@emclient.com>
kolaente [Thu, 18 Oct 2018 01:57:35 +0000 (03:57 +0200)]
Fix regex to support optional end line of old section in diff hunk (#5097)
+ Named groups in reges for easier group parsing
BetaCat [Wed, 17 Oct 2018 18:19:04 +0000 (02:19 +0800)]
ZH-CN translation of Usage part (#5086)
GiteaBot [Wed, 17 Oct 2018 17:07:45 +0000 (17:07 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Wed, 17 Oct 2018 17:05:49 +0000 (01:05 +0800)]
Add change log for 1.6.0-rc1 (#5095)
* add change log for 1.6.0-rc1
* Fix some uppercases
GiteaBot [Wed, 17 Oct 2018 11:23:21 +0000 (11:23 +0000)]
[skip ci] Updated translations via Crowdin
BetaCat [Wed, 17 Oct 2018 11:21:20 +0000 (19:21 +0800)]
ZH-CN translation of Advanced part (#5090)
Lauris BH [Tue, 16 Oct 2018 20:50:11 +0000 (23:50 +0300)]
Update process to include tag vX.Y.0-dev on master branch (#5091)
BetaCat [Mon, 15 Oct 2018 04:13:21 +0000 (12:13 +0800)]
CN translation of README (#5050)
Lunny Xiao [Mon, 15 Oct 2018 03:52:52 +0000 (11:52 +0800)]
fix release creation via API (#5076)
* fix release creation via API
* fix release create tests
Lauris BH [Fri, 12 Oct 2018 20:49:27 +0000 (23:49 +0300)]
Fix dep for actual goth version used in dep lock file (#5078)
Lauris BH [Fri, 12 Oct 2018 20:01:41 +0000 (23:01 +0300)]
Fix golint to new URL (#5079)
SagePtr [Wed, 10 Oct 2018 14:13:34 +0000 (16:13 +0200)]
Fixed spelling typos in CONTRIBUTING.md (#5061)
techknowlogick [Tue, 9 Oct 2018 21:08:59 +0000 (17:08 -0400)]
Add HOWTO for releasing Gitea (#5054)
* Add HOWTO for releasing Gitea
Used instructions from: https://github.com/go-gitea/gitea/pull/2609#issuecomment-
352159155
* Update CONTRIBUTING.md
techknowlogick [Tue, 9 Oct 2018 16:29:08 +0000 (12:29 -0400)]
Backport 1.5.2 changelog (#5053)
Lauris BH [Tue, 9 Oct 2018 00:46:23 +0000 (03:46 +0300)]
Fix adding review comment in split view (#5038)
SagePtr [Sat, 6 Oct 2018 21:20:48 +0000 (23:20 +0200)]
Remove links from topics in edit mode (#5026)
SagePtr [Fri, 5 Oct 2018 23:41:09 +0000 (01:41 +0200)]
Fix missing AppSubUrl in few more templates (#5021)
SagePtr [Fri, 5 Oct 2018 17:22:33 +0000 (19:22 +0200)]
Fix missing AppSubUrl in some templates (#5020)
Jonas Franz [Fri, 5 Oct 2018 15:49:30 +0000 (17:49 +0200)]
Hide outdated comments in file view (#5017)
* Hide outdated comments in file view
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add unit test by adding "invalidated" comment to fixtures
Signed-off-by: Jonas Franz <info@jonasfranz.software>
Chih-Hsuan Yen [Fri, 5 Oct 2018 09:06:47 +0000 (17:06 +0800)]
Fix a typo in app.ini.sample (#5015)
Dane [Wed, 3 Oct 2018 14:16:48 +0000 (15:16 +0100)]
Add missing envionment vars for DB with Docker (#5007)
Current docs demonstrate how to configure a database container but don't
explicitly specify that you should add additional environment variables
to the Gitea container to make it use the database. This just
demonstrates the changes required.
Signed-off-by: Dane Elwell <dane.elwell@ukfast.co.uk>
AJ ONeal [Wed, 3 Oct 2018 06:33:46 +0000 (00:33 -0600)]
README: update make command to build full release (#5004)
* update make command to build full release
* use quoted TAGS
`TAGS=bindata` => `TAGS="bindata"`
GiteaBot [Tue, 2 Oct 2018 19:22:42 +0000 (19:22 +0000)]
[skip ci] Updated translations via Crowdin
Mura Li [Tue, 2 Oct 2018 19:20:02 +0000 (03:20 +0800)]
Upgrade gopkg.in/testfixtures.v2 (#4999)
GiteaBot [Sat, 29 Sep 2018 22:45:10 +0000 (22:45 +0000)]
[skip ci] Updated translations via Crowdin
Lauris BH [Sat, 29 Sep 2018 22:44:06 +0000 (01:44 +0300)]
Disable debug routes unless PPROF is enabled in configuration (#4995)
SagePtr [Sat, 29 Sep 2018 09:57:32 +0000 (11:57 +0200)]
Fix #rrggbbaa color to rgba for better browser compatibility (#4990)
Lauris BH [Sat, 29 Sep 2018 08:33:54 +0000 (11:33 +0300)]
Detect charset and convert non UTF-8 files for display (#4950)
* 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
Iwasa Kazmi [Sat, 29 Sep 2018 06:28:47 +0000 (15:28 +0900)]
Fix layout of the topics editing form (#4971)
* Fix layout of the topic edit.
- made right-hand column wider so that it has enough space for "Done" button.
- fixed issue that jQuery's .show() breaks functionality of the Semantic UI Grid.
* Improve switching visibility of the topic edit
Changes to support old browsers that doesn't support 'flex' keyword.
- Removed style "display: none" from index.css so that
the grid can be displayed without specifying new "display" style.
- Added style "display:none" to the grid element in HTML template
as the initial style.
- In index.js, visibility of the grid element is changed by
set "display:none" style to the element or removing it from the element.
Lanre Adelowo [Fri, 28 Sep 2018 03:59:46 +0000 (04:59 +0100)]
make sure milestone listing is consistent across board (#4987)
silverwind [Thu, 27 Sep 2018 20:58:38 +0000 (22:58 +0200)]
Fix user menu item styling (#4985)
GiteaBot [Thu, 27 Sep 2018 00:51:27 +0000 (00:51 +0000)]
[skip ci] Updated translations via Crowdin
flufmonster [Thu, 27 Sep 2018 00:50:10 +0000 (20:50 -0400)]
Adjust maintainers (#4979)
GiteaBot [Tue, 25 Sep 2018 12:37:54 +0000 (12:37 +0000)]
[skip ci] Updated translations via Crowdin
Lauris BH [Tue, 25 Sep 2018 12:36:45 +0000 (15:36 +0300)]
Fix preview when adding new code review comment (#4975)
zeripath [Fri, 21 Sep 2018 08:56:26 +0000 (09:56 +0100)]
Update Swagger API to match the return of /users/search (#4847)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Wyall [Fri, 21 Sep 2018 01:43:31 +0000 (03:43 +0200)]
ADD: Hint to function of docker version tags (#4967)
I wasn't sure about how tags work, maybe this is interesting for people with less knowledge of docker.
OvermindDL1 [Thu, 20 Sep 2018 19:17:34 +0000 (13:17 -0600)]
Fix #4877 to follow the OpenID Connect Audiences spec (#4878)
Signed-off-by: Gabriel Robertson <overminddl1@gmail.com>
GiteaBot [Thu, 20 Sep 2018 05:50:04 +0000 (05:50 +0000)]
[skip ci] Updated translations via Crowdin
SagePtr [Thu, 20 Sep 2018 05:49:07 +0000 (07:49 +0200)]
Fix null pointer dereference in ParseCommitWithSignature (#4962)
GiteaBot [Wed, 19 Sep 2018 09:03:30 +0000 (09:03 +0000)]
[skip ci] Updated translations via Crowdin
bugreport0 [Wed, 19 Sep 2018 09:02:08 +0000 (11:02 +0200)]
Fix interpunction in English translation. (#4958)
GiteaBot [Tue, 18 Sep 2018 07:05:46 +0000 (07:05 +0000)]
[skip ci] Updated translations via Crowdin
crito [Tue, 18 Sep 2018 07:04:46 +0000 (09:04 +0200)]
fix url in discord webhook (#4953)
opening issues generates a webhook to discord that contains
a url to the gitea api. the message title in discord is therefore
referencing to the api instead of the issue itself.
Lauris BH [Mon, 17 Sep 2018 14:59:49 +0000 (17:59 +0300)]
Code review UI improvements and bugfixes (#4682)
* Code review UI improvements
* More fixes to dark theme
* Style fix
* Fix to allow add code review comments only on review files tab
* More readability dark style fixes
* Fix commenting on deleted files. Fixes #4752
* Fix line blame getting for multiple corner cases
nubenum [Sun, 16 Sep 2018 22:28:23 +0000 (00:28 +0200)]
Fix some issues with special chars in branch names (#3767)
Signed-off-by: Robin Durner <github@nubenum.de>
Lanre Adelowo [Sun, 16 Sep 2018 15:27:43 +0000 (16:27 +0100)]
make sure to catch the right error so it is displayed as an error on the ui not a 500 (#4945)
Bo-Yi Wu [Sat, 15 Sep 2018 10:32:59 +0000 (18:32 +0800)]
fix(topics): don't redirect to expole page. (#4938)
GiteaBot [Sat, 15 Sep 2018 06:30:00 +0000 (06:30 +0000)]
[skip ci] Updated translations via Crowdin
Girish Ramakrishnan [Sat, 15 Sep 2018 06:28:53 +0000 (23:28 -0700)]
doc: add Cloudron package (#4937)
Fixes #4936
Lanre Adelowo [Thu, 13 Sep 2018 16:34:36 +0000 (17:34 +0100)]
Allow admin toggle forcing a password change for newly created users (#4563)
linweijie2012 [Thu, 13 Sep 2018 14:58:01 +0000 (22:58 +0800)]
fix bug forget to remove Stopwatch when remove repository (#4928)
Lanre Adelowo [Thu, 13 Sep 2018 12:04:25 +0000 (13:04 +0100)]
Force user to change password (#4489)
* 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>
SagePtr [Thu, 13 Sep 2018 03:40:35 +0000 (05:40 +0200)]
Fix bug when repo remained bare if multiple branches pushed (#4923)
Bo-Yi Wu [Thu, 13 Sep 2018 02:33:48 +0000 (10:33 +0800)]
feat(repo): support search repository by topic name (#4505)
* feat(repo): support search repository by topic name
GiteaBot [Wed, 12 Sep 2018 14:47:24 +0000 (14:47 +0000)]
[skip ci] Updated translations via Crowdin
techknowlogick [Wed, 12 Sep 2018 14:46:02 +0000 (10:46 -0400)]
Add/remove/list oauth providers via cli (#4591)
Drew Bowering [Wed, 12 Sep 2018 04:06:44 +0000 (22:06 -0600)]
Fix: Let's Encrypt configuration settings (#4911)
ENABLE_LETSENCRYPT and LETSENCRYPT_ACCEPTTOS were not being properly loaded from the config file, always resulting in the default settings being in place.
GiteaBot [Tue, 11 Sep 2018 18:55:32 +0000 (18:55 +0000)]
[skip ci] Updated translations via Crowdin
Fluf [Tue, 11 Sep 2018 18:54:23 +0000 (14:54 -0400)]
Remove zookeeper documentation (#4910)
Fix #3763
GiteaBot [Tue, 11 Sep 2018 14:44:00 +0000 (14:44 +0000)]
[skip ci] Updated translations via Crowdin
techknowlogick [Tue, 11 Sep 2018 14:42:40 +0000 (10:42 -0400)]
Remove traces of embedded TiDB (#4906)
Fix #3357
Lanre Adelowo [Mon, 10 Sep 2018 17:01:49 +0000 (18:01 +0100)]
Add file name and branch to page title (#4902)
B-OnTheGo [Mon, 10 Sep 2018 16:15:52 +0000 (02:15 +1000)]
Enforce token on api routes [fixed critical security issue #4357] (#4840)
Bobonium [Mon, 10 Sep 2018 14:57:41 +0000 (16:57 +0200)]
allow api to create tags for releases (#4890)
GiteaBot [Mon, 10 Sep 2018 14:32:36 +0000 (14:32 +0000)]
[skip ci] Updated translations via Crowdin
Lanre Adelowo [Mon, 10 Sep 2018 14:31:08 +0000 (15:31 +0100)]
Slack webhook channel name cannot be empty or just contain an hashtag (#4786)