Wars and zeripath
c9b564ccdb
fix(docs): Fixed creating Windows service commands ( #8979 )
...
escaping " to \"
2019-11-14 07:57:29 +00:00
techknowlogick and GitHub
04e6d761bc
docs reference latest stable version (1.10.0)
2019-11-14 01:37:12 -05:00
Lunny Xiao and GitHub
dad67cae54
Refactor pull request review ( #8954 )
...
* refactor submit review
* remove unnecessary code
* remove unused comment
* fix lint
* remove duplicated actions
* remove duplicated actions
* fix typo
* fix comment content
2019-11-14 10:57:36 +08:00
John Olheiser and Lauris BH
16a43156a8
Backport the backport of 1.9.6 ( #8970 )
...
Signed-off-by: jolheiser <[email protected] >
2019-11-14 00:11:52 +02:00
zeripath and GitHub
7b75603ffe
Fix intermittent GPG Git test failure ( #8968 )
2019-11-13 21:06:35 +00:00
John Olheiser and zeripath
b41f303ae0
Add CDNJS to script-src CSP ( #8966 )
2019-11-13 20:22:09 +00:00
guillep2k and zeripath
8282f26250
Don't send notification on pending reviews ( #8943 )
2019-11-13 18:36:04 +00:00
3b0303a4fc
Implement documentation search ( #8937 )
...
* Implement documentation search
Signed-off-by: jolheiser <[email protected] >
Co-Authored-By: guillep2k <[email protected] >
2019-11-13 18:03:18 +00:00
Lunny Xiao and Antoine GIRARD
afe50873a5
Move index.js to web_src and use webpack to pack them ( #8598 )
...
* Move index.js to web_src and use webpack
* Fix initHeatMap
* update eslint and move webpack to devDependencies
* update index.js
* add eslint env node
2019-11-13 15:52:13 +01:00
GiteaBot
71395dffd0
[skip ci] Updated translations via Crowdin
2019-11-13 13:16:43 +00:00
Florian Hübner and zeripath
27ac1d0952
add /etc/timezone and /etc/localtime volumes ( #8911 )
...
Passing these volumes to the container enable gitea to use hosts localtime and timezone.
This is a mandatory change when using the "Setup fail2ban" Guide, but it is not described in the documentation.
2019-11-13 12:46:46 +00:00
GiteaBot
be869e8881
[skip ci] Updated translations via Crowdin
2019-11-13 07:22:32 +00:00
zeripath and GitHub
722a7c902d
Add Close() method to gogitRepository ( #8901 )
...
In investigating #7947 it has become clear that the storage component of go-git repositories needs closing.
This PR adds this Close function and adds the Close functions as necessary.
In TransferOwnership the ctx.Repo.GitRepo is closed if it is open to help prevent the risk of multiple open files.
Fixes #7947
2019-11-13 07:01:19 +00:00
guillep2k and Antoine GIRARD
7b97e04555
Convert EOL to UNIX-style to render MD properly ( #8925 )
...
* Convert EOL to UNIX-style to render MD properly
* Update modules/markup/markdown/markdown.go
Co-Authored-By: zeripath <[email protected] >
* Fix lint optimization
* Check for empty content before conversion
* Update modules/util/util.go
Co-Authored-By: zeripath <[email protected] >
* Improved checks and tests
* Add paragraph render test
* Improve speed even more, improve tests
* Small improvement by @gary-kim
* Fix test for DOS
* More improvements
* Restart CI
2019-11-13 03:27:11 +01:00
Antoine GIRARD and zeripath
cda8de2004
Show repository size in repo home page and settings ( #8940 )
...
* feat: display repository size on repo home and settings
* refactor: move repo size up in setting page
2019-11-13 00:45:19 +00:00
zeripath and Antoine GIRARD
253fdfb7fa
Fix Notify Create Ref Error on tag creation ( #8936 )
...
* Fix Notify Create Ref Error on tag creation
* Just use the provided full ref instead of BranchCommit
2019-11-13 00:49:40 +01:00
GiteaBot
fd1b2a31f3
[skip ci] Updated translations via Crowdin
2019-11-12 22:51:56 +00:00
mrsdizzie and zeripath
3ddca774fc
Update Github Migration Tests ( #8938 )
...
Update all Github migration tests to use a new repo created just for
these tests that won't accidentially be modified by regular users
interacting with issues.
Fixes #8895
2019-11-12 22:48:21 +00:00
guillep2k and techknowlogick
4b3fc74937
Fix spelling as suggested by @rmbleeker ( #8934 )
2019-11-12 10:47:29 -05:00
Lunny Xiao and Antoine GIRARD
e4e6d48e30
Move less from public/ to web_src/ so that it will not be packe… ( #8908 )
2019-11-12 10:22:16 +01:00
GiteaBot
a0d4014517
[skip ci] Updated translations via Crowdin
2019-11-12 08:36:01 +00:00
Lunny Xiao and GitHub
bb6879d339
Improve notification ( #8835 )
...
* Improve notifications
* batch load user
* Update notification only when read
* Fix reorder
* fix lint
* fix test
* fix lint
* make function meaningful
* fix comment
2019-11-12 16:33:34 +08:00
GiteaBot
555b1f6581
[skip ci] Updated translations via Crowdin
2019-11-11 17:09:24 +00:00
Jookia and zeripath
173da1b5ae
js: Revert change to click behaviour in forceSelection ( #8921 )
...
Calling .click() in forceSelection() in blur() causes a focus loop,
this needs a proper fix later but for now just revert the change.
2019-11-11 17:06:57 +00:00
GiteaBot
561044e422
[skip ci] Updated translations via Crowdin
2019-11-11 15:19:00 +00:00
John Olheiser and Lunny Xiao
74a6add4d9
Template Repositories ( #8768 )
...
* Start work on templates
Signed-off-by: jolheiser <[email protected] >
* Continue work
Signed-off-by: jolheiser <[email protected] >
* Fix IsTemplate vs IsGenerated
Signed-off-by: jolheiser <[email protected] >
* Fix tabs vs spaces
* Tabs vs Spaces
* Add templates to API & start adding tests
Signed-off-by: jolheiser <[email protected] >
* Fix integration tests
Signed-off-by: jolheiser <[email protected] >
* Remove unused User
Signed-off-by: jolheiser <[email protected] >
* Move template tests to existing repos
Signed-off-by: jolheiser <[email protected] >
* Minor re-check updates and cleanup
Signed-off-by: jolheiser <[email protected] >
* make fmt
Signed-off-by: jolheiser <[email protected] >
* Test cleanup
Signed-off-by: jolheiser <[email protected] >
* Fix optionalbool
Signed-off-by: jolheiser <[email protected] >
* make fmt
Signed-off-by: jolheiser <[email protected] >
* Test fixes and icon change
Signed-off-by: jolheiser <[email protected] >
* Add new user and repo for tests
Signed-off-by: jolheiser <[email protected] >
* Fix tests (finally)
Signed-off-by: jolheiser <[email protected] >
* Update meta repo with env variables
Signed-off-by: jolheiser <[email protected] >
* Move generation to create page
Combine with repo create template
Modify API search to prioritize owner for repo
Signed-off-by: jolheiser <[email protected] >
* Fix tests and coverage
Signed-off-by: jolheiser <[email protected] >
* Fix swagger and JS lint
Signed-off-by: jolheiser <[email protected] >
* Fix API searching for own private repos
Signed-off-by: jolheiser <[email protected] >
* Change wording
Signed-off-by: jolheiser <[email protected] >
* Fix repo search test. User had a private repo that didn't show up
Signed-off-by: jolheiser <[email protected] >
* Another search test fix
Signed-off-by: jolheiser <[email protected] >
* Clarify git content
Co-Authored-By: guillep2k <[email protected] >
* Feedback updates
Signed-off-by: jolheiser <[email protected] >
* Add topics WIP
Signed-off-by: jolheiser <[email protected] >
* Finish adding topics
Signed-off-by: jolheiser <[email protected] >
* Update locale
Signed-off-by: jolheiser <[email protected] >
2019-11-11 23:15:29 +08:00
zeripath and GitHub
74bb292fe3
Migrate temp_repo.go to use git.NewCommand ( #8918 )
...
This PR migrates temp_repo.go to use git.NewCommand instead creating processes by itself - this fixes the problem underlying PR #8905 .
There are other places that run git outside of the controlled locale defined in #8548 but temp_repo.go is the only cause of failure of local testing in cases where English is not the default - implying that error messages from those other commands are not interpreted.
Replaces #8905
2019-11-11 11:46:28 +00:00
David Svantesson and Lunny Xiao
8d9e625f83
Only view branch or tag if it match refType requested. ( #8899 )
...
* only view branch or tag if it match refName.
* remove pointer in method
2019-11-11 15:37:28 +08:00
Lunny Xiao and GitHub
273a24f226
Move notifywatchers from models to notification ( #8907 )
2019-11-11 11:39:41 +08:00
Florian Hübner and techknowlogick
0e281384b5
Fix typo in doc ( #8914 )
...
Fix typo in doc fail2ban-setup.md
2019-11-10 20:33:28 -05:00
zeripath and GitHub
ee1d64ddd1
Stop using git count-objects and use raw directory size for repository ( #8848 )
...
* Migrate from git count-objects to a raw directory size
* As per @guillep2k ignore unusual files
2019-11-10 21:33:47 +00:00
Anthony Vanelverdinghe and techknowlogick
44ec9b933a
Rephrase comment about RuntimeDirectory option ( #8912 )
2019-11-10 11:49:39 -05:00
guillep2k and zeripath
01a4a7cb14
Auto-subscribe user to repository when they commit/tag to it ( #7657 )
...
* Add support for AUTO_WATCH_ON_CHANGES and AUTO_WATCH_ON_CLONE
* Update models/repo_watch.go
Co-Authored-By: Lauris BH <[email protected] >
* Round up changes suggested by lafriks
* Added changes suggested from automated tests
* Updated deleteUser to take RepoWatchModeDont into account, corrected inverted DefaultWatchOnClone and DefaultWatchOnChanges behaviour, updated and added tests.
* Reinsert import "github.com/Unknwon/com" on http.go
* Add migration for new column `watch`.`mode`
* Remove serv code
* Remove WATCH_ON_CLONE; use hooks, add integrations
* Renamed watch_test.go to repo_watch_test.go
* Correct fmt
* Add missing EOL
* Correct name of test function
* Reword cheat and ini descriptions
* Add update to migration to ensure column value
* Clarify comment
Co-Authored-By: zeripath <[email protected] >
* Simplify if condition
2019-11-10 09:22:19 +00:00
zeripath and GitHub
8eeb2877d5
Adjust error reporting from merge failures and use LC_ALL=C for git ( #8548 )
...
There are two major components to this PR:
* This PR handles merge and rebase failures from merging a little more nicely with Flash errors rather a 500.
* All git commands are run in the LC_ALL="C" environment to ensure that error messages are in English. This DefaultLocale is defined in a way that if necessary (due to platform weirdness) it can be overridden at build time using LDFLAGS="-X "code.gitea.io/gitea/modules/git.DefaultLocale=C"" with C changed for the locale as necessary.
2019-11-10 08:42:51 +00:00
6543 and Lunny Xiao
31416a5f4e
Fix API Bug (fail on empty assignees) ( #8873 )
...
* keep sure if assigneeIDs == nil -> do nothing
* fix #8872
* Revert "keep sure if assigneeIDs == nil -> do nothing"
-> go handle it itself preaty well
This reverts commit e72d94129c4666d5151f6131cb2f8c1de127d9d0.
* clarity comparson
Co-Authored-By: guillep2k <[email protected] >
* simplify
* Update models/issue_assignees.go
Co-Authored-By: guillep2k <[email protected] >
* Update issue_assignees.go
* simplify more
* add --if oneAssignee != ""-- again
* Update models/issue_assignees.go
Co-Authored-By: guillep2k <[email protected] >
* CI.restart()
* Update issue_assignees.go
* add Test for GetUserIDsByNames
* add Test for MakeIDsFromAPIAssigneesToAdd
* fix test
2019-11-10 16:07:21 +08:00
Lunny Xiao and GitHub
daab245167
Move code.gitea.io/gitea/routers/api/v1/convert to code.gitea.io/gitea/modules/convert ( #8892 )
...
* Move code.gitea.io/gitea/routers/api/v1/convert to code.gitea.io/gitea/modules/convert
* fix fmt
2019-11-10 12:41:51 +08:00
zeripath and GitHub
1b7402bd1d
Fix issue with user.fullname ( #8902 )
2019-11-09 23:21:53 +00:00
guillep2k and techknowlogick
bb04fb55d7
Enable punctuations ending mentions ( #8889 )
...
* Enable punctuations ending mentions
* Improve tests
2019-11-09 17:12:05 -05:00
mrsdizzie and techknowlogick
c54145174f
Update Github migration test ( #8893 )
...
* Update Github migration test
Earlier today #716 was reopened which updated the modification time for
an old milestone (1.6.0) that we use in testing with the assumption that
it is old and won't change. This breaks all builds now, so remove this
test since we have others that test the same code and this milestone
will likely be updated again as that issue changes etc...
* ci
2019-11-09 15:13:35 -05:00
guillep2k and zeripath
a647a54a08
Leave non-dated issues for last ( #8871 )
2019-11-09 13:09:01 +00:00
GiteaBot
1f3ba6919d
[skip ci] Updated translations via Crowdin
2019-11-09 09:45:09 +00:00
guillep2k and Lunny Xiao
f4937879b0
Fix require external registration password ( #8885 )
...
* Fix require external registration password
* Fix ctx on error condition by @jolheiser
2019-11-09 17:42:34 +08:00
GiteaBot
c15d371939
[skip ci] Updated translations via Crowdin
2019-11-09 03:44:04 +00:00
guillep2k and Lunny Xiao
6e1912c73a
Fix password complexity check on registration ( #8887 )
...
* Fix registration password complexity
* Fix integration to use a complex password ;)
2019-11-09 11:40:37 +08:00
David Svantesson and Lunny Xiao
9ae4c17cb1
Allow to add and remove all repositories to/from team. ( #8867 )
...
* Allow to add and remove all repositories to team.
* Change style, buttons on same row.
* Apply suggestions from code review
Grammar
Co-Authored-By: guillep2k <[email protected] >
* Move set num repos to lower function.
* Make general language sentences
2019-11-09 08:39:37 +08:00
MysticBoy and techknowlogick
d2aee2a3e2
Create third-party-tools.zh-cn.md ( #6303 )
...
* Create third-party-tools.zh-cn.md
* Update third-party-tools.zh-cn.md
* Update third-party-tools.zh-cn.md
2019-11-08 17:32:30 -05:00
Lunny Xiao and techknowlogick
f02138a148
Fix bug when migrate from API ( #8631 )
...
* fix bug when migrate from API
* fix test
* fix test
* improve
* fix error message
2019-11-08 17:21:00 -05:00
Lunny Xiao and techknowlogick
55bdc9aa38
Webhook support custom proxy ( #8760 )
...
* Webhook support custom proxy
* Add glob support on webhook proxy host rules
* fix app.ini.sample
* improve code and app.ini.sample
* update cheetsheet about added webhook options
2019-11-08 16:25:53 -05:00
Lunny Xiao and techknowlogick
016a5d0438
Move some actions to notification/action ( #8779 )
...
* Move some actions to notification/action
* Fix test
* fix test
2019-11-08 15:54:50 -05:00
John Olheiser and techknowlogick
fb459f2c2c
Add password reset to FAQ ( #8883 )
...
* Add password reset to FAQ
Signed-off-by: jolheiser <[email protected] >
* Add links to email setup docs
Signed-off-by: jolheiser <[email protected] >
* Add en-us to email setup
Signed-off-by: jolheiser <[email protected] >
* Update docs/content/doc/help/faq.en-us.md
Co-Authored-By: guillep2k <[email protected] >
* Manually merge changes from @guillep2k and add small changes
Signed-off-by: jolheiser <[email protected] >
2019-11-08 14:44:18 -05:00