aboutsummaryrefslogtreecommitdiff
path: root/internal
Commit message (Collapse)AuthorAge
...
* 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
|
* locale: sync from Crowdin (#6714)Joe Chen2022-01-08
|
* database: add PostgreSQL custom schema support (#6695)zvrh2022-01-05
| | | | | 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>
* db: skip ping when not available (#6687)Joe Chen2021-12-20
|
* chore: fix typo in message.go (#6587)Ikko Ashimine2021-12-16
|
* api: support listing repository tags (#6656)Devops2021-12-14
| | | | Co-authored-by: zhouzhibo <zhouzhibo> Co-authored-by: Joe Chen <jc@unknwon.io>
* locale: sync from Crowdin (#6651)Joe Chen2021-11-28
|
* api: EditWiki implementation (#5860)Pavel M2021-11-10
| | | Co-authored-by: Joe Chen <jc@unknwon.io>
* locale: sync from Crowdin (#6633)Joe Chen2021-10-23
|
* chore: fix lint errors (#6620)Joe Chen2021-09-24
|
* api: add `GET /api/v1/{owner}/{repo}/commits` endpoint (#6574)Jordan Levin2021-09-24
| | | | | | | | | This pull request targets issue #6573. It provides a new API endpoint: `/api/v1/repos/{org}/{repo}/commits?pageSize=<int>` with a default page size of 30 commits (the same as the UI). This implementation currently only focuses on the main/master branch of the repository, and does not provide the ability to return commit history for other branches. - Note: Since the logic for converting a git.Commit to api.Commit had to be used in `GetAllCommits` and `GetSingleCommit`, I decided to pull the code out into a helper function, ` gitCommitToAPICommit(commit, context)`.
* web: correctly handle go-get pages for repository roots (#6598)James-REANNZ2021-08-26
| | | Fixes regression in go-get handling introduced in #6318.
* locale: sync from Crowdin (#6602)ᴜɴᴋɴᴡᴏɴ2021-08-08
|
* ci: use new lint action and add custom config (#6562)ᴜɴᴋɴᴡᴏɴ2021-05-19
|
* chore: fix typos in code comments (#6556)Atin2021-05-19
|
* locale: sync from Crowdin (#6510)ᴜɴᴋɴᴡᴏɴ2021-02-27
| | | | | * locale: sync from Crowdin * Fix tests
* locale: sync from Crowdin (#6449)ᴜɴᴋɴᴡᴏɴ2020-12-13
|
* db: simplify GORM logger init in tests (#6444)ᴜɴᴋɴᴡᴏɴ2020-12-06
|
* ssh: allow setting allowed MAC algorithms for built-in server (#6435)Eduardo Bacchi Kienetz2020-12-04
| | | Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
* build(deps): bump gorm.io/gorm from 1.20.6 to 1.20.7 (#6425)dependabot-preview[bot]2020-11-28
| | | | | | | | | | | | | | * build(deps): bump gorm.io/gorm from 1.20.6 to 1.20.7 Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm) from 1.20.6 to 1.20.7. - [Release notes](https://github.com/go-gorm/gorm/releases) - [Commits](https://github.com/go-gorm/gorm/compare/v1.20.6...v1.20.7) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fix compile error Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
* repo: disallow urlencoded new lines in git protocol paths (#6420)stypr2020-11-27
| | | Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
* templates: fix typo of BranchCount (#6370)weibaohui2020-11-24
| | | Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
* locale: sync from Crowdin (#6419)ᴜɴᴋɴᴡᴏɴ2020-11-15
|
* context: add X-Frame-Options header (#6411)Matheus Mosca2020-11-11
| | | Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
* locale: sync from Crowdin (#6404)ᴜɴᴋɴᴡᴏɴ2020-10-31
|
* locale: sync from Crowdin (#6383)ᴜɴᴋɴᴡᴏɴ2020-10-11
|
* context: fix Access-Control-Allow-Credentials header typo (#6381)E99p1ant2020-10-10
|
* db: migrate access table to use GORM (#6371)ᴜɴᴋɴᴡᴏɴ2020-10-06
|
* lfs: ask client to always send the same value for the HTTP header (#6369)ᴜɴᴋɴᴡᴏɴ2020-10-04
|
* locale: sync from Crowdin (#6367)ᴜɴᴋɴᴡᴏɴ2020-10-04
|
* Add git diff timeout in app config (#6348)Zhukov Roman2020-09-29
| | | Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
* markup: render SHA links without branch prefix (#6350)Jeff2020-09-29
| | | | Co-authored-by: Zhukov Roman <zhukov.roman@gmail.com> Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>