aboutsummaryrefslogtreecommitdiff
path: root/internal
Commit message (Collapse)AuthorAge
* db: use `context` and go-mockgen for `PermsStore` (#7033)Joe Chen2022-06-08
|
* db: add back xorm tag for `AccessToken.UserID` (#7032)Joe Chen2022-06-08
|
* db: rename `AccessTokensStore.Save` to `Touch` (#7029)Joe Chen2022-06-08
|
* http: clean request path from Git endpoints (#7022)Joe Chen2022-06-07
|
* pathutil: check both styles of `os.PathSeparator` (#7020)Joe Chen2022-06-07
|
* db: use `context` and go-mockgen for `AccessTokensStore` (#7013)Joe Chen2022-06-06
|
* schemadoc: print table indexes (#7012)Joe Chen2022-06-05
|
* access_token: encrypt access token with SHA256 (#7008)E99p1ant2022-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>
* db: code tidy up for `AccessTokens` (#7006)Joe Chen2022-06-04
|
* repo_editor: check both styles of `os.PathSeparator` in all systems (#7005)Joe Chen2022-06-04
|
* pull: ignore PR status check if head repository is missing (#7004)Joe Chen2022-06-04
|
* http: fix non-sense `NotFound` call (#7003)Joe Chen2022-06-04
|
* repo: remove hard-coded branch name in init (#6999)Joe Chen2022-06-03
|
* db: run tests with pure-Go SQLite (#6998)Joe Chen2022-06-03
|
* ci: run database tests against Postgres, MySQL and SQLite (#6996)Joe Chen2022-06-01
|
* webhook: revalidate local hostname before each delivery (#6988)Joe Chen2022-05-31
|
* repo_editor: prohibit move files to to `.git` directory (#6986)Joe Chen2022-05-31
|
* repo_editor: prohibits uploading files to `.git.` directory (#6970)11352022-05-30
| | | Co-authored-by: Joe Chen <jc@unknwon.io>
* mod: bump gopkg.in/ini.v1 from 1.66.4 to 1.66.5 (#6984)dependabot[bot]2022-05-30
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joe Chen <jc@unknwon.io>
* web: print accessible URL on startup (#6979)Joe Chen2022-05-29
|
* csrf: sanitize token after reading from cookie (#6969)Toby Simmons2022-05-26
| | | Co-authored-by: Joe Chen <jc@unknwon.io>
* chore: fix lint errors (#6951)Joe Chen2022-05-16
|
* chore: watch "custom" directory in dev and use lowercase for header value ↵Joe Chen2022-05-03
| | | | (#6927)
* attachment: set CSP header in the serving endpoint (#6926)Joe Chen2022-05-03
|
* restore: fix incorrect existence checking of "repositories.zip" (#6914)4e4o2022-04-27
|
* mod: bump github.com/gogs/git-module from 1.5.0 to 1.6.0 (#6894)dependabot[bot]2022-04-05
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joe Chen <jc@unknwon.io>
* webhook: add missing `%s` URL value for webhook description (#6478)Renzo Toma2022-04-04
| | | Co-authored-by: Joe Chen <jc@unknwon.io>
* restore: clean up leftover and invalid chars (#6875)Joe Chen2022-03-26
|
* mod: bump github.com/gogs/git-module from 1.2.0 to 1.4.0 (#6866)dependabot[bot]2022-03-22
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joe Chen <jc@unknwon.io>
* assets: convert usage of go-bindata to Go embed (#6851)Michael Li2022-03-17
| | | Co-authored-by: Joe Chen <jc@unknwon.io>
* chore: run `task generate` (#6844)Joe Chen2022-03-15
|
* conf: add allowlist for accessing local network (#6842)Joe Chen2022-03-14
|
* golangci-lint: add `unparam` linter (#6839)Joe Chen2022-03-13
|
* repo_editor: check upload `TreePath` and file name (#6838)Joe Chen2022-03-13
|
* autofix: format code with gofmt and gofumpt (#6821)deepsource-autofix[bot]2022-03-08
| | | | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> [skip ci]
* security: fix improper PAM authorization handling (#6819)ysf2022-03-08
| | | Co-authored-by: Joe Chen <jc@unknwon.io>
* security: fix SSRF in repository migration (#6812)Michael Rowley2022-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: fix nested `if` with `else if` (#6807)deepsource-autofix[bot]2022-03-06
| | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
* autofix: fix unused method receiver (#6808)deepsource-autofix[bot]2022-03-06
| | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
* autofix: fix unnecessary allocations due to `strings.Index` call (#6806)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: simplify slice expression to sliced value itself (#6801)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>
* markdown: support rendering Mermaid diagrams (#6776)shuyue2022-03-05
| | | Co-authored-by: Joe Chen <jc@unknwon.io>
* dep: update github.com/go-ldap/ldap to v3 (#6763)Simone Cattaneo2022-02-26
| | | Co-authored-by: Joe Chen <jc@unknwon.io>
* chore: rename few consts to camel case (#6725)Joe Chen2022-01-13
|
* markup: use default link formation when no format in metas (#6723)Joe Chen2022-01-13
|