Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | all: replace `interface{}` with `any` (#7330) | Joe Chen | 2023-02-02 |
| | | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | ||
* | refactor(db): migrate `UpdateUser` off `user.go` (#7267) | Joe Chen | 2022-11-27 |
| | |||
* | chore: consistently use `errors.Cause` for identifying error types (#7264) | Joe Chen | 2022-11-27 |
| | |||
* | refactor(db): add `Users.Update` (#7263) | Joe Chen | 2022-11-27 |
| | |||
* | refactor(db): migrate methods off and delete deprecated methods from ↵ | Joe Chen | 2022-11-05 |
| | | | | `user.go` (#7231) | ||
* | refactor(db): migrate methods off `user.go` (#7228) | Joe Chen | 2022-11-05 |
| | |||
* | refactor(db): migrate methods off `user.go` and `org.go` (#7219) (#7227) | Joe Chen | 2022-11-05 |
| | |||
* | refactor(db): migrate perms methods off `user.go` (#7207) | Joe Chen | 2022-10-23 |
| | |||
* | refactor(db): migrate password methods off `user.go` (#7205) | Joe Chen | 2022-10-23 |
| | |||
* | chore(db): remove unused field (#7202) | Joe Chen | 2022-10-23 |
| | |||
* | refactor: replace `ioutil.ReadAll` with `io.ReadAll` (#7200) | Joe Chen | 2022-10-22 |
| | |||
* | auth: enable authentication by token from password (#7198) | Yang Liu | 2022-10-22 |
| | | | Co-authored-by: Joe Chen <jc@unknwon.io> | ||
* | refactor(db): move some methods from `user.go` to `users.go` (#7195) | Joe Chen | 2022-10-22 |
| | |||
* | refactor(db): move `User.HasForkedRepository` to `users.HasForkedRepository` ↵ | Joe Chen | 2022-10-09 |
| | | | | | (#7176) Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | ||
* | db: refactor "action" table to use GORM (#7054) | Joe Chen | 2022-06-25 |
| | | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | ||
* | db: use `context` and go-mockgen for `ReposStore` (#7046) | Joe Chen | 2022-06-11 |
| | |||
* | db: use `context` and go-mockgen for `UsersStore` (#7042) | Joe Chen | 2022-06-11 |
| | |||
* | db: use `context` and go-mockgen for `PermsStore` (#7033) | Joe Chen | 2022-06-08 |
| | |||
* | db: rename `AccessTokensStore.Save` to `Touch` (#7029) | Joe Chen | 2022-06-08 |
| | |||
* | http: clean request path from Git endpoints (#7022) | Joe Chen | 2022-06-07 |
| | |||
* | db: use `context` and go-mockgen for `AccessTokensStore` (#7013) | Joe Chen | 2022-06-06 |
| | |||
* | access_token: encrypt access token with SHA256 (#7008) | E99p1ant | 2022-06-05 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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> | ||
* | http: fix non-sense `NotFound` call (#7003) | Joe Chen | 2022-06-04 |
| | |||
* | webhook: revalidate local hostname before each delivery (#6988) | Joe Chen | 2022-05-31 |
| | |||
* | webhook: add missing `%s` URL value for webhook description (#6478) | Renzo Toma | 2022-04-04 |
| | | | Co-authored-by: Joe Chen <jc@unknwon.io> | ||
* | conf: add allowlist for accessing local network (#6842) | Joe Chen | 2022-03-14 |
| | |||
* | security: fix SSRF in repository migration (#6812) | Michael Rowley | 2022-03-08 |
| | | | Co-authored-by: Joe Chen <jc@unknwon.io> | ||
* | autofix: format code with gofumpt and gofmt (#6803) | deepsource-autofix[bot] | 2022-03-06 |
| | | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | ||
* | autofix: function call can be replaced with helper function (#6805) | deepsource-autofix[bot] | 2022-03-06 |
| | | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | ||
* | autofix: fix check for empty string (#6804) | deepsource-autofix[bot] | 2022-03-06 |
| | | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | ||
* | autofix: types of function parameters can be combined (#6800) | deepsource-autofix[bot] | 2022-03-06 |
| | | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | ||
* | autofix: unused parameter should be replaced by underscore (#6799) | deepsource-autofix[bot] | 2022-03-06 |
| | | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | ||
* | chore: rename few consts to camel case (#6725) | Joe Chen | 2022-01-13 |
| | |||
* | ci: use new lint action and add custom config (#6562) | ᴜɴᴋɴᴡᴏɴ | 2021-05-19 |
| | |||
* | chore: fix typos in code comments (#6556) | Atin | 2021-05-19 |
| | |||
* | db: migrate access table to use GORM (#6371) | ᴜɴᴋɴᴡᴏɴ | 2020-10-06 |
| | |||
* | Add git diff timeout in app config (#6348) | Zhukov Roman | 2020-09-29 |
| | | | Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | ||
* | auth: decouple types and functions from db (#6320) | ᴜɴᴋɴᴡᴏɴ | 2020-09-20 |
| | |||
* | repo: support unlisted but publicly accessible repositories (#6176) | Achilleas Koutsou | 2020-09-04 |
| | | | Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | ||
* | db: add tests for repos (#6112) | ᴜɴᴋɴᴡᴏɴ | 2020-04-17 |
| | | | | | | | | | | | * Add Repos.create method * Fix repo name error handling * Fix all compile errors * Update github.com/go-macaron/captcha to fix http issue * Add repos tests | ||
* | db: add tests for two factors (#6099) | ᴜɴᴋɴᴡᴏɴ | 2020-04-14 |
| | | | | | | | | | | | | | | | * Rename to TwoFactors.Create * Use GORM to execute queries * TwoFactor.GetByUserID * Add tests * Fix failing tests * Add MD5 tests * Add tests for RandomChars | ||
* | access_token: migrate to GORM and add tests (#6086) | ᴜɴᴋɴᴡᴏɴ | 2020-04-11 |
| | | | | | | | | | * access_token: migrate to GORM * Add tests * Fix tests * Fix test clock | ||
* | repo: disable public access option when using external wiki and issue ↵ | alpencrossi | 2020-04-09 |
| | | | | tracker (#6081) | ||
* | route: bypass require signin check for trigger repo tasks (#6079) | ᴜɴᴋɴᴡᴏɴ | 2020-04-08 |
| | | | | | | | * route: bypass require signin check for trigger repo tasks * CHANGELOG * Fix lint errors | ||
* | lfs: add unit test for middleware (#6070) | ᴜɴᴋɴᴡᴏɴ | 2020-04-06 |
| | | | | | | | | | | | * Add unit test for `authenticate` middleware * Add more cases * Add tests for verifyOID and internalServerError * Add tests for verifyHeader * Add tests for authroize | ||
* | route: no session for routes without UI (#6066) | ᴜɴᴋɴᴡᴏɴ | 2020-04-05 |
| | | | 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. | ||
* | lfs: implement HTTP routes (#6035) | ᴜɴᴋɴᴡᴏɴ | 2020-04-04 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||
* | template: better diff handling of rename and deleted files (#6048) | ᴜɴᴋɴᴡᴏɴ | 2020-03-31 |
| | | | | | * dep: bump github.com/gogs/git-module from 1.0.2 to 1.1.0 * template: better diff handling or rename and deleted files | ||
* | dep: bump github.com/gogs/git-module from 1.0.1 to 1.0.2 (#6030) | ᴜɴᴋɴᴡᴏɴ | 2020-03-29 |
| | |||
* | webhook: overhaul route handlers (#6002) | ᴜɴᴋɴᴡᴏɴ | 2020-03-22 |
| | | | | | | | | | | | | | | | * Overual route handlers and fixes #5366 * Merge routes for repo and org * Inject OrgRepoContext * DRY validateWebhook * DRY c.HasError * Add tests * Update CHANGELOG |