deepsource-autofix[bot]
977532eaaa
style: format code with Go fmt and Gofumpt
...
This commit fixes the style issues introduced in f3856c2 according to the output
from Go fmt and Gofumpt.
Details: https://github.com/gogs/gogs/pull/8111
2026-01-25 15:25:00 +00:00
copilot-swe-agent[bot]
f3856c290c
Complete flamego migration - fix all compilation errors.
...
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com >
2026-01-25 15:24:41 +00:00
deepsource-autofix[bot]
5ea7e5f96d
style: format code with Go fmt and Gofumpt
...
This commit fixes the style issues introduced in 755f612 according to the output
from Go fmt and Gofumpt.
Details: https://github.com/gogs/gogs/pull/8111
2026-01-25 12:06:11 +00:00
copilot-swe-agent[bot]
755f61295a
Delete documentation and begin flamego migration.
...
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com >
2026-01-25 12:05:56 +00:00
deepsource-autofix[bot]
bfc0f9c048
style: format code with Go fmt and Gofumpt
...
This commit fixes the style issues introduced in da641a8 according to the output
from Go fmt and Gofumpt.
Details: https://github.com/gogs/gogs/pull/8111
2026-01-25 12:02:15 +00:00
copilot-swe-agent[bot]
da641a81f0
Continue Flamego migration: Update context files and fix compilation errors
...
- Fix Context struct with FlashData
- Add SetCookie, GetCookie, Tr helper methods
- Update user.go, go_get.go, org.go, repo.go context files
- Fix JSON, HTML rendering methods
- Update Contexter middleware to handle Flash properly
- Fix auth.go references to Request
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com >
2026-01-25 12:02:00 +00:00
deepsource-autofix[bot]
1bd867ab15
style: format code with Go fmt and Gofumpt
...
This commit fixes the style issues introduced in de467e5 according to the output
from Go fmt and Gofumpt.
Details: https://github.com/gogs/gogs/pull/8111
2026-01-25 11:58:21 +00:00
copilot-swe-agent[bot]
de467e5d69
WIP: Migrate from Macaron to Flamego web framework
...
- Update imports in web.go, context.go, auth.go, api.go
- Replace Macaron with Flamego initialization
- Update middleware configuration
- Convert route syntax from :param to <param>
- Update session, CSRF, cache middleware to Flamego versions
- Add custom health check endpoint
- Update Context struct to work with Flamego
- Update Contexter middleware
- Add helper methods for Status, JSON, Header, Written
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com >
2026-01-25 11:58:06 +00:00
Copilot
4ee706b2bf
chore: replace pkg/errors with cockroachdb/errors ( #8098 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: unknwon <2946214+unknwon@users.noreply.github.com >
2026-01-22 08:20:53 -05:00
ᴊᴏᴇ ᴄʜᴇɴ
59e9fa191b
chore: remove all MIT license file headers ( #8083 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2026-01-08 19:32:15 -05:00
dependabot[bot]
139ea3ce7d
mod: bump modernc.org/sqlite from 1.36.0 to 1.37.0 ( #7947 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joe Chen <jc@unknwon.io >
2025-04-14 18:00:07 -04:00
Joe Chen
d9ecdcaef0
all: unwrap database.UsersStore interface ( #7708 )
2024-03-27 23:18:59 -04:00
Joe Chen
4d05804729
all: unwrap database.RepositoriesStore interface ( #7706 )
2024-03-26 23:34:31 -04:00
Joe Chen
5cf0189df1
all: unwrap database.PermissionsStore interface ( #7701 )
2024-03-23 20:46:32 -04:00
Joe Chen
8054ffc12f
all: unwrap database.AccessTokensStore interface ( #7670 )
2024-02-20 21:47:32 -05:00
Joe Chen
3650b32ec5
chore: rename internal/db to internal/database ( #7665 )
2024-02-18 19:39:41 -05:00
Joe Chen
8350daf505
refactor(db): merge relation stores into entity stores ( #7341 )
2023-02-08 13:55:54 +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
5fb29db2db
refactor(db): migrate methods off and delete deprecated methods from user.go ( #7231 )
2022-11-05 23:33:05 +08:00
Joe Chen
b5d47b9692
refactor(db): migrate methods off user.go ( #7230 )
2022-11-05 18:56:48 +08:00
Mateusz Reszka
742bc36edd
api: support put content ( #7114 )
...
Co-authored-by: Joe Chen <jc@unknwon.io >
2022-10-22 23:52:48 +08:00
Yang Liu
b9f5cfddc1
auth: enable authentication by token from password ( #7198 )
...
Co-authored-by: Joe Chen <jc@unknwon.io >
2022-10-22 21:25:36 +08:00
Joe Chen
7cbd84d5b3
refactor(db): rename User.Passwd to User.Password ( #7196 )
2022-10-22 14:56:25 +08:00
Joe Chen
8982a42d38
refactor(db): move User.HasForkedRepository to users.HasForkedRepository ( #7176 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-10-09 22:55:32 +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
Joe Chen
1df62fafb9
db: use context and go-mockgen for ReposStore ( #7046 )
2022-06-11 12:43:56 +08:00
Joe Chen
f837ea6346
db: use context and go-mockgen for UsersStore ( #7042 )
2022-06-11 09:42:17 +08:00
Joe Chen
7229dd893f
db: use context and go-mockgen for PermsStore ( #7033 )
2022-06-08 19:26:20 +08:00
Joe Chen
fe1d07f29c
db: rename AccessTokensStore.Save to Touch ( #7029 )
2022-06-08 13:34:10 +08:00
Joe Chen
0a92ad27ef
db: use context and go-mockgen for AccessTokensStore ( #7013 )
2022-06-06 12:10:36 +08:00
E99p1ant
a328e7ccc4
access_token: encrypt access token with SHA256 ( #7008 )
...
* access_token: encrypt access token with SHA256
* revert list access token
* fix lint
* generate schemadoc
* add database migrations
* fix tests
* fix tests
* add test case for access token golden
* fix test in postgres
* `Sha256` -> `SHA256`
* Use GORM for migration
* task generate-schemadoc
* Use unique
* change migration name
* allow read
* task generate-schemadoc
* add changelog
* fix lint error
* update changelog
* remove Debug
* add comments
Co-authored-by: Joe Chen <jc@unknwon.io >
2022-06-05 13:34:21 +08:00
Toby Simmons
d54e153fc8
csrf: sanitize token after reading from cookie ( #6969 )
...
Co-authored-by: Joe Chen <jc@unknwon.io >
2022-05-26 23:56:14 +08:00
Joe Chen
f45dbf3e76
chore: watch "custom" directory in dev and use lowercase for header value ( #6927 )
2022-05-03 17:54:14 +08:00
deepsource-autofix[bot]
2466da4e82
autofix: fix nested if with else if ( #6807 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-03-06 16:39:14 +08:00
deepsource-autofix[bot]
deec3516d5
autofix: fix check for empty string ( #6804 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-03-06 16:33:45 +08:00
deepsource-autofix[bot]
2d609b8b31
autofix: types of function parameters can be combined ( #6800 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-03-06 15:59:45 +08:00
Atin
d6987ee05b
chore: fix typos in code comments ( #6556 )
2021-05-19 13:12:09 +08:00
weibaohui
c7f58ca870
templates: fix typo of BranchCount ( #6370 )
...
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io >
2020-11-24 23:13:40 +08:00
Matheus Mosca
997ba0fef0
context: add X-Frame-Options header ( #6411 )
...
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io >
2020-11-11 12:17:43 +08:00
E99p1ant
fd765bd88f
context: fix Access-Control-Allow-Credentials header typo ( #6381 )
2020-10-10 23:09:42 +08:00
ᴜɴᴋɴᴡᴏɴ
2eaf1d693a
db: migrate access table to use GORM ( #6371 )
2020-10-06 15:43:28 +08:00
ᴜɴᴋɴᴡᴏɴ
3af91d7cfd
auth: decouple types and functions from db ( #6320 )
2020-09-20 11:19:02 +08:00
ᴜɴᴋɴᴡᴏɴ
594a2dc41f
web: correctly serving go-get pages for subdirs ( #6318 )
...
* web: correctly serving go-get page for subdirs
* Update CHANGELOG
* Fix golint error
2020-09-09 20:14:48 +08:00
ᴜɴᴋɴᴡᴏɴ
178b73fecd
repo: users have access to base repository can also view forks ( #6261 )
2020-08-22 13:17:45 +08:00
ᴜɴᴋɴᴡᴏɴ
a961afe52b
db: fix update team panic ( #6253 )
...
* db: fix update team panic
* Update CHANGELOG
2020-08-16 21:31:08 +08:00
ᴜɴᴋɴᴡᴏɴ
07818d5fa5
route: no session for routes without UI ( #6066 )
...
Not all routes need session, register session and CSRF middleware as global is a waste of resource, and creating a lot one-time off yet never used session records.
2020-04-05 06:36:08 +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
ᴜɴᴋɴᴡᴏɴ
e14b6abf9d
http: always set header X-Content-Type-Options to nosniff ( #6008 )
2020-03-23 22:18:05 +08:00
ᴜɴᴋɴᴡᴏɴ
a4de85dc80
util: add tests ( #5989 )
2020-03-16 01:54:08 +08:00
ᴜɴᴋɴᴡᴏɴ
9e9ca66467
refactor: unify error handling in routing layer
2020-03-16 01:22:27 +08:00