58501a2682
[API] GET / SET User Settings ( #16169 )
...
* API: GET/SET User Settings
* linter
* Apply suggestions from code review
* Update modules/structs/user.go
* lint
* fix swagger
* move User2UserSettings to convert
* as per @zeripath "preferences" -> "settings"
Co-authored-by: techknowlogick <matti@mdranta.net >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2021-06-23 15:58:44 -04:00
6543
5930d09096
Fix Nits ( #16234 )
...
* template fix
* nits
* add doer to "created issue/pull"
2021-06-23 19:43:33 +02:00
6543
be81dc8b20
Localize Email Templates ( #16200 )
...
close #14822
2021-06-23 14:33:21 +02:00
6543
889dea8fc1
Remove User.GetOrganizations() ( #14032 )
...
as title
2021-06-18 19:00:53 +02:00
59f25587e8
Changelog v1.14.3 ( #16131 ) ( #16196 )
...
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: zeripath <art27@cantab.net >
2021-06-18 11:54:08 -04:00
6543
d5be9ddc97
fix TestAPIRepoTransfer ( #16189 )
2021-06-18 16:46:22 +02:00
6543
75205b5669
Fix some API bugs ( #16184 )
...
* Repository object only count releases as releases (fix #16144 )
* EditOrg respect RepoAdminChangeTeamAccess option (fix #16013 )
2021-06-18 01:24:55 +02:00
6543
f7cd394680
[API] Add repoCreateTag ( #16165 )
...
* Add API CreateTag
* Add Test
* API: expose Tag Message
2021-06-17 18:04:10 +02:00
6543
b3fbd37e99
[API] expose repo.GetReviewers() & repo.GetAssignees() ( #16168 )
...
* API: expose repo.GetReviewers() & repo.GetAssignees()
* Add tests
* fix unrelated swagger query type
2021-06-17 16:02:34 +02:00
6543
6ad5d0a306
[API] ListReleases add filter for draft and pre-releases ( #16175 )
...
* invent ctx.QueryOptionalBool
* [API] ListReleases add draft and pre-release filter
* Add X-Total-Count header
* Add a release to fixtures
* Add TEST for API ListReleases
2021-06-17 10:58:10 +02:00
6543
c9d053f0ca
[API] User expose counters ( #16167 )
2021-06-17 09:17:35 +02:00
6543
9469e14dc6
[API] Issue Search Add filter for MilestoneNames ( #16173 )
2021-06-17 08:40:59 +02:00
0e081ff0ce
[API] ListIssues add more filters ( #16174 )
...
* [API] ListIssues add more filters:
optional filter repo issues by:
- since
- before
- created_by
- assigned_by
- mentioned_by
* Add Tests
* Update routers/api/v1/repo/issue.go
Co-authored-by: Lanre Adelowo <adelowomailbox@gmail.com >
* Apply suggestions from code review
Co-authored-by: Lanre Adelowo <adelowomailbox@gmail.com >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2021-06-16 18:33:37 -04:00
6543
9273601064
Add subject-type filter to list notification API endpoints ( #16177 )
...
Close #15886
2021-06-16 18:04:37 +01:00
6543 and techknowlogick
86e2789960
Vendor Update ( #16121 )
...
* update github.com/PuerkitoBio/goquery
* update github.com/alecthomas/chroma
* update github.com/blevesearch/bleve/v2
* update github.com/caddyserver/certmagic
* update github.com/go-enry/go-enry/v2
* update github.com/go-git/go-billy/v5
* update github.com/go-git/go-git/v5
* update github.com/go-redis/redis/v8
* update github.com/go-testfixtures/testfixtures/v3
* update github.com/jaytaylor/html2text
* update github.com/json-iterator/go
* update github.com/klauspost/compress
* update github.com/markbates/goth
* update github.com/mattn/go-isatty
* update github.com/mholt/archiver/v3
* update github.com/microcosm-cc/bluemonday
* update github.com/minio/minio-go/v7
* update github.com/prometheus/client_golang
* update github.com/unrolled/render
* update github.com/xanzy/go-gitlab
* update github.com/yuin/goldmark
* update github.com/yuin/goldmark-highlighting
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2021-06-10 16:44:25 +02:00
6543
c1ff59c1cd
use "true" for RACE_ENABLED ( #15261 )
2021-06-02 17:34:11 +02:00
6543
e0c93fed05
GitHub: migrate draft releases too ( #15884 )
...
* GitHub: migrate draft releases too
* refactor
2021-05-15 18:37:17 -04:00
6543
4ea0b46d9b
Tests should use test files ( #15801 )
2021-05-09 17:20:33 +02:00
6543
a229e34387
Allow only internal registration ( #15795 )
...
* Add ALLOW_ONLY_INTERNAL_REGISTRATION into settings
* OpenID respect setting too
2021-05-09 16:13:35 +02:00
6543 and zeripath
a98c09d2ae
Changelog v1.14.2 ( #15794 ) ( #15799 )
...
* 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 13:49:26 +02:00
6543
e278614753
[API] make change repo settings work on empty repos ( #15778 )
...
* API: Fix #15602
* Add TEST
2021-05-08 14:11:36 +02:00
6543
272bbb200d
Make let target "clean-all" remove node_modules folder too ( #15780 )
...
* Make let target "clean-all" remove node_modules folder too
2021-05-08 11:57:48 +02:00
6543
16034bb613
OAuth2 login: Set account link to "login" as default behavior ( #15768 )
2021-05-07 16:15:16 +02:00
640066840e
Use a generic markup class to display externally rendered files and diffs ( #15735 )
...
* creates and implements generic markup less class
* How to give custom CSS to externally rendered html
* Clarifies sources of CSS styling of markup
* further clarification of sources of markup styling
* rename _markdown to _markup
* remove defunct import
* fix orphaned reference
* Update docs/content/doc/advanced/external-renderers.en-us.md
* more renames markdown -> markup
* do not suggest less customization
* add back tokens
* fix class whitespace, remove useless if-clause
* remove unused csv-data rules
* use named exports and rename functions
* sort imports
Co-authored-by: HarvsG <11440490+HarvsG@users.noreply.github.com >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
Co-authored-by: silverwind <me@silverwind.io >
2021-05-07 10:43:41 +02:00
6543 and zeripath
6a3ad0b24e
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 >
2021-05-06 00:05:54 -04:00
6543
1cd301796c
Only log Error on getLastCommitStatus error to let pull list still be visible ( #15716 )
2021-05-04 14:03:02 +02:00
6543
a6bfe59b4b
Docs: renderers rst: rst2html.py -> pandoc ( #15659 )
2021-04-30 14:50:55 +08:00
6543
bee8ce342f
Fix go-fuzz ( #15596 )
...
* Fix go-fuzz
followup of https://github.com/go-gitea/gitea/pull/15175
* simplify
* enhance
2021-04-23 16:22:52 +08:00
6543
792b4dba2c
[Vendor] Update directly used dependencys ( #15593 )
...
* update github.com/blevesearch/bleve v2.0.2 -> v2.0.3
* github.com/denisenkom/go-mssqldb v0.9.0 -> v0.10.0
* github.com/editorconfig/editorconfig-core-go v2.4.1 -> v2.4.2
* github.com/go-chi/cors v1.1.1 -> v1.2.0
* github.com/go-git/go-billy v5.0.0 -> v5.1.0
* github.com/go-git/go-git v5.2.0 -> v5.3.0
* github.com/go-ldap/ldap v3.2.4 -> v3.3.0
* github.com/go-redis/redis v8.6.0 -> v8.8.2
* github.com/go-sql-driver/mysql v1.5.0 -> v1.6.0
* github.com/go-swagger/go-swagger v0.26.1 -> v0.27.0
* github.com/lib/pq v1.9.0 -> v1.10.1
* github.com/mattn/go-sqlite3 v1.14.6 -> v1.14.7
* github.com/go-testfixtures/testfixtures v3.5.0 -> v3.6.0
* github.com/issue9/identicon v1.0.1 -> v1.2.0
* github.com/klauspost/compress v1.11.8 -> v1.12.1
* github.com/mgechev/revive v1.0.3 -> v1.0.6
* github.com/microcosm-cc/bluemonday v1.0.7 -> v1.0.8
* github.com/niklasfasching/go-org v1.4.0 -> v1.5.0
* github.com/olivere/elastic v7.0.22 -> v7.0.24
* github.com/pelletier/go-toml v1.8.1 -> v1.9.0
* github.com/prometheus/client_golang v1.9.0 -> v1.10.0
* github.com/xanzy/go-gitlab v0.44.0 -> v0.48.0
* github.com/yuin/goldmark v1.3.3 -> v1.3.5
* github.com/6543/go-version v1.2.4 -> v1.3.1
* do github.com/lib/pq v1.10.0 -> v1.10.1 again ...
2021-04-22 20:08:53 -04:00
6543
8ea1d32bea
[Vendor] update certmagic ( #15590 )
...
* update github.com/caddyserver/certmagic v0.12.0 -> v0.13.0
* migrate
2021-04-22 22:42:33 +02:00
6543
a67861b4dc
Fix Benchmark tests, remove a broken one & add two new ( #15250 )
...
* Benchmark Integration TESTS
* CI: add benching-arm64 pipeline
* BenchmarkRepo: name test case tests
* Fix BenchmarkRepoBranchCommit beside Create new Branch
* CI: benching use amd64
* rm total broken "BenchmarkRepo"
* dont run benchmark in CI
2021-04-16 20:30:16 +02:00
6543
2a42d80d14
migration: github: if rate limit is not enabled, ignore it ( #15490 )
2021-04-15 15:34:22 +02:00
6543
ca2e1d8090
docs: migration start new section ( #15462 )
2021-04-14 08:46:17 +02:00
6543
83d771c1c7
use repo1_bare to test against ( #15402 )
2021-04-11 11:45:29 -04:00
6543
18efe9a023
Changelog v1.14.0 ( #15360 ) ( #15400 )
...
* Changelog v1.14.0 (#15360 )
* clean & merge & update v1.14.0 changelog
* backport v1.13.x changelogs
* update latest gitea version
2021-04-11 13:23:55 +08:00
6543
477c4530e4
Fix admin user list ( #15358 )
2021-04-09 10:16:10 +02:00
6543
9c4601bdf8
Code Formats, Nits & Unused Func/Var deletions ( #15286 )
...
* _ to unused func options
* rm useless brakets
* rm trifial non used models functions
* rm dead code
* rm dead global vars
* fix routers/api/v1/repo/issue.go
* dont overload import module
2021-04-09 09:40:34 +02:00
6543
147826a577
[API] pull notification subject status: add "merged" ( #15344 )
...
Current subject status can be "", "open" and "closed". This add "merged" to it.
2021-04-09 03:36:23 +02:00
6543
298d56fe8b
[Frontport] Changelog (v1.13.6, v1.13.7, v1.14.0-rc2) ( #15328 )
...
* Changelog v1.13.7 (#15319 )
* Update Changelog (#15322 )
* update
* next
* RC2
* Update Docs Version
2021-04-07 13:41:02 -04:00
6543
16dea6cebd
[refactor] replace int with httpStatusCodes ( #15282 )
...
* replace "200" (int) with "http.StatusOK" (const)
* ctx.Error & ctx.HTML
* ctx.JSON Part1
* ctx.JSON Part2
* ctx.JSON Part3
2021-04-05 11:30:52 -04:00
6543 and Andrew Thornton
80d6c6d7de
[refactor] mailer service ( #15072 )
...
* Unexport SendUserMail
* Instead of "[]*models.User" or "[]string" lists infent "[]*MailRecipient" for mailer
* adopt
* code format
* TODOs for "i18n"
* clean
* no fallback for lang -> just use english
* lint
* exec testComposeIssueCommentMessage per lang and use only emails
* rm MailRecipient
* Dont reload from users from db if you alredy have in ram
* nits
* minimize diff
Signed-off-by: 6543 <6543@obermui.de >
* localize subjects
* linter ...
* Tr extend
* start tmpl edit ...
* Apply suggestions from code review
* use translation.Locale
* improve mailIssueCommentBatch
Signed-off-by: Andrew Thornton <art27@cantab.net >
* add i18n to datas
Signed-off-by: Andrew Thornton <art27@cantab.net >
* a comment
Co-authored-by: Andrew Thornton <art27@cantab.net >
2021-04-02 11:25:13 +01:00
6543
290cf75f93
[refactor] Unify the export of user data via API ( #15144 )
...
* [refactor] unify how user data is exported via API
* test time via unix timestamp
2021-03-27 17:45:26 +01:00
6543
dc56fb7c84
fix regression of 15139 ( #15164 )
2021-03-26 03:46:41 +01:00
6543
5f038cd7fe
[Vendor] update gitea-sdk v0.14.0 ( #15103 )
...
* upgraded code.gitea.io/sdk/gitea v0.13.2 => v0.14.0
* rm workaround
2021-03-22 18:03:18 +01:00
6543
98c8513db2
Changelog v1.13.5 ( #15084 ) ( #15093 )
...
* Changelog v1.13.5 (#15084 )
* fix unrel. nit
2021-03-21 13:58:19 -04:00
6543
24f7bd5899
Use i18n.Reset to reload locales ( #15073 )
2021-03-21 16:11:36 +01:00
6543 and zeripath
78e8f62706
[Refactor] remove possible resource leak ( #15067 )
...
* move "copy uploaded lfs files 2 repo" to own function for "defer file.Close()"
* rm type overload
* Update modules/repofiles/upload.go
Co-authored-by: zeripath <art27@cantab.net >
2021-03-21 00:30:29 +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