aboutsummaryrefslogtreecommitdiff
path: root/internal
Commit message (Collapse)AuthorAge
...
* locale: sync from Crowdin (#5965)ᴜɴᴋɴᴡᴏɴ2020-03-04
|
* auth: redirect landing URL with subpath prepended (#5964)ᴜɴᴋɴᴡᴏɴ2020-03-04
|
* cmd/serv: improve hookMode handling (#5960)ᴜɴᴋɴᴡᴏɴ2020-03-02
| | | | - Allow remove primary logger at better location - Use more appropriate log.Error to replace log.Fatal
* git: explicitly disable debug in prod mode (#5959)ᴜɴᴋɴᴡᴏɴ2020-03-02
| | | After first time running the application and went through the installation, the flag was always true until restarted.
* log: fix testsᴜɴᴋɴᴡᴏɴ2020-03-02
|
* cmd: init minimal logging config in hook modeᴜɴᴋɴᴡᴏɴ2020-03-02
|
* lint: fix some Golang CI lint issues (#5955)ᴜɴᴋɴᴡᴏɴ2020-03-01
|
* conf: enhance app.ini commentsᴜɴᴋɴᴡᴏɴ2020-03-01
|
* template: improve admin config pageᴜɴᴋɴᴡᴏɴ2020-03-01
|
* js: fix jQuery errorᴜɴᴋɴᴡᴏɴ2020-02-29
|
* css: fix /admin/config pre overflowᴜɴᴋɴᴡᴏɴ2020-02-29
|
* conf: add unit tests (#5954)ᴜɴᴋɴᴡᴏɴ2020-02-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* conf: overhaul settings (#5953)ᴜɴᴋɴᴡᴏɴ2020-02-29
| | | | | | | | | | | | | | * Overhaul cache settings * Overhaul HTTP settings * conf: overhaul more settings * log: make LGTM happy * travis: upload report to Codecov * Add codecov.yml
* conf: overhaul sessions settings (#5952)ᴜɴᴋɴᴡᴏɴ2020-02-29
|
* public: update to new logoᴜɴᴋɴᴡᴏɴ2020-02-27
|
* conf: overhaul auth and user settings (#5942)ᴜɴᴋɴᴡᴏɴ2020-02-27
| | | | | | * conf: overhaul auth and user settings * ci: update travis Go versions
* api: support getting repository Git tree (#5934) (#5937)Bharat Nallan2020-02-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add basic git repository tree api (#5934) This PR adds the tree api endpoint to gogs api: `GET/repos/:owner/:repo/git/trees/:tree_sha` This new api endpoint that is being added is in conformance to the GitHub REST API v3 specification. Documentation can be found here: developer.github.com/v3/git/trees/#get-a-tree For a given user, repo and sha value, this api (currently) returns a single tree using the SHA1 value for that tree. - Recursive implementation is yet to be implemented. - Creating a Tree using POST is yet to be implemented. Example curl: ``` l curl -H "Authorization: token REDACTED" http://localhost:3000/api/v1/repos/root/testrepo/git/trees/c59441ded1549b149def0d4c54594d31a7f3718f -X GET | jq . % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 940 100 940 0 0 12034 0 --:--:-- --:--:-- --:--:-- 12051 [ { "sha": "c59441ded1549b149def0d4c54594d31a7f3718f", "tree": [ { "mode": "120000", "path": "/home/bharatnc/gogs-repositories/root/testrepo.git", "sha": "472ac2361b65136b393d652de25341e2ea44f299", "size": 1077, "type": "blob", "url": "http://localhost:3000/api/v1/repos/root/testrepo/git/trees/472ac2361b65136b393d652de25341e2ea44f299" }, { "mode": "120000", "path": "/home/bharatnc/gogs-repositories/root/testrepo.git", "sha": "70fcb456d436f08462602f26df6fb7e167e7a916", "size": 12, "type": "blob", "url": "http://localhost:3000/api/v1/repos/root/testrepo/git/trees/70fcb456d436f08462602f26df6fb7e167e7a916" }, { "mode": "120000", "path": "/home/bharatnc/gogs-repositories/root/testrepo.git", "sha": "092c58d4b63df5779a4d020b1fdbb762421bbb4f", "size": 380, "type": "blob", "url": "http://localhost:3000/api/v1/repos/root/testrepo/git/trees/092c58d4b63df5779a4d020b1fdbb762421bbb4f" } ], "url": "http://localhost:3000/api/v1/repos/root/testrepo/git/trees/c59441ded1549b149def0d4c54594d31a7f3718f" } ] ``` * remove vertical space * make go.mod to be same as in master * rename structs to sound better * simplify expressions and fix error msg * Update tree.go * Update tree.go * display file name instead of repo path * Update tree.go Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
* conf: overhaul email settings (#5940)ᴜɴᴋɴᴡᴏɴ2020-02-25
|
* cmd/web: fix wrong ExternalURL when specify port via CLI flagᴜɴᴋɴᴡᴏɴ2020-02-24
| | | | Fixes #5936.
* cmd/web: fix error when Unix socket not existsᴜɴᴋɴᴡᴏɴ2020-02-24
|
* conf: overhaul security settingsᴜɴᴋɴᴡᴏɴ2020-02-22
|
* cmd: fix unable to find correct custom configᴜɴᴋɴᴡᴏɴ2020-02-22
|
* conf: overhaul database settingsᴜɴᴋɴᴡᴏɴ2020-02-22
|
* conf: overhaul repository settings (#5932)ᴜɴᴋɴᴡᴏɴ2020-02-22
|
* admin/config: show all server and SSH optionsᴜɴᴋɴᴡᴏɴ2020-02-22
|
* conf: overhaul server settings (#5928)ᴜɴᴋɴᴡᴏɴ2020-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* build: rename build tag miniwinsvc -> minwinsvcᴜɴᴋɴᴡᴏɴ2020-02-20
| | | | This was in fact a typo.
* log: migrate to unknwon.dev/clog/v2 (#5927)ᴜɴᴋɴᴡᴏɴ2020-02-20
| | | | | | * Add unknwon.dev/clog/v2 * Update all places
* conf: remove unused config option SHOW_FOOTER_VERSIONᴜɴᴋɴᴡᴏɴ2020-02-20
|
* repo/editor: clean up tree pathᴜɴᴋɴᴡᴏɴ2020-02-19
| | | | Fixes a security issue reported by @zeripath.
* osutil: add unit testsᴜɴᴋɴᴡᴏɴ2020-02-19
|
* log: use trace level for some logsᴜɴᴋɴᴡᴏɴ2020-02-19
|
* admin: show all version in dashboardᴜɴᴋɴᴡᴏɴ2020-02-19
| | | | And removed version info from footer.
* docs: improve set up guideᴜɴᴋɴᴡᴏɴ2020-02-19
| | | | [CI SKIP]
* README: update Features listᴜɴᴋɴᴡᴏɴ2020-02-18
| | | | [CI SKIP]
* mailer: fix template not found errorᴜɴᴋɴᴡᴏɴ2020-02-18
|
* Add CHANGELOG and adopt new release workflowᴜɴᴋɴᴡᴏɴ2020-02-18
| | | | In development, the version now has +dev suffix indicates it is not a binary release.
* Use go-bindata to embed `public` and `templates` files into binary (#5920)Michael Li2020-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fixed private repositories are hidden in the organization's view * use go-bindata integrate public and templates files to gogs binary * optimize Dockerfile don't COPY public and templates files * use kevinburke's go-bindata to generate assets code * reset develepment as default run mode in configure file * optimize generated assets code relayout and help function * fixed code format * Update conf/app.ini * assets: add LICENSE headers * Some housekeeping * assets/public: simplify code logic * assets/templates: simplify code logic * cmd/web: more concise variable names * Minor changes * Add custom public and templates support back Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
* db/repo: fix Git version check to 1.8.3Unknwon2020-02-04
|
* locale: sync from CrowdinUnknwon2020-02-04
|
* all: use lazyregexp (#5911)ᴜɴᴋɴᴡᴏɴ2020-01-29
| | | | | | * Use lazyregexp * all: fix imports and usages
* conf: fix wrong default example valueUnknwon2020-01-29
|
* repo: able fill pull request title by template from md file (#5901)ivan2020-01-29
| | | | | | | | | | | | | | | | * able fill pull request title by template from md file * fix: unusedresult: result of fmt.Sprintf call not used (from govet) * fix: remove import fmt -> not used * after review / PullRequestTitleTemplateCandidates moved to after line 39 * Update pull.go * Update pull.go Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
* api/misc/markdown: remove Mode option (#5910)ᴜɴᴋɴᴡᴏɴ2020-01-29
| | | We already have a separate `/markdown/raw` API, remove redundant functionality here.
* api: sanitize raw markdown content (#5907)ᴜɴᴋɴᴡᴏɴ2020-01-27
| | | Fixed a security issue reported by bluebird.
* repo: fix redirect after opening/closing milestone (#5903)Andrey Filippov2020-01-26
| | | | | | | | | | | | | | | | * Fix milestone redirect * gosimple * Apply suggestions from code review Co-Authored-By: ᴜɴᴋɴᴡᴏɴ <u@gogs.io> * fix typo * Update docstring of MakeURL Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
* user/setting: check for IsErrEmailAlreadyUsed when updating user (#5900)Achilleas Koutsou2020-01-23
| | | | | | Check for email collisions when updating the entire user information, not when the username is being changed. Fixes #5899
* internal/db/org: fix private repositories are hidden in the organization ↵Michael Li2020-01-21
| | | | view (#5890)
* repo: use editorconfig v2 (#5888)Yoan Blanc2019-12-25
| | | | | | | | | | | | | | | | * repo: editorconfig v2 Signed-off-by: Yoan Blanc <yoan@dosimple.ch> * fixup! repo: editorconfig v2 Signed-off-by: Yoan Blanc <yoan@dosimple.ch> * Update repo.go * Update repo.go Co-authored-by: Unknwon <u@gogs.io>
* repo: fix stale webhook documentation link (#5883)Kevin Gentile2019-12-09
|