aboutsummaryrefslogtreecommitdiff
path: root/models
Commit message (Collapse)AuthorAge
* 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.
* repo: fix cannot fork repository (#4572)Unknwon2017-07-18
| | | | Should not load attributes if repository not found in HasForkedRepo.
* repo: fix panic on pull request submit (#4572)Unknwon2017-07-14
|
* models/comment: remove unused SQL parameter (#4586)Unknwon2017-06-27
|
* issue_comment: fix pg syntax ambiguous (#4586)Unknwon2017-06-27
| | | | Also handle error related to time parsing.
* api: fix ListIssueComments API (#4587)Andy Hochhaus2017-06-27
|
* api/repo: load attributes when listing user repositories (#4565)Unknwon2017-06-21
|
* Refactoring: remove sessionRelease()Unknwon2017-06-11
| | | | XORM supports automatic roll back in session Close() already.
* pkg/process: fix potential race conditionUnknwon2017-06-11
| | | | | | Following conditions were not protected: 1. Use and increase next pid 2. Append and remove process from the list
* setting: disable SSH minimum key size check when not eligible (#4507)Unknwon2017-06-11
|
* random: some code simplifyUnknwon2017-06-11
|
* repo: change action visibility when repository visibility changed (#4414)Unknwon2017-06-11
|
* repo: load base repository for loadAttributesUnknwon2017-06-08
|
* models/repo: modify keyword search to include description for #4287 (#4548)Simon Dann2017-06-06
| | | | | | * Modified repository keyword search to include description for #4287 * Replacing Where with And for #4548
* api: GitHub compliance (#4549)无闻2017-06-05
| | | | | | * Add undocumented endpoint for /repositories/:id * GitHub API Compliance
* issue: fix updated_unix is not updated for new comments (#4462)Unknwon2017-06-02
|
* repo: expose more fields to API format (#4484)Unknwon2017-06-02
|
* models/org_team: getUserTeams uses includes always -1 in the IN statement ↵Pablo Saavedra2017-05-29
| | | | | | | | | | | | (#4412) Ensure that the IN clause contains one value at least. The idea is avoid a syntax error in the SQL sentence and rollbacks in the transactions. For example: ERROR: syntax error at or near ")" LINE 1: ...RE ... and team.id IN (); We will always add the -1 value in the IN list.
* models/repo_collaboration: cannot change permissions of collaborators (#4512)Unknwon2017-05-29
|
* restore: reset table sequences for PostgreSQL (#4357)Unknwon2017-05-21
|
* models: remove redundant tags for primary keysUnknwon2017-05-21
|
* models/login_source: add check for user for create/update on LDAP (#4405)Jon Lundy2017-05-21
| | | | | | | | * Add check for user for create/update * Update login_source.go * Update login_source.go
* models/ssh_key: don't run ssh-keygen check if disabled (#4519)Gibheer2017-05-20
| | | | | | | | | | | | * don't load key when key size should not be checked This makes it possible for users with incompatible ssh-keygen versions to just disable the check completely without running into errors. * add proper ed25519 constant The x/crypto/ssh library has support for ed25519 now, so it is possible to support it.
* locale: sync from CrowdinUnknwon2017-05-17
|
* api/repo: add Mirror field (#4392)Unknwon2017-04-07
|
* api/repo: improve migration error handlingUnknwon2017-04-07
|
* modes/mirror: make Updated unchanged if no new commits fetched (#4341)Unknwon2017-04-06
| | | | | After sync mirror, get latest commit date and compare to current repository updated time, only update it if the commit date is newer.
* pkg/setting: rename {AppUrl, AppSubUrl} -> {AppURL, AppSubURL}Unknwon2017-04-06
|
* Refactoring: rename and simplify pkg/tool functionsUnknwon2017-04-06
|
* 2fa: initial support (#945)Unknwon2017-04-06
|
* Refactoring: rename pkg/base -> pkg/toolUnknwon2017-04-05
|
* models/mirror: feed git.IsRepoURLAccessible with raw mirror addressUnknwon2017-04-04
|
* models/mirror: unescape credentials at read (#4014)Unknwon2017-04-04
| | | | | If we save credentials already escaped, 'url.QueryEscape' still escapes it and makes the credentials become incorrect.
* models/mirror: escape credentials before write mirror address (#4014)Unknwon2017-04-04
| | | | | | | Special characters such as '@', ';', '#' and ':' could occur in password portion of credentials, which breaks the interpretation and saves 'config' file in with extra characters that are not recognized by Git (due to INI library).
* Refactoring: rename modules -> pkgUnknwon2017-04-04
| | | | | | | | Reasons to change: 1. Shorter than 'modules' 2. More generally used by other Go projects 3. Corresponds to the naming of '$GOPATH/pkg' directory
* models/repo_diff: move core functions to gogits/git-moduleUnknwon2017-04-04
|
* vendor: update github.com/gogits/git-moduleUnknwon2017-04-03
|
* repo: handle git.ErrUnsupportedVersion error typeUnknwon2017-04-01
|
* modes: fix test compile errorUnknwon2017-03-31
|
* modules: rename markdown -> markupUnknwon2017-03-31
| | | | | | | To further support more markup languages (e.g. Org-mode, AsciiDoc, reStructuredText), the name 'markdown' is inappropriate. This is the first step towards more markup language support.