Joe Chen
b34ee73497
feat(ssh): support dynamic list of algorithms ( #7345 )
2023-02-12 13:10:41 +08:00
Vamsi Atluri
ef1fe1bb3b
conf: add new config option for default branch name ( #7291 )
...
Co-authored-by: Vamsi Atluri <me@vamc19.dev>
Co-authored-by: Joe Chen <jc@unknwon.io>
2023-02-11 16:37:24 +08:00
Joe Chen
133b9d9044
refactor(db): finish migrate methods off `user.go` ( #7337 )
2023-02-07 23:39:00 +08:00
Joe Chen
c53a1998c5
all: replace `interface{}` with `any` ( #7330 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2023-02-02 21:25:25 +08:00
Joe Chen
644a3a9d78
refactor(db): migrate `ChangeUsername` off `user.go` ( #7261 )
2022-11-25 22:40:20 +08:00
Joe Chen
ce25881c88
refactor(db): move some methods off `user.go` ( #7199 )
2022-10-22 20:01:38 +08:00
Joe Chen
c502dc6ed8
refactor(db): move some methods from `user.go` to `users.go` ( #7195 )
2022-10-22 14:41:40 +08:00
Joe Chen
50e5766867
build: remove support of Go 1.17 ( #7177 )
2022-10-09 23:12:03 +08:00
Joe Chen
25b49294b2
conf: update test golden file ( #7085 )
2022-06-27 20:04:16 +08:00
Joe Chen
083c3ee659
db: refactor "action" table to use GORM ( #7054 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-06-25 18:07:39 +08:00
dependabot[bot]
d466c96229
mod: bump gopkg.in/ini.v1 from 1.66.4 to 1.66.5 ( #6984 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joe Chen <jc@unknwon.io>
2022-05-30 19:00:49 +08:00
Michael Li
32c454ba5f
assets: convert usage of go-bindata to Go embed ( #6851 )
...
Co-authored-by: Joe Chen <jc@unknwon.io>
2022-03-17 14:05:09 +08:00
Joe Chen
714383a063
conf: add allowlist for accessing local network ( #6842 )
2022-03-14 22:06:08 +08:00
deepsource-autofix[bot]
e452d94fc8
autofix: format code with gofumpt and gofmt ( #6803 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-03-06 17:55:17 +08:00
deepsource-autofix[bot]
3acc13038d
autofix: unused parameter should be replaced by underscore ( #6799 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-03-06 15:46:21 +08:00
zvrh
a9be4de5a5
database: add PostgreSQL custom schema support ( #6695 )
...
Co-authored-by: Homura37 <git@gvip.xyz>
Co-authored-by: Homura <16538800+Homura37@users.noreply.github.com>
Co-authored-by: Joe Chen <jc@unknwon.io>
2022-01-05 22:02:33 +08:00
Atin
d6987ee05b
chore: fix typos in code comments ( #6556 )
2021-05-19 13:12:09 +08:00
ᴜɴᴋɴᴡᴏɴ
509a392272
locale: sync from Crowdin ( #6510 )
...
* locale: sync from Crowdin
* Fix tests
2021-02-27 18:48:10 +08:00
Eduardo Bacchi Kienetz
c875950c43
ssh: allow setting allowed MAC algorithms for built-in server ( #6435 )
...
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
2020-12-04 21:52:26 +08:00
Zhukov Roman
be86d67e81
Add git diff timeout in app config ( #6348 )
...
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
2020-09-29 23:12:17 +08:00
ᴜɴᴋɴᴡᴏɴ
dda1092e74
gitutil: infer submodule with baseURL when it is a relative path ( #6337 )
2020-09-18 16:19:31 +08:00
ᴜɴᴋɴᴡᴏɴ
f0761eb7ec
conf: remove legacy options ( #6267 )
...
* conf: remove legacy options
* Update tests
2020-08-22 22:25:21 +08:00
ᴜɴᴋɴᴡᴏɴ
9fd4f5562d
all: use semver to compare versions ( #6147 )
2020-05-04 18:48:23 +08:00
ᴜɴᴋɴᴡᴏɴ
4e1f38ce28
lfs: show configs in admin ui ( #6128 )
...
* Rename template consts
* Display new DB options
* Display LFS configs
2020-04-21 18:07:17 +08:00
Kousik Mitra
fc57c921b1
conf: fallback time layout to RFC 3339 when misconfigured ( #6120 )
...
* Fix: fallback to default time format if misconfigured (#6098 )
* Update CHANGELOG.md
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
2020-04-18 15:19:29 +08:00
ᴜɴᴋɴᴡᴏɴ
9a5b227f3e
lfsutil: add `Storager` interface and local storage ( #6083 )
...
* Add Storager interface
* Add tests
* Add back note
* Add tests for basic protocol routes
* Fix lint errors
2020-04-10 22:13:42 +08:00
ᴜɴᴋɴᴡᴏɴ
2b3655fa11
lfs: add tests to batch endpoint ( #6073 )
2020-04-06 23:53:55 +08:00
ᴜɴᴋɴᴡᴏɴ
34145c990d
lfs: implement HTTP routes ( #6035 )
...
* Bootstrap with GORM
* Fix lint error
* Set conn max lifetime to one minute
* Fallback to use gorm v1
* Define HTTP routes
* Finish authentication
* Save token updated
* Add docstring
* Finish authorization
* serveBatch rundown
* Define types in lfsutil
* Finish Batch
* authutil
* Finish basic
* Formalize response error
* Fix lint errors
* authutil: add tests
* dbutil: add tests
* lfsutil: add tests
* strutil: add tests
* Formalize 401 response
2020-04-04 21:14:15 +08:00
ᴜɴᴋɴᴡᴏɴ
a9dcf4ce74
github: use Actions for CI ( #6022 )
...
* Update golint.yml
* Update README.md
* Update README.md
* Update golint.yml
* Update golint.yml
* Rename golint.yml to go.yml
* Update go.yml
* Update go.yml
* Update go.yml
* Improve tests on Windows
* Delete files
2020-03-27 22:06:29 +08:00
ᴜɴᴋɴᴡᴏɴ
22717a1c06
webhook: overhaul route handlers ( #6002 )
...
* Overual route handlers and fixes #5366
* Merge routes for repo and org
* Inject OrgRepoContext
* DRY validateWebhook
* DRY c.HasError
* Add tests
* Update CHANGELOG
2020-03-22 22:07:22 +08:00
ᴜɴᴋɴᴡᴏɴ
6437d0180b
git: migrate to github.com/gogs/git-module@v1.0.0 ( #5958 )
...
* WIP
* Finish `internal/db/git_diff.go`
* FInish internal/db/mirror.go
* Finish internal/db/pull.go
* Finish internal/db/release.go
* Finish internal/db/repo.go
* Finish internal/db/repo_branch.go
* Finish internal/db/repo_editor.go
* Finish internal/db/update.go
* Save my work
* Add license header
* Compile!
* Merge master
* Finish internal/cmd/hook.go
* Finish internal/conf/static.go
* Finish internal/context/repo.go
* Finish internal/db/action.go
* Finish internal/db/git_diff.go
* Fix submodule URL inferring
* Finish internal/db/mirror.go
* Updat to beta.4
* css: update fonts
* Finish internal/db/pull.go
* Finish internal/db/release.go
* Finish internal/db/repo_branch.go
* Finish internal/db/wiki.go
* gitutil: enhance infer submodule UR
* Finish internal/route/api/v1/repo/commits.go
* mirror: only collect branch commits after sync
* mirror: fix tag support
* Finish internal/db/repo.go
* Finish internal/db/repo_editor.go
* Finish internal/db/update.go
* Finish internal/gitutil/pull_request.go
* Make it compile
* Finish internal/route/repo/setting.go
* Finish internal/route/repo/branch.go
* Finish internal/route/api/v1/repo/file.go
* Finish internal/route/repo/download.go
* Finish internal/route/repo/editor.go
* Use helper
* Finish internal/route/repo/issue.go
* Finish internal/route/repo/pull.go
* Finish internal/route/repo/release.go
* Finish internal/route/repo/repo.go
* Finish internal/route/repo/wiki.go
* Finish internal/route/repo/commit.go
* Finish internal/route/repo/view.go
* Finish internal/gitutil/tag.go
* go.sum
2020-03-08 19:09:31 +08:00
ᴜɴᴋɴᴡᴏɴ
931da04dc2
cmd/serv: improve hookMode handling ( #5960 )
...
- Allow remove primary logger at better location
- Use more appropriate log.Error to replace log.Fatal
2020-03-02 22:25:28 +08:00
ᴜɴᴋɴᴡᴏɴ
fe7b094b9e
log: fix tests
2020-03-02 01:14:26 +08:00
ᴜɴᴋɴᴡᴏɴ
7382c23a17
cmd: init minimal logging config in hook mode
2020-03-02 01:01:52 +08:00
ᴜɴᴋɴᴡᴏɴ
18e45aab98
template: improve admin config page
2020-03-01 03:21:13 +08:00
ᴜɴᴋɴᴡᴏɴ
8796df8218
conf: add unit tests ( #5954 )
...
* conf: add tests for utils.go
* conf: add tests for static.go
* mock os/exec
* Run tests on Windows
* appveyor: fix gcc not found
* computed: add unit tests
* log: add unit tests
* log: fix tests on Windows
* conf: add some tests
* Finish adding tests
* Cover more cases
* Add tests for testutil
* Add more tests
2020-02-29 22:24:20 +08:00
ᴜɴᴋɴᴡᴏɴ
17ae0ed3ee
conf: overhaul settings ( #5953 )
...
* Overhaul cache settings
* Overhaul HTTP settings
* conf: overhaul more settings
* log: make LGTM happy
* travis: upload report to Codecov
* Add codecov.yml
2020-02-29 16:29:17 +08:00
ᴜɴᴋɴᴡᴏɴ
d59b0f6ff7
conf: overhaul sessions settings ( #5952 )
2020-02-29 00:26:03 +08:00
ᴜɴᴋɴᴡᴏɴ
7950f2d17d
conf: overhaul auth and user settings ( #5942 )
...
* conf: overhaul auth and user settings
* ci: update travis Go versions
2020-02-27 18:06:38 +08:00
ᴜɴᴋɴᴡᴏɴ
52ffb67b33
conf: overhaul email settings ( #5940 )
2020-02-25 00:35:35 +08:00
ᴜɴᴋɴᴡᴏɴ
286fbc07e9
conf: overhaul security settings
2020-02-22 20:46:16 +08:00
ᴜɴᴋɴᴡᴏɴ
d3ecd22dba
cmd: fix unable to find correct custom config
2020-02-22 19:12:31 +08:00
ᴜɴᴋɴᴡᴏɴ
5efbde4fe9
conf: overhaul database settings
2020-02-22 18:58:16 +08:00
ᴜɴᴋɴᴡᴏɴ
c4a0a40473
conf: overhaul repository settings ( #5932 )
2020-02-22 15:22:32 +08:00
ᴜɴᴋɴᴡᴏɴ
5282699f19
admin/config: show all server and SSH options
2020-02-22 11:40:23 +08:00
ᴜɴᴋɴᴡᴏɴ
648d9e253c
conf: overhaul server settings ( #5928 )
...
* conf: rename package
* Requires Go 1.12
* Fix lint
* Fix lint
* Overhaul
* db: fix tests
* Save my work
* Fix tests
* Server.UnixSocketPermission
* Server.LocalRootURL
* SSH settings
* Server.OfflineMode
* Save my work
* App.Version
* Remove [server] STATIC_ROOT_PATH
* Server.LandingURL
2020-02-22 09:05:26 +08:00