aboutsummaryrefslogtreecommitdiff
path: root/routes
Commit message (Collapse)AuthorAge
* routes/repo/http: fix wrong format typeUnknwon2018-06-13
|
* api: correct pagination in repository search api (#5293)oOOps2018-06-13
|
* repo: minor improve for PR #5219 and support UTF-8 byte countUnknwon2018-06-11
|
* repo: update repository description field to contain more than 256 symbols ↵Sergey Dryabzhinsky2018-06-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#5219) * Update repository description field to contain more than 256 symbols - update repository model - description field now is `TEXT` and limited by 4000 symbols - new migration - add description to html forms - repo creation and repo settings - add translation for description * Update for description field, new features - add autosize (height) for description textarea, new plugin - set max description length to 512 symbols - update locales * Fix migration - typo in var * Update repo description behaviour - add textarea autosize for /repo/create - add symbols counter under description testarea (create/edit) * Fix function definition - it a var * Revert ru-RU locale * Update by review - Use type `varchar(512)` in migration - Remove unused files from autosize plugin * Fix migration - new project paths * Fixes after review 2 - copyright year - format includes - use switch instead of multi-if * Remove unused `default:` option.
* *: use jsoniter to replace encoding/jsonUnknwon2018-06-09
|
* routes/repo: added deletion of an empty line at the end of file (#5261) (#5270)Alexey Terentyev2018-06-06
| | | | | | | | | | * Added deletion of an empty line at the end of file (#5261) Signed-off-by: Alexey Terentyev <axifnx@gmail.com> * Fix after feedback Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* mirror: show sync feeds on dashboard (#2017)Unknwon2018-05-30
|
* *: rename "gogits" to "gogs"Unknwon2018-05-27
|
* routes/user/setting: fix avatar email update error (#5245)Wei He2018-05-26
|
* routes/user/auth: improve coding styleUnknwon2018-05-21
|
* security: prevent same passcode from being reusedUnknwon2018-05-21
| | | | Reported by @cezar97.
* security: fix path cleanup for repository init and editor (#5207)Lauris BH2018-05-08
| | | Reported by Kacper Szurek https://security.szurek.pl/.
* templates/repo/issue: rework escape delete branch link after merged pull ↵Unknwon2018-04-16
| | | | request (#4601)
* auth: support authentication source config file (#3142)Unknwon2018-04-12
|
* MISC: fix typo and grammarUnknwon2018-03-30
| | | | Reference: https://github.com/gogits/gogs/commit/932490d7f137a2adf896e4e9326f4e8f2b9a2b54#commitcomment-28344918
* conf: add option to rewrite authorized_keys file at start (#4435)Unknwon2018-03-30
| | | | Added config option '[server] REWRITE_AUTHORIZED_KEYS_AT_START'.
* models: rename RewriteAllPublicKeys -> RewriteAuthorizedKeysUnknwon2018-03-30
|
* repo/http: add CORS headers to allow clone/push from browser agents (#4970)William Hilton2018-03-14
|
* repo: improve error handling for PR #4803Unknwon2018-03-08
|
* models: move ErrBranchNotExist to errors packageUnknwon2018-03-08
|
* repo: disallow web ui to delete protected branch after PR merged (#4803)bayangan19912018-03-08
| | | | | | | | | | * Disallow web ui to delete protected branch * Fix for branches not yet protected Had to change how error was handled. If a branch had not yet been protected the error would be generated. Reworked to start as false and then use the protected if it was found.
* repo/commit: fix file commit history pagination (#4965)Douglas Thrift2018-03-06
| | | | | - The `commits_table.tmpl` pagination uses a `$.FileName` variable in order to generate the next/previous URLs, but it seems like that variable was no longer being populated in `renderCommits`.
* MISC: minor fixes in webhookUnknwon2017-11-18
|
* pull_request: able to ignore whitespace when check conflict (#4834)Unknwon2017-11-16
|
* admin/config: add UI for [http] section (#3987)Unknwon2017-11-16
|
* repo/pull: allow rebase before merging (#4805)Unknwon2017-11-15
|
* pull: add an option to use rebase for merging pull requestsmharinder2017-11-15
| | | | | | | | | | | | | | | | For DVCS, either merge or rebase works for getting new code in a pull request in the main branch. The rebase workflow produces a linear history which is cleaner, and more bisect-able. This commit adds a repo-level option to enable the rebase workflow. Once enabled, "Merge Pull Request" will be replaced by "Rebase and Merge Pull Request" which does exactly what the user wants. It's unlikely a project wants a mixed-use of both rebase and merge workflows, therefore the feature is not implemented as a drop-down button like what GitHub does (https://github.com/blog/2243-rebase-and-merge-pull-requests).
* api: add endpoint /api/v1/user/orgs (#4835)Anton Antonov2017-11-13
| | | | | | | | | | | * Add API endpoint /api/v1/user/orgs The difference between this endpoint and /api/v1/admin/users/<username>/orgs, is that here you're creating a repo with the `user` that corresponds to the API token you're using. * Extract duplicate API org creation
* user/auth: fix page not redirect after loginUnknwon2017-10-22
|
* SECURITY: HTML injection in user search APIUnknwon2017-10-14
| | | | Reported by Tim Hawes.
* Add Dingtalk webhook support (#4773)Athurg Feng2017-09-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add dingtalk webhook into html template * Add Dingtalk's icon * Insert dingtalk into repo's webhook page template * Insert dingtalk into org's webhook page * Add dingtalk into default webhook config * Add locale string for add_dingtalk_hook_desc * Update bindata * Add dingtalk webhook form validator * Add dingtalk hook task * Add dingtalk hook create handler * Add dingtalk hook edit handler * Add dingtalk router * Add dingtalk webhook task skeleton * Add markdown link formatter * Add Dingtalk ActionCard create wrapper * Add support for dingtalk create event payload * Add support for dingtalk delete event payload * Add support for dingtalk fork event payload * Add support for dingtalk push event payload * Add support for dingtalk issue event payload * Add support for dingtalk issue comment payload * Add support for dingtalk pull event payload * Add support for dingtalk release event payload
* routes/home: minor code improveUnknwon2017-07-18
|
* repo: fix panic on pull request submit (#4572)Unknwon2017-07-14
|
* issue_comment: fix pg syntax ambiguous (#4586)Unknwon2017-06-27
| | | | Also handle error related to time parsing.
* api/repo: load attributes when listing user repositories (#4565)Unknwon2017-06-21
|
* random: some code simplifyUnknwon2017-06-11
|
* Refactoring: rename package routers -> routesUnknwon2017-06-11