aboutsummaryrefslogtreecommitdiff
path: root/models
Commit message (Collapse)AuthorAge
* internal: move packages under this directory (#5836)Unknwon2019-10-24
| | | | | | | | | | | | | | | | | | * Rename pkg -> internal * Rename routes -> route * Move route -> internal/route * Rename models -> db * Move db -> internal/db * Fix route2 -> route * Move cmd -> internal/cmd * Bump version
* Enable Go modules (#5835)Unknwon2019-10-23
| | | | | | | | | | | | | | | | * Remove vendor * Enable Go modules * ci: add command to fetch dependencies * ci: update setting * ci: update settings * Require Go 1.11 * Rename module name to gogs.io/gogs
* models/token: generate bindata and simplify code (#5820)Unknwon2019-10-15
|
* token: disallow multiple tokens with same name (#5820)Frode Aannevik2019-10-15
| | | | | | | | | | | | | | | * api/v1: don't allow multiple tokens with same name Fail with 422 Unprocessable Entity if the token name already exist ref: https://github.com/gogs/gogs/issues/5587 * Move new token error type to models/errors/token * Remove "useless" ListAccessTokensByName function * Add an i18n entry for token_name_exists
* models/issue_mail: don't send email to non-active users (#5788)Alexey Agafonov2019-08-24
| | | Fixes #5782
* routes/api/v1: codemodunknwon2019-08-08
|
* Include the Sha in webhook create payloads. (#5689)Robin van Boven2019-07-09
|
* models/repo: idiomatic English (#5678)Tekaoh2019-04-11
| | | | | | | | * Idiomatic English * Even better English
* models/issue_mail: add assignee to issue related emails (#5628)Andy Hochhaus2019-02-20
| | | Reference #4220
* models/models: formalize error messagesUnknwon2019-02-06
|
* models: disable idle connection and set connection max life time (#5532)Unknwon2019-02-06
|
* models/repo_editor: add isRepositoryGitPath to detect invalid file path (#5558)Unknwon2018-12-25
|
* pkg/tool/path: use IsMaliciousPath to replace SanitizePath (#5558)Unknwon2018-12-25
|
* models/repo_editor: ignore copying files with '.git/' path prefix (#5558)Unknwon2018-12-19
|
* auth: coding style and glitches fixes for GitHub login source (#5340)Unknwon2018-12-18
|
* auth: add new authentication source: GitHub, including GitHub Enterprise (#5340)haixunlu2018-12-18
| | | | | | * Add new Authentication Source: GitHub, including GitHub Enterprise. * Add vendor dependencies.
* models/repo_editor: sanitize user-defined file name to prevent RCE (#5558)Unknwon2018-12-18
| | | | Reported by PentesterLab (https://pentesterlab.com).
* models/action: skip issue index parsing while using external issue tracker ↵Unknwon2018-12-17
| | | | (#5551)
* models: remove legacy supportUnknwon2018-12-11
|
* vendor: update github.com/gogs/go-gogs-clientUnknwon2018-12-03
| | | | Bring fixes for #5538
* public/css: adjust width of label color in dropdownUnknwon2018-12-02
| | | | models/issue: unify Issue receiver name to 'issue'
* models/issue: fix panic when clear labels (#5445)Unknwon2018-12-02
|
* routes/api: change status handle to new styleUnknwon2018-12-01
| | | | Also fixed one bug that did not catch team not found error.
* mirror: trigger additional push webhook on new branch (#5508)Danilo Riecken P. de Morais2018-11-14
| | | | This commit fixes issue #5473 and makes a new branch behave like a push event and trigger the appropriate webhook.
* login_source: add default authentication switch (#5338)haixunlu2018-09-13
| | | | | | | | | | | | | | | * Add default Authentication Switch. * adjust the code accroding to reviews * #1. Remove redudant logic. #2, Fix a bug in "Edit" panel. * Remove unused logic * Fix local authentication files are not flushed. * refactor according to review.
* repo/editor: hide internal error detailUnknwon2018-08-17
| | | | Prevent exposure of server path
* repo_editor: able to trigger Git hooks (#4338)Unknwon2018-08-17
|
* models: rename Id to IDUnknwon2018-08-16
|
* models: fix delete undesired release attachments when delete a comment (#4627)Unknwon2018-08-16
| | | | Apparently, AfterDelete has ID=0
* models: fix delete public keys ORM syntax (#5376)Unknwon2018-08-14
|
* repo: fix issue of fork repository no check the limit of users' repository ↵GeekComb2018-07-18
| | | | (#5346)
* webhook: add headers to support spring config server (#5325)PHANI2018-07-09
| | | Spring cloud config server dependency spring cloud config monitor looks for X-Github-Event condition PropertyPathEndpoint.class -> GithubPropertyPathNotificationExtractor.class if ("push".equals(headers.getFirst("X-Github-Event"))) {...}
* restore: reset milestone deadline_unix and closed_date_unix (#5264)Unknwon2018-06-27
|
* public: minor fix for PR #5276Unknwon2018-06-26
|
* pull request: able to add custom commit description (#5276)ususdei2018-06-26
| | | | | | | | | | * pull request merges now allow for custom commit messages * allow i18n on commit_message label * place label above textarea for commit message * rename commit message for pull requests into commit description and pass to git separately
* restore: ignore created_unix for milestone table (#5264)Unknwon2018-06-25
|
* repo: add changes to repository avatar feature (#5221)Unknwon2018-06-17
|
* repo: support avatars (#5221)Sergey Dryabzhinsky2018-06-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First code for repository avatars * Last code for repository avatars - add new option for repo avatars location on filesystem - add route catch in web - add new fields to repo model - add migration - update settings handlers - update repo header template * Update locale messages * Add repo avatars to home page * Add repo avatars to organization right panel * Show repo avatars in repo list * Remove AvatarEamil field, remove Gravatar support, use generic locale messages * Fix migration * Fix seed and not used tool * Revert public css changes, add them to less files * Latest lessc (2.6.0) don't put result into file but output to stdout So redirect output to file * Simplify things: - migration don't needed, and table changes too - just upload file to repo avatar storage - or generate random image * Fix repo image seed - name not unique * Get rid of not needed model fields * Class value is enough, remove height attribute * Don't generate random avatar for repository - use html and semantic ui icons if no avatar found * Update styles and templates for repo - use repo icon as default avatar - use globe icon for public repos - add micro style for repo avatars at dashboard * Remvoe redundant empty line * Fix nl2br filter - must return string * Fix css style for micro-repo-avatar in dashboard list * Remove `|len`, works fine w/o it. * Update after review 2: - use static route for repository avatar - format images settings block in settings * Update after review 2: - no random avatar for repo * Update after review 2: - no random avatar for repo 2 - update imports - update UploadAvatar* functions * Update after review 2: - update templates * Fix trace call * Remove unused immport since we use static route for repo avatars.
* modes/repo: syntax fix for PR #5234Unknwon2018-06-16
|
* repo: show in search if any part is public (#5234)James2018-06-16
| | | if repo is private but wiki and/or issue are public show repo in search
* *: fix wrong format typeUnknwon2018-06-13
|
* repo: clean up webhook and hook_task when delete repository (#5239)奶爸2018-06-11
|
* Merge branch 'pr-5277' into developUnknwon2018-06-11
|\ | | | | | | | | # Conflicts: # models/migrations/migrations.go
| * migrations: clean unlinked webhook and hook_tasks奶爸2018-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
| |
* | restore: reset original created_unix after insert (#5264)Unknwon2018-06-09
| |
* | models: skip JSON for fields skipped by XORMUnknwon2018-06-09
| | | | | | | | Reduce output JSON size by backup command
* | models/mirror: shot push webhook after synced commits (#4528)Unknwon2018-06-03
| |
* | mirror: show sync feeds on dashboard (#2017)Unknwon2018-05-30
| |