6543 and GitHub
1f7187c973
Add missing gitRepo close ( #16896 )
2021-08-31 14:12:37 +08:00
6543 and GitHub
2fc5b08c42
Fix wiki raw commit diff/patch view ( #16891 ) ( #16893 )
2021-08-31 05:01:15 +02:00
95d2744020
Ensure wiki repos are all closed ( #16886 ) ( #16889 )
...
There are multiple places where wiki git repositories are not properly closed.
This PR ensures they are closed.
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: Andrew Thornton <art27@cantab.net >
2021-08-30 23:22:36 +02:00
6543 and GitHub
3107c9dfc3
upgraded github.com/markbates/goth v1.67.1 => v1.68.0 ( #16540 )
2021-07-24 18:16:07 +01:00
a66ff8a210
switch to maintained lib ( #16535 )
...
Co-authored-by: Matti R <matti@mdranta.net >
2021-07-24 11:13:56 -04:00
6543 and GitHub
6df82db0f7
Replace plugins/docker with techknowlogick/drone-dockerin ci ( #16407 ) ( #16409 )
...
* plugins/docker -> techknowlogick/drone-docker
* It is multi-arch
2021-07-12 15:30:55 -04:00
6543 and GitHub
d98694e6ca
Update bluemonday to v1.0.15 ( #16379 ) ( #16380 )
...
* Update bluemonday to v1.0.15 (#16379 )
* Fix TESTS
2021-07-09 02:47:27 +02:00
ac0f452b30
Redirect on bad CSRF instead of presenting bad page ( #14937 ) ( #16378 )
...
The current CSRF handler is a bit harsh with bad CSRF tokens on webpages
I think we can be a little kinder and redirect to base page with a flash error
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2021-07-08 20:12:20 +02:00
7ff8e863a5
Fix error message if user not exist ( #16343 )
...
Co-authored-by: Sergey Dryabzhinsky <sergey@rusoft.ru >
2021-07-05 23:58:47 +03:00
50084daa4c
Fix list_options GetStartEnd ( #16303 ) ( #16305 )
...
end is start + pageSize and not start + page
Co-authored-by: sebastian-sauer <sauer.sebastian@gmail.com >
2021-06-30 00:23:24 +01:00
6543 and GitHub
c7db7438b7
Fix API to return author for author on commits( #16276 ) ( #16277 )
2021-06-27 21:37:42 -04:00
8ac48584ec
Use html.Parse rather than html.ParseFragment ( #16223 ) ( #16225 )
...
* Use html.Parse rather than html.ParseFragment
There have been a few issues with html.ParseFragment - just use html.Parse instead.
* Skip document node
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2021-06-22 09:46:39 +08:00
8cfd6695da
Changelog v1.14.3 ( #16131 )
...
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: zeripath <art27@cantab.net >
2021-06-18 17:25:20 +02:00
6543 and GitHub
f832e8eeea
Fix some API bugs ( #16184 ) ( #16190 )
...
* Fix some API bugs (#16184 )
* Repository object only count releases as releases (fix #16144 )
* EditOrg respect RepoAdminChangeTeamAccess option (fix #16013 )
* adjut to v1.14
2021-06-18 19:47:34 +08:00
ac84bb7183
Fix data URI scramble ( #16098 ) ( #16118 )
...
* Fix data URI scramble (#16098 )
* Removed unused method.
* No prefix for data uris.
* Added test to prevent regressions.
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
2021-06-09 16:31:40 +02:00
3be67e9a2b
Fix http path bug ( #16117 ) ( #16120 )
...
* Fix http path bug
* Add missed request
* add tests
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-06-09 15:58:00 +02:00
1e76f7b5b7
api: fix overly strict edit pr permissions ( #15900 ) ( #16081 )
...
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: Norwin <noerw@users.noreply.github.com >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-06-06 12:22:05 +02:00
2265058c31
git migration: don't prompt interactively for clone credentials ( #15902 ) ( #16082 )
...
* don't prompt interactively for clone credentials
* apply GIT_TERMINAL_PROMPT=0 to all git cmds
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Norwin <noerw@users.noreply.github.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-06-06 14:02:34 +08:00
6543 and GitHub
8c4bf4c3b4
GitHub: migrate draft releases too ( #15884 ) ( #15888 )
...
* GitHub: migrate draft releases too
* refactor
2021-05-16 09:24:28 +02:00
3bcf2e5c18
Close the gitrepo when deleting the repository ( #15876 ) ( #15887 )
...
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2021-05-16 00:45:17 +03:00
6543 and GitHub
c57e908f36
Tests should use test files ( #15801 ) ( #15806 )
2021-05-10 01:39:14 +08:00
1112fef93d
Changelog v1.14.2 ( #15794 )
...
* changelog tool generate
* format & add
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: zeripath <art27@cantab.net >
2021-05-09 11:26:49 +02:00
af11549fb2
Ensure that ctx.Written is checked after issues(...) calls ( #15797 ) ( #15798 )
...
Fix issue noted in #15783
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2021-05-09 09:48:52 +01:00
d644709b22
Exponential Backoff for ByteFIFO ( #15724 ) ( #15793 )
...
This PR is another in the vein of queue improvements. It suggests an
exponential backoff for bytefifo queues to reduce the load from queue
polling. This will mostly be useful for redis queues.
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lauris BH <lauris@nix.lv >
2021-05-08 14:27:00 -04:00
6543 and GitHub
30584a6df8
[API] make change repo settings work on empty repos ( #15778 ) ( #15789 )
...
* API: Fix #15602
* Add TEST
2021-05-08 15:14:42 +02:00
78710946f2
Use pulls in commit graph unless pulls are disabled ( #15734 & #15740 & #15774 ) ( #15775 )
...
* Commit Graph: Pull-Requests should not link to issues (#15734 )
Use `/pulls` and simplify code.
* reverse #15734 partial and comment (#15740 )
* reverse & comment
* Update templates/repo/graph/commits.tmpl
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: zeripath <art27@cantab.net >
* Use pulls in commit graph unless pulls are disabled
Fix #15370
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: KN4CK3R <KN4CK3R@users.noreply.github.com >
Co-authored-by: zeripath <art27@cantab.net >
2021-05-07 15:12:24 -04:00
22d700edfd
Set GIT_DIR correctly if it is not set ( #15751 ) ( #15769 )
...
* Set GIT_DIR correctly if it is not set
* Expand out templates
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2021-05-07 20:01:25 +02:00
2c2a30d6bb
Fix bug where repositories appear unadopted ( #15757 ) ( #15767 )
...
Fix bug where repositories with capital letters in their names appear unadopted.
Fix #15755
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-05-07 17:07:39 +02:00
717b313c34
not show ref-in-new-issue pop when issue was disabled ( #15761 ) ( #15765 )
...
fix #15718
Signed-off-by: a1012112796 <1012112796@qq.com >
Co-authored-by: a1012112796 <1012112796@qq.com >
2021-05-07 16:13:20 +02:00
0a32861b28
Issue list alignment tweaks ( #15483 ) ( #15766 )
...
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
2021-05-07 15:06:19 +02:00
6543 and GitHub
f1e8b8c0d7
Only log Error on getLastCommitStatus error to let pull list still be visible ( #15715 )
2021-05-04 14:03:31 +02:00
15886ce048
Fixed several activation bugs ( #15473 ) ( #15685 )
...
* Removed unneeded form tag.
* Fixed typo.
* Fixed NPE.
* Use better error page.
* Splitted GET and POST.
Co-authored-by: KN4CK3R <KN4CK3R@users.noreply.github.com >
2021-04-30 20:14:36 -04:00
a725d31496
Delete references if repository gets deleted ( #15681 ) ( #15684 )
...
* Remove DeletedBranch and LFSLocks.
* Sort beans.
Co-authored-by: KN4CK3R <KN4CK3R@users.noreply.github.com >
Co-authored-by: zeripath <art27@cantab.net >
2021-05-01 00:09:58 +02:00
8e27f6e814
Fix orphaned objects deletion bug ( #15657 ) ( #15683 )
...
* Fix orphaned objects deletion bug
* extend test
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
2021-04-30 22:27:26 +01:00
6543 and GitHub
3bde297121
[API] pull notification subject status: add "merged" ( #15344 ) ( #15654 )
...
Current subject status can be "", "open" and "closed". This add "merged" to it.
2021-04-28 20:24:56 +01:00
918d3d96ff
Changelog v1.14.1 ( #15498 )
...
* RAW Changelog v1.14.1
* wordings
* Apply suggestions from code review
Co-authored-by: techknowlogick <matti@mdranta.net >
* Update CHANGELOG.md
Co-authored-by: 6543 <6543@obermui.de >
* Update CHANGELOG.md
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: techknowlogick <matti@mdranta.net >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2021-04-15 22:19:09 -04:00
92c91d7d8b
Performance improvement for list pull requests ( #15447 ) ( #15500 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-04-16 01:14:14 +03:00
729fa06468
migration: github: if rate limit is not enabled, ignore it ( #15490 ) ( #15495 )
...
Co-authored-by: Lauris BH <lauris@nix.lv >
2021-04-15 18:24:01 +03:00
6543 and GitHub
c3398906a1
use repo1_bare to test against ( #15402 ) ( #15404 )
2021-04-11 19:48:35 +02:00
6543 and GitHub
55e159ca5f
Changelog v1.14.0 ( #15360 )
...
* clean & merge & update v1.14.0 changelog
* backport v1.13.x changelogs
2021-04-11 06:07:02 +02:00
6543 and GitHub
b072907987
Fix admin user list ( #15358 ) ( #15359 )
...
* Fix `admin user list` (#15358 )
* fix routers/api/v1/repo/issue.go
2021-04-09 12:39:40 +02:00
38d184d518
Fix CanCreateRepo check ( #15311 ) ( #15321 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
2021-04-07 22:14:11 +02:00
80b55263d8
Fix xorm log stack level ( #15285 ) ( #15316 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-04-07 08:36:15 +01:00
32232db55f
Reduce memory usage in testgit ( #15306 ) ( #15310 )
...
* reduce memory use in rawtest
* just use hashsum for diffs
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2021-04-07 11:07:39 +08:00
a8c6a4a70e
Fix bug in Wrap ( #15302 ) ( #15309 )
...
Whilst doing other work I have noticed that there is an issue with Wrap when passing an
http.Handler - the next should be the next handler in line not empty.
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2021-04-06 18:44:24 +02:00
e6050e80f7
Update to bluemonday-1.0.6 ( #15294 ) ( #15297 )
...
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2021-04-06 01:36:58 +01:00
6543 and GitHub
27acf6165e
update changelog for rc2 release ( #15130 )
2021-03-23 15:52:43 -04:00
b5c4cb1bde
Fix bug on avatar middleware ( #15124 ) ( #15126 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-03-23 18:44:37 +00:00
6543 and GitHub
26b98417ad
[Vendor] update gitea-sdk v0.14.0 ( #15103 ) ( #15107 )
...
* upgraded code.gitea.io/sdk/gitea v0.13.2 => v0.14.0
* rm workaround
2021-03-23 10:10:32 +00:00
d770cc9886
Remove possible resource leak ( #15067 ) ( #15082 )
...
* move "copy uploaded lfs files 2 repo" to own function for "defer file.Close()"
* rm type overload
Co-authored-by: zeripath <art27@cantab.net >
2021-03-21 17:07:37 +01:00
7b464fa67b
Fix bug when upload on web ( #15042 ) ( #15054 )
...
* Fix bug when upload on web
* move into own function
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
2021-03-20 09:37:57 +08:00
fcf2c97d39
Changelog for 1.14.0-RC1 ( #14935 )
...
* Changelog for 1.14.0-RC1
* api
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: zeripath <art27@cantab.net >
* Apply suggestions from code review
Co-authored-by: zeripath <art27@cantab.net >
* update
* Apply suggestions from code review
Co-authored-by: techknowlogick <matti@mdranta.net >
* Update CHANGELOG.md
Co-authored-by: techknowlogick <matti@mdranta.net >
* update
* Update CHANGELOG.md
* Apply suggestions from code review
Co-authored-by: zeripath <art27@cantab.net >
* Apply suggestions from code review
* Move things to SECURITY that are SECURITY
Signed-off-by: Andrew Thornton <art27@cantab.net >
* Update CHANGELOG.md
Co-authored-by: Lauris BH <lauris@nix.lv >
* Update CHANGELOG.md
* Apply suggestions from code review
Co-authored-by: Norwin <noerw@users.noreply.github.com >
* Update CHANGELOG.md
Co-authored-by: Kyle D. <kdumontnu@gmail.com >
* sort
* Update CHANGELOG.md
Co-authored-by: Kyle D. <kdumontnu@gmail.com >
* 🚀
* Update date
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: techknowlogick <matti@mdranta.net >
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: Norwin <noerw@users.noreply.github.com >
Co-authored-by: Kyle D. <kdumontnu@gmail.com >
2021-03-19 22:42:57 +02:00
6543 and GitHub
a3a65137ba
Delete Labels & IssueLabels on Repo Delete too ( #15039 )
...
* Doctor: find IssueLabels without existing label
* on Repo Delete: delete labels & issue_labels too
* performance nits
* Add Migration: Delete orphaned IssueLabels
* Migration v174: use Sync2
* USE sess !!!
* better func name
* code format & comment
* RAW SQL
* Update models/migrations/v176.go
* next try?
2021-03-19 21:01:24 +02:00
6543 and GitHub
177da717a7
[API] get pull, return head branch sha, even if deleted ( #14931 )
...
* API: return head branch sha, even if deleted
* relax if ref not resolvable
2021-03-08 21:48:31 +01:00
6543 and GitHub
14d8cb7819
Move Workaround for #12675 into it's own function ( #14922 )
...
* Move Workatround for #12675 into it's own function
* use more reliable solution (as tea do)
2021-03-08 20:00:19 +01:00
6543 and GitHub
ae62bb7b6c
Changelog v1.13.4 ( #14917 ) ( #14920 )
2021-03-08 00:07:02 +01:00
6543 and GitHub
11229ca539
IsUserAllowedToUpdate ignore igonre if user is nil ( #14885 )
2021-03-04 19:27:54 +01:00
8ac1367718
[Docs] Fix how lfs data path is set ( #14855 )
...
* fix docs: lfs data path
* DEPRECATED note
* 已废弃
* better english sentence
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-03-04 18:01:44 +01:00
1d18b76e0e
Add changelog for v1.13.3 ( #14877 ) ( #14883 )
...
* Add changelog for v1.13.3 (#14877 )
Add changelog for v1.13.3
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: techknowlogick <matti@mdranta.net >
* Update Docs
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: techknowlogick <matti@mdranta.net >
2021-03-04 10:00:23 -05:00
6543 and GitHub
a4148c0f12
Repository transfer has to be confirmed, if user can not create repo for new owner ( #14792 )
...
* make repo as "pending transfer" if on transfer start doer has no right to create repo in new destination
* if new pending transfer ocured, create UI & Mail notifications
2021-03-01 01:47:30 +01:00
6543 and GitHub
dc081959db
Fix issue/pul sidebar ( #14826 )
2021-02-28 15:05:55 +01:00
6543 and GitHub
b4b4d765f3
Fix missleading sentence ( #14829 )
2021-02-28 07:54:12 +00:00
6543 and GitHub
8f4d55452a
use gogs.ico to create a better svg for migration page ( #14795 )
2021-02-25 14:13:44 +08:00
6543 and GitHub
5cc1a49b19
Generate man pages ( #13901 )
...
* extend gitignore
* first working draft
* use docs subcomand
* rm config-sheet-sheet-2-man
2021-02-24 16:36:48 -06:00
6543 and GitHub
1d63e17de8
CI: translation update as cron task ( #14774 )
2021-02-23 07:16:02 +08:00
6543 and GitHub
190bd0accd
Export LFS & TimeTracking function status ( #14753 )
2021-02-20 11:17:51 +01:00
6543 and GitHub
25fe60d12f
Update golangci-lint v1.35.2 -> v1.37.0 ( #14747 )
2021-02-19 16:45:23 +01:00
8d5c795cc4
[API] Add Restricted Field to User ( #14630 )
...
* Expose Restricted field for User
* Add Option to Change Restricted on User via adminEditUser API
* Add test who change restricted & test if it changed it ...
* make generate-swagger
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-02-18 16:25:35 +08:00
fe628d8406
Vendor Update ( #14696 )
...
* github.com/yuin/goldmark v1.3.1 -> v1.3.2
* github.com/xanzy/go-gitlab v0.42.0 -> v0.44.0
* github.com/prometheus/client_golang v1.8.0 -> v1.9.0
* github.com/minio/minio-go v7.0.7 -> v7.0.9
* github.com/lafriks/xormstore v1.3.2 -> v1.4.0
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-02-16 22:47:24 -05:00
6543 and GitHub
0a4c2d75cd
rm gogs relict ( #14665 )
2021-02-14 00:07:17 +08:00
9e852edc41
Add v171 (addSortingColToProjectBoard) migration for #14634 ( #14652 )
...
* add v171 Migration for #14634
* NOT NULL
Co-authored-by: Lauris BH <lauris@nix.lv >
2021-02-12 13:01:26 +02:00
ac97ea573c
[Vendor] Update go-redis to v8.5.0 ( #13749 )
...
* Update go-redis to v8.4.0
* github.com/go-redis/redis/v8 v8.4.0 -> v8.5.0
* Apply suggestions from code review
Co-authored-by: zeripath <art27@cantab.net >
* TODO
* Use the Queue termination channel as the default context for pushes
Signed-off-by: Andrew Thornton <art27@cantab.net >
* missed one
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2021-02-10 21:28:32 +00:00
6543 and GitHub
5f248d0df2
[API] Add delete release by tag & fix unreleased inconsistency ( #14563 )
...
* DeleteReleaseByTag delete release not git tags
* Add api to delete tag (without release)
* fix & extend tests
* fix swagger doc
2021-02-07 19:32:18 +01:00
cbe7f5296e
[API] Add affected files of commits to commit struct ( #14579 )
...
* Add files affected by a commit to gitea API -- similar to github
* Add files affected by a commit to gitea API
* Fix stupid error
* Fix other stupid typo
* Generate swagger tmpl
* Comply with convert to git commit refacto
* update swagger docs
* extend test
* format code
* Update integrations/api_repo_git_commits_test.go
* Update modules/convert/git_commit.go
Co-authored-by: Laurent Cahour <laurent.cahour@dont-nod.com >
Co-authored-by: zeripath <art27@cantab.net >
2021-02-07 15:43:40 +01:00
6543 and GitHub
87009ab40a
Reduce data races ( #14549 )
...
* Add race conditions into test
* Fix Race in GetManager()
* DataAsync() use error chan
* just log no chan
* finish
2021-02-03 22:36:38 +01:00
0d1444751f
[API] Add pagination to ListBranches ( #14524 )
...
* make PaginateUserSlice generic -> PaginateSlice
* Add pagination to ListBranches
* add skip, limit to Repository.GetBranches()
* Move routers/api/v1/utils/utils PaginateSlice -> modules/util/paginate.go
* repo_module.GetBranches paginate
* fix & rename & more logging
* better description
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: a1012112796 <1012112796@qq.com >
2021-02-03 20:06:13 +01:00
6543 and GitHub
3f332a9919
Changelog v1.13.2 ( #14535 ) ( #14543 )
2021-02-02 02:19:10 +01:00
6543 and GitHub
6d27703f14
[API] List, Check, Add & delete endpoints for repository teams ( #13630 )
...
* List, Check, Add & delete endpoints for repository teams
* return units on single team responce too
* Add Tests
2021-02-01 22:57:12 +01:00
6543 and GitHub
6fc2d36fb5
rm redirect ( #14534 )
2021-02-01 12:49:25 +08:00
6543 and GitHub
0e0424c8ec
Add Doctor FixWrongUserType ( #14522 )
...
* Add Doctor FixWrongUserType
* use NoAutoTime
2021-01-29 19:30:43 +01:00
6543 and GitHub
2ebe609d65
Fix migration v141 ( #14387 )
...
* Fix mig 141
* Add Migration to fix it
* update null values to false first
* Alter Table if posible
* use dropTableColumns instead of recreateTable
* MySQL use Alter
* Postgres use Alter
* Update models/migrations/v167.go
* Apply suggestions from code review
* use 2x add col & 2x update & 2x drop col
* let sqlite be the only issue
* use recreate since it just WORKS
2021-01-28 23:58:33 +01:00
6543 and GitHub
3599d44399
Extend TestUserOrgs to cover permission cases ( #14495 )
...
* TestMyOrgs: add unauthorized test
* Extend TestUserOrgs, to cover permission cases
2021-01-28 22:40:41 +01:00
6543 and GitHub
99b7af6fc8
Add some Unit-Tests ( #14500 )
...
* fix url
* modules/auth/pa: coverage: 40#.0%
* modules/base coverage: 67.6% -> 89.9%
* modules/cache coverage: 0% -> 12.0%
* modules/convert coverage: 27.1% -> 29.7%
2021-01-28 19:08:11 +01:00
6543 and GitHub
d1353e1f7c
Vendor Update ( #14496 )
...
* update code.gitea.io/sdk/gitea v0.13.1 -> v0.13.2
* update github.com/go-swagger/go-swagger v0.25.0 -> v0.26.0
* update github.com/google/uuid v1.1.2 -> v1.2.0
* update github.com/klauspost/compress v1.11.3 -> v1.11.7
* update github.com/lib/pq 083382b7e6fc -> v1.9.0
* update github.com/markbates/goth v1.65.0 -> v1.66.1
* update github.com/mattn/go-sqlite3 v1.14.4 -> v1.14.6
* update github.com/mgechev/revive 246eac737dc7 -> v1.0.3
* update github.com/minio/minio-go/v7 v7.0.6 -> v7.0.7
* update github.com/niklasfasching/go-org v1.3.2 -> v1.4.0
* update github.com/olivere/elastic/v7 v7.0.21 -> v7.0.22
* update github.com/pquerna/otp v1.2.0 -> v1.3.0
* update github.com/xanzy/go-gitlab v0.39.0 -> v0.42.0
* update github.com/yuin/goldmark v1.2.1 -> v1.3.1
2021-01-28 17:56:38 +01:00
6543 and GitHub
a7cfb9f2c3
Fix JSON Header response ( #14499 )
2021-01-27 15:46:22 -06:00
6543 and GitHub
b2c20b68a0
Print usefull error if SQLite is used in settings but not supported ( #14476 )
...
* move log output to points where they are relefant
* check explicit of sqlite3 in settings
2021-01-27 04:57:18 +01:00
6543 and GitHub
4acb499f30
just overload to not get it by mistake again ... ( #14440 )
2021-01-23 21:33:43 +02:00
a0e424da85
Enhance Ghost comment mitigation Settings ( #14392 )
...
* refactor models.DeleteComment and delete related reactions too
* use deleteComment for UserDeleteWithCommentsMaxDays in DeleteUser
* nits
* Use time.Duration as other time settings have
* docs
* Resolve Fixme & fix potential deadlock
* Disabled by Default
* Update Config Value Description
* switch args
* Update models/issue_comment.go
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2021-01-21 21:56:19 -05:00
81c833d92d
Add support to migrate from gogs ( #14342 )
...
Add support to migrate gogs:
* issues
* comments
* labels
* milestones
* wiki
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Andrew Thornton <art27@cantab.net >
2021-01-21 20:33:58 +01:00
6543 and GitHub
2686e6bbbe
Check if label template exist first ( #14384 )
...
* add check
* refactor
* rollback repo on error after session closed
2021-01-18 21:00:50 +01:00
21da519c0c
Implement ghost comment mitigation ( #14349 )
...
* Implement ghost comment mitigation
Adds a config option USER_DELETE_WITH_COMMENTS_MAX_DAYS to the [service] section. See https://codeberg.org/Codeberg/Discussion/issues/24 for the underlying issue.
* cleanup
* use setting module correctly
* add to docs
Co-authored-by: Moritz Marquardt <git@momar.de >
2021-01-17 21:48:38 +01:00
3091600cc8
KanBan: be able to set default board ( #14147 )
...
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: zeripath <art27@cantab.net >
2021-01-15 22:29:32 +02:00
6543 and GitHub
74a0481586
[Refactor] Passwort Hash/Set ( #14282 )
...
* move SaltGeneration into HashPasswort and rename it to what it does
* Migration: Where Password is Valid with Empty String delete it
* prohibit empty password hash
* let SetPassword("") unset pwd stuff
2021-01-10 20:05:18 +02:00
6b3b6f1833
Add option to change username to the admin panel ( #14229 )
...
Co-authored-by: Bwko <bouwko@gmail.com >
Co-authored-by: techknowlogick <matti@mdranta.net >
Co-authored-by: zeripath <art27@cantab.net >
2021-01-10 14:14:02 +02:00
6543 and GitHub
325add71cf
Add option for administrator to reset user 2FA ( #14243 )
...
* Frontend
* Backend
* only show 2FA-Reset option if posible
2021-01-05 14:54:48 +01:00
6543 and GitHub
212fa340cf
Migration: drop to long repo topics ( #14152 )
2020-12-27 09:23:57 +08:00
6543 and GitHub
a19447aed1
migrate from com.* to alternatives ( #14103 )
...
* remove github.com/unknwon/com from models
* dont use "com.ToStr()"
* replace "com.ToStr" with "fmt.Sprint" where its easy to do
* more refactor
* fix test
* just "proxy" Copy func for now
* as per @lunny
2020-12-25 11:59:32 +02:00
6543 and GitHub
5b958315c1
API: Make BasicAuth Prefix case insensitive ( #14106 )
2020-12-23 20:52:46 +01:00
27fa4814b8
Fix git.parseTagData ( #14105 )
...
* Fix git.parseTagData()
close #14092
* Add Test
* add message to test
* limit readers
* git tag -m trims and terminates with a newline
Co-authored-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: 6543 <6543@obermui.de >
2020-12-22 21:44:25 +01:00
6543 and GitHub
9271040c21
Add Test for Fix #14040 ( #14045 )
...
Add Test for Fix #14040
2020-12-21 18:27:23 +01:00