6543 and GitHub
83d771c1c7
use repo1_bare to test against ( #15402 )
2021-04-11 11:45:29 -04:00
6543 and GitHub
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 and GitHub
477c4530e4
Fix admin user list ( #15358 )
2021-04-09 10:16:10 +02:00
6543 and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
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
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 and GitHub
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 and GitHub
dc56fb7c84
fix regression of 15139 ( #15164 )
2021-03-26 03:46:41 +01:00
6543 and GitHub
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 and GitHub
98c8513db2
Changelog v1.13.5 ( #15084 ) ( #15093 )
...
* Changelog v1.13.5 (#15084 )
* fix unrel. nit
2021-03-21 13:58:19 -04:00
6543 and GitHub
24f7bd5899
Use i18n.Reset to reload locales ( #15073 )
2021-03-21 16:11:36 +01:00
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 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
6543 and GitHub
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 and GitHub
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 and GitHub
069acf6a21
Add FAQ link to Issue template ( #14020 )
2020-12-16 20:18:36 +01:00
6543 and GitHub
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 and GitHub
3285babcae
Update github.com/blevesearch/bleve v1.0.13 -> v1.0.14 ( #13947 )
2020-12-12 01:16:53 +01:00
6543 and GitHub
658e90a114
[Docu] Fix Location of Comments in migrations.go ( #13900 )
2020-12-09 00:24:23 +01:00
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 and GitHub
48a3bb7a32
User Settings: Ignore empty language codes & validate ( #13755 )
2020-12-04 08:20:30 +02:00
6543 and GitHub
4353cf96c0
Move LFSLock APIFormat into convert package ( #13808 )
2020-12-03 16:05:48 +02:00
6543 and GitHub
7ac8a770e1
Move Repo APIFormat to convert package ( #13787 )
...
* Move Repo APIFormat to convert package
* tweek
2020-12-02 16:38:30 -05:00
6543 and GitHub
2b4a08e962
Migrations: Use Process Manager to create own Context ( #13792 )
2020-12-02 18:36:06 +00:00
6543 and GitHub
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 and GitHub
4f5ff1ef08
move notification APIFormat ( #13783 )
2020-12-02 09:24:35 +00:00
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
b2435af9be
Add Allow-/Block-List for Migrate & Mirrors ( #13610 )
...
* add black list and white list support for migrating repositories
* fix fmt
* fix lint
* fix vendor
* fix modules.txt
* clean diff
* specify log message
* use blocklist/allowlist
* allways use lowercase to match url
* Apply allow/block
* Settings: use existing "migrations" section
* convert domains lower case
* dont store unused value
* Block private addresses for migration by default
* fix lint
* use proposed-upstream func to detect private IP addr
* a nit
* add own error for blocked migration, add tests, imprufe api
* fix test
* fix-if-localhost-is-ipv4
* rename error & error message
* rename setting options
* Apply suggestions from code review
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-11-28 19:37:58 -05:00
0f14f69e60
Verify password for local-account activation ( #13631 )
...
* Verify passwords for activation
This is to prevent 3rd party activation
* Fix function comment
* only veify password on local-account aktivation
* fix lint
* Update templates/user/auth/activate.tmpl
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: Andreas Shimokawa <shimokawa@fsfe.org >
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-11-28 17:41:06 -05:00
e7b47c5215
Format files ( #13698 )
...
* align "make help"
* format
* untouch build/generate-svg.js
* untouch .eslintrc
* combine editorconfig's
* rm editorconfig
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-11-28 01:12:22 -05:00
6543 and GitHub
f88a2eae97
[API] Add more filters to issues search ( #13514 )
...
* Add time filter for issue search
* Add limit option for paggination
* Add Filter for: Created by User, Assigned to User, Mentioning User
* update swagger
* Add Tests for limit, before & since
2020-11-23 20:49:36 +00:00
6543 and GitHub
f915161a2f
skip email validation on empty string ( #13627 )
...
- move validation into its own function
- use a session for UpdateUserSetting
2020-11-20 23:45:55 +02:00
1bb5c09b5d
API: Admin EditUser: Make FullName, Email, Website & Location optional ( #13562 )
...
* API: Admin EditUser: Make FullName, Email, Website & Location optional
* update swagger docs
* add Tests
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-11-19 20:56:42 -05:00
24b3b2140a
finaly fix gitlab migration with subdir 2.0 ( #13646 )
...
* final fix 2.0?
* ignore Approvals for pulls if not found
* CI.restart()
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-11-20 01:18:34 +02:00
6543 and GitHub
ad2a288622
finaly fix gitlab migration with subdir ( #13629 )
...
* finaly fix #13535
* add logging
2020-11-19 00:17:56 -05:00
6543 and GitHub
d02c3508e6
Config lock bot ( #13624 )
...
* config lock bot
* Update .github/lock.yml
2020-11-18 14:42:31 -05:00
77aa742528
Migration: Gitlab: Support Subdirectory ( #13563 )
...
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-11-16 21:22:49 +02:00
7d2700c8be
[API] Only Return Json ( #13511 )
...
* Let Branch and Raw Endpoint return json error if not found
* Revert "RM RepoRefByTypeForAPI and move needed parts into GetRawFile directly"
This reverts commit d826d08577b23765cb3c257e7a861191d1aa9a04.
* more similar to RepoRefByType
* dedub-code
* API should just speak JSON
* nice name
Co-authored-by: zeripath <art27@cantab.net >
2020-11-14 11:13:55 -05:00
6543 and GitHub
3f3447a1ea
API: Fix GetQueryBeforeSince ( #13559 )
2020-11-14 14:05:40 +00:00
30ce3731a1
Vendor Update Go Libs ( #13444 )
...
* denisenkom/go-mssqldb untagged -> v0.9.0
* github.com/editorconfig/editorconfig-core-go v2.3.7 -> v2.3.8
* github.com/go-testfixtures/testfixtures v3.4.0 -> v3.4.1
* github.com/mholt/archiver v3.3.2 -> v3.5.0
* github.com/olivere/elastic v7.0.20 -> v7.0.21
* github.com/urfave/cli v1.22.4 -> v1.22.5
* github.com/xanzy/go-gitlab v0.38.1 -> v0.39.0
* github.com/yuin/goldmark-meta untagged -> v1.0.0
* github.com/ethantkoenig/rupture 0a76f03a811a -> c3b3b810dc77
* github.com/jaytaylor/html2text 8fb95d837f7d -> 3577fbdbcff7
* github.com/kballard/go-shellquote cd60e84ee657 -> 95032a82bc51
* github.com/msteinert/pam 02ccfbfaf0cc -> 913b8f8cdf8b
* github.com/unknwon/paginater 7748a72e0141 -> 042474bd0eae
* CI.restart()
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-11-06 13:41:42 -05:00
6543 and GitHub
70ea2300ca
[Vendor] update macaron related ( #13409 )
...
* Vendor: update gitea.com/macaron/session to a177a270
* make vendor
* Vendor: update gitea.com/macaron/macaron to 0db5d458
* make vendor
* Vendor: update gitea.com/macaron/cache to 905232fb
* make vendor
* Vendor: update gitea.com/macaron/i18n to 4ca3dd0c
* make vendor
* Vendor: update gitea.com/macaron/gzip to efa5e847
* make vendor
* Vendor: update gitea.com/macaron/captcha to e8597820
* make vendor
2020-11-03 08:04:09 +02:00
81d3942bf0
Migrations: Gitea should not fail just because of no apiConfig return ( #13229 )
...
* close #13227
* log it
👍
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-10-22 01:46:18 -04:00
6543 and GitHub
48a80096bb
Update heatmap fixtures to restore tests ( #13224 )
...
* hotfix
* update ...
2020-10-20 17:39:25 -05:00
d453533beb
[Refactor] Move APIFormat functions into convert package ( #12856 )
...
* USER APIFormat -> ToUser
* Migrate more and mark APIFormat deprecated
* models.Comment APIFormat() -> convert.ToComment
* models.Release APIFormat() -> convert.ToRelease
* models.Attachments APIFormat() -> convert.ToReleaseAttachments
* models.CommitStatus APIFormat() -> convert.ToCommitStatus
* finish migration to convert.ToUser
* Move Test
* Imprufe Test
* fix test
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-10-17 00:23:08 -04:00
b222dbc1d1
Update go-version v1.2.3 -> v1.2.4 ( #13169 )
...
Co-authored-by: zeripath <art27@cantab.net >
2020-10-16 12:05:02 +03:00
12a1f914f4
Vendor Update Go Libs ( #13166 )
...
* update github.com/alecthomas/chroma v0.8.0 -> v0.8.1
* github.com/blevesearch/bleve v1.0.10 -> v1.0.12
* editorconfig-core-go v2.1.1 -> v2.3.7
* github.com/gliderlabs/ssh v0.2.2 -> v0.3.1
* migrate editorconfig.ParseBytes to Parse
* github.com/shurcooL/vfsgen to 0d455de96546
* github.com/go-git/go-git/v5 v5.1.0 -> v5.2.0
* github.com/google/uuid v1.1.1 -> v1.1.2
* github.com/huandu/xstrings v1.3.0 -> v1.3.2
* github.com/klauspost/compress v1.10.11 -> v1.11.1
* github.com/markbates/goth v1.61.2 -> v1.65.0
* github.com/mattn/go-sqlite3 v1.14.0 -> v1.14.4
* github.com/mholt/archiver v3.3.0 -> v3.3.2
* github.com/microcosm-cc/bluemonday 4f7140c49acb -> v1.0.4
* github.com/minio/minio-go v7.0.4 -> v7.0.5
* github.com/olivere/elastic v7.0.9 -> v7.0.20
* github.com/urfave/cli v1.20.0 -> v1.22.4
* github.com/prometheus/client_golang v1.1.0 -> v1.8.0
* github.com/xanzy/go-gitlab v0.37.0 -> v0.38.1
* mvdan.cc/xurls v2.1.0 -> v2.2.0
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-10-16 01:06:27 -04:00
e374bb7e2d
[Vendor] Update go-ldap to v3.2.4 ( #13163 )
...
* [Vendor] update go-ldap to v3.0.3
* update go-ldap to v3.2.4
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-10-15 15:27:33 -04:00
33e0e37537
Changelog v1.13.0-RC1 ( #13142 )
...
* Changelog v1.13.0
* reorder topics
* impruve
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Goldmark ...
* Add 12516
* Apply suggestions from code review
* Update CHANGELOG.md
* Apply suggestions from code review
Co-authored-by: techknowlogick <matti@mdranta.net >
* Apply suggestions from code review
Co-authored-by: zeripath <art27@cantab.net >
* Update CHANGELOG.md
* Apply suggestions from code review
Co-authored-by: 6543 <6543@obermui.de >
* Securety is more importand than Breaking ...
Co-authored-by: techknowlogick <matti@mdranta.net >
Co-authored-by: zeripath <art27@cantab.net >
2020-10-14 14:48:03 -04:00
6543 and GitHub
49b1948cb1
Gitea 2 Gitea migration ( #12657 )
...
* first draft
* update gitea sdk to 9e280adb4da
* adapt feat of updated sdk
* releases now works
* break the Reactions loop
* use convertGiteaLabel
* fix endless loop because paggination is not supported there !!!
* rename gitea local uploader files
* pagination can bite you in the ass
* Version Checks
* lint
* docs
* rename gitea sdk import to miss future conficts
* go-swagger: dont scan the sdk structs
* make sure gitea can shutdown gracefully
* make GetPullRequests and GetIssues similar
* rm useles
* Add Test: started ...
* ... add tests ...
* Add tests and Fixing things
* Workaround missing SHA
* Adapt: Ensure that all migration requests are cancellable
(714ab71ddc )
* LINT: fix misspells in test set
* adapt ListMergeRequestAwardEmoji
* update sdk
* Return error when creating giteadownloader failed
* update sdk
* adapt new sdk
* adopt new features
* check version before err
* adapt: 'migrate service type switch page'
* optimize
* Fix DefaultBranch
* impruve
* handle subPath
* fix test
* Fix ReviewCommentPosition
* test GetReviews
* add DefaultBranch int test set
* rm unused
* Update SDK to v0.13.0
* addopt sdk changes
* found better link
* format template
* Update Docs
* Update Gitea SDK (v0.13.1)
2020-10-14 07:06:00 +03:00
daa393cb48
Add API Section to Changelog ( #13125 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-10-13 01:39:17 -04:00