aboutsummaryrefslogtreecommitdiff
path: root/models
Commit message (Collapse)AuthorAge
* 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
| |
* | vendor: rename "gogits" to "gogs"Unknwon2018-05-27
| |
* | *: rename "gogits" to "gogs"Unknwon2018-05-27
| |
* | 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/.
* auth: support authentication source config file (#3142)Unknwon2018-04-12
|
* models/pull: fix error on merge pull requests to non-default branch (#5138)Unknwon2018-04-09
|
* locale: sync from CrowdinUnknwon2018-03-30
|
* models: rename RewriteAllPublicKeys -> RewriteAuthorizedKeysUnknwon2018-03-30
|
* models/pull: fix rebase merging no effect (#5051)Unknwon2018-03-21
|
* repo_branch: fix SQL builder (#5054)Unknwon2018-03-20
|
* api: fix nil pointer dereference on repo/forks (#4633)Dennis Chen2018-03-12
| | | | | | | | | Sets BaseRepo value for each resulting fork in GetForks(). Finds correct permissions for parent repository in APIFormat(). The output JSON is a little redundant, perhaps we should offer a different view of the api.Repository without the Parent attribute? Signed-off-by: Dennis Chen <barracks510@gmail.com>
* models: add ROW_FORMAT=DYNAMIC when creating table for supports mysql 5.6 ↵m2nlight2018-03-09
| | | | | | | | | | | | | | | | | | | | (#4913) * Add ROW_FORMAT=DYNAMIC when creating table for supports mysql 5.6 (fix #4894) * Update models.go Rename NewEngine2 to NewEngineWithParams * Rename NewEngine2 to NewEngineWithParams Please update vendor when https://github.com/go-xorm/xorm/pull/798 closed. * Update dialect_mysql.go * Update dialect_mysql.go * Update models.go
* migrations: remove unused function and fix compile errorUnknwon2018-03-09
|
* models: move ErrBranchNotExist to errors packageUnknwon2018-03-08
|
* models: bug fix for query protected branches (#5054)Wendell Sun2018-03-06
| | | Signed-off-by: Wendell Sun <iwendellsun@gmail.com>
* pull_request: fix changes not pushed to upstream if between two repositories ↵Unknwon2017-11-22
| | | | (#4890)
* models: update mySQL charset=utf8mb4 (#4880)m2nlight2017-11-22
| | | | | | | | * Add utf8mb4 to connStr for mysql. fix #4131 * Update models.go. charset=utf8mb4 for mysql. charset=utf8mb4 for mysql.
* models: add utf8mb4 to connStr for mysql (#4878)m2nlight2017-11-21
|
* MISC: minor fixes in webhookUnknwon2017-11-18
|
* pull: fix after commit ID is not latest commit in the base branch (#4442)Unknwon2017-11-18
|
* pull_request: able to ignore whitespace when check conflict (#4834)Unknwon2017-11-16
|
* editor: remove out of sync branch before checkout againUnknwon2017-11-16
| | | | | | If a branch was deleted from server, sometimes it is not reflected on local copy. Therefore, we need to remove the branch with same name if it is out of sync and then checkout to correct version.
* 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).
* MISC: update README and migration commentUnknwon2017-10-22
|
* 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
* models: fix #4692 and typo in comments (#4695)Sb2017-08-13
|
* hook: fix email not sent after push (#4430)Unknwon2017-07-27
| | | | | Turns out mail service was not initialized at all, also mail must be sent in sync in hook mode before program exits.
* routes/home: minor code improveUnknwon2017-07-18
|
* explore: fix total repository number and page number do not match (#4441)Unknwon2017-07-18
| | | | | Because in the final repository list we use Distinct to remove duplicates, but didn't do so when count total number of repositories.