6543 and KN4CK3R
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
6543 and Lunny Xiao
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
8c4bf4c3b4
GitHub: migrate draft releases too ( #15884 ) ( #15888 )
...
* GitHub: migrate draft releases too
* refactor
2021-05-16 09:24:28 +02:00
6543 and zeripath
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
c57e908f36
Tests should use test files ( #15801 ) ( #15806 )
2021-05-10 01:39:14 +08:00
6543 and zeripath
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
6543 and zeripath
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
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
6543 and zeripath
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
6543 and a1012112796
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
f1e8b8c0d7
Only log Error on getLastCommitStatus error to let pull list still be visible ( #15715 )
2021-05-04 14:03:31 +02:00
6543 and KN4CK3R
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
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
6543 and Lunny Xiao
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
6543 and Lauris BH
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
c3398906a1
use repo1_bare to test against ( #15402 ) ( #15404 )
2021-04-11 19:48:35 +02:00
6543
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
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
6543 and John Olheiser
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
6543 and Lunny Xiao
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
6543 and zeripath
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
6543 and zeripath
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
27acf6165e
update changelog for rc2 release ( #15130 )
2021-03-23 15:52:43 -04:00
6543 and Lunny Xiao
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
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
6543 and zeripath
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
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
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
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
ae62bb7b6c
Changelog v1.13.4 ( #14917 ) ( #14920 )
2021-03-08 00:07:02 +01:00
6543
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
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
dc081959db
Fix issue/pul sidebar ( #14826 )
2021-02-28 15:05:55 +01:00
6543
b4b4d765f3
Fix missleading sentence ( #14829 )
2021-02-28 07:54:12 +00:00
6543
8f4d55452a
use gogs.ico to create a better svg for migration page ( #14795 )
2021-02-25 14:13:44 +08:00
6543
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
1d63e17de8
CI: translation update as cron task ( #14774 )
2021-02-23 07:16:02 +08:00
6543
190bd0accd
Export LFS & TimeTracking function status ( #14753 )
2021-02-20 11:17:51 +01:00
6543
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
6543 and Lunny Xiao
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
0a4c2d75cd
rm gogs relict ( #14665 )
2021-02-14 00:07:17 +08:00
6543 and Lauris BH
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
6543 and zeripath
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
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
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
3f332a9919
Changelog v1.13.2 ( #14535 ) ( #14543 )
2021-02-02 02:19:10 +01:00
6543
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
6fc2d36fb5
rm redirect ( #14534 )
2021-02-01 12:49:25 +08:00
6543
0e0424c8ec
Add Doctor FixWrongUserType ( #14522 )
...
* Add Doctor FixWrongUserType
* use NoAutoTime
2021-01-29 19:30:43 +01:00
6543
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
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
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
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
a7cfb9f2c3
Fix JSON Header response ( #14499 )
2021-01-27 15:46:22 -06:00
6543
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
4acb499f30
just overload to not get it by mistake again ... ( #14440 )
2021-01-23 21:33:43 +02:00
6543 and zeripath
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
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
6543 and Moritz Marquardt
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
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
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
212fa340cf
Migration: drop to long repo topics ( #14152 )
2020-12-27 09:23:57 +08:00
6543
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
5b958315c1
API: Make BasicAuth Prefix case insensitive ( #14106 )
2020-12-23 20:52:46 +01:00
6543 and Andrew Thornton
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
9271040c21
Add Test for Fix #14040 ( #14045 )
...
Add Test for Fix #14040
2020-12-21 18:27:23 +01:00
6543
e483220ea3
[Refactor] CombinedStatus and CommitStatus related functions & structs ( #14026 )
...
* RM unused struct
* rename (*CommitStatus) loadRepo() -> loadAttributes()
* move ToCommitStatus into its own file
* use CommitStatusState instead of StatusState
* move CombinedStatus convertion into convert package
* let models.GetLatestCommitStatus use repoID direct and accept ListOptions
* update swagger docs
* fix tests
* Fix swagger docs
* rm page
* fix swagger docs!!!
* return json null
* always return json
* rename api.Status to api.CommitStatus
* fix swagger docs
* sec swagger fix
2020-12-18 11:33:32 +08:00
6543
9e456b5a56
HotFix: Hide private partisipation in Orgs ( #13994 )
...
* HotFix: Hide private partisipation in Orgs
* refactor & add node to fuc GetOrganizations
2020-12-17 00:39:12 +01:00
6543
069acf6a21
Add FAQ link to Issue template ( #14020 )
2020-12-16 20:18:36 +01:00
6543
e2aa701812
[API] Add ref to create/edit issue options & deprecated assignee ( #13992 )
...
* API: Add ref to create/edit issue options
* deprecate Assignee in favour of Assignees
2020-12-15 19:38:10 +01:00
6543
3285babcae
Update github.com/blevesearch/bleve v1.0.13 -> v1.0.14 ( #13947 )
2020-12-12 01:16:53 +01:00
6543
658e90a114
[Docu] Fix Location of Comments in migrations.go ( #13900 )
2020-12-09 00:24:23 +01:00
6543 and techknowlogick
6bdcacd73b
Added Table of Contents to long documentation pages ( #13890 )
...
* Redo #13836 with new shortcode
(https://gitea.com/gitea/theme/pulls/90 )
* add Api Usage
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-12-07 23:52:26 -05:00
6543
48a3bb7a32
User Settings: Ignore empty language codes & validate ( #13755 )
2020-12-04 08:20:30 +02:00
6543
4353cf96c0
Move LFSLock APIFormat into convert package ( #13808 )
2020-12-03 16:05:48 +02:00
6543
7ac8a770e1
Move Repo APIFormat to convert package ( #13787 )
...
* Move Repo APIFormat to convert package
* tweek
2020-12-02 16:38:30 -05:00
6543
2b4a08e962
Migrations: Use Process Manager to create own Context ( #13792 )
2020-12-02 18:36:06 +00:00
6543
594cc4aa2a
Update Gitea Version & Fix Migration Comments ( #13789 )
...
* correct migration version comments
* update lates version in docs
2020-12-03 00:04:19 +08:00
6543
4f5ff1ef08
move notification APIFormat ( #13783 )
2020-12-02 09:24:35 +00:00
6543 and Lauris BH
c4deb97ed1
[Vendor] Update Batch 2020-11 ( #13746 )
...
* github.com/alecthomas/chroma v0.8.1 -> v0.8.2
Changelog: https://github.com/alecthomas/chroma/releases/tag/v0.8.2
* github.com/blevesearch/bleve v1.0.12 -> v1.0.13
Changelog: https://github.com/blevesearch/bleve/releases/tag/v1.0.13
* github.com/editorconfig/editorconfig-core-go v2.3.8 -> v2.3.9
Changelog: https://github.com/editorconfig/editorconfig-core-go/releases/tag/v2.3.9
* github.com/klauspost/compress v1.11.2 -> v1.11.3
Changelog: https://github.com/klauspost/compress/releases/tag/v1.11.3
* github.com/minio/minio-go v7.0.5 -> v7.0.6
Changelog: https://github.com/minio/minio-go/releases/tag/v7.0.6
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-11-29 15:54:08 -05:00