summaryrefslogtreecommitdiffstats
path: root/models
Commit message (Collapse)AuthorAgeFilesLines
* #3348 always use relative avatar link in the templateUnknwon2016-08-052-3/+3
|
* #3290 better code structure and batch minor improvementsUnknwon2016-08-033-78/+117
|
* Additional API support for labels (#3290)lstahlman2016-08-031-0/+39
| | | | | | | | | | * Add API support for labels. * Error handling for adding/replacing multiple issue labels * Revisions to function names and error handling. Use issue.ClearLabels in replace/clear functions * Additional code cleanup
* #3345 dump content directly to HTTP ResponseWriterUnknwon2016-07-301-13/+23
|
* Diff patch (#3345)Dennis Chen2016-07-301-2/+46
| | | | | | | | | | | | | | | | * Add support for .diff and .patch Add the ability to get text-diff and format-patch by adding .diff or .patch in the end of a commit url. Issue #2641 * models: git_diff: various fixes * Renames commitId to commitID. * Writes stderr to a bytes.Buffer and displays proper error message on command failure. * Various style changes. Signed-off-by: Dennis Chen <barracks510@gmail.com>
* models/release: Update Sha1 if tag already exists (#3331)마누엘2016-07-281-0/+1
| | | | | | Since the release struct is initialized with the current `HEAD` of the current `release.Target` the commit id has to be updated if the tag commit already exists. Otherwise the linked commit on the release page will target the current `HEAD` at release time.
* #3327 fix wrong table name in JoinUnknwon2016-07-261-1/+1
|
* #3281 fix x.Iterate returns nothing inside session scope with SQLite3Unknwon2016-07-263-95/+32
|
* models/ssh_key: code cleaningUnknwon2016-07-261-59/+57
|
* #1601 support delete issue commentUnknwon2016-07-261-0/+26
|
* Add org.getUserTeams to reduce redundant codeUnknwon2016-07-241-32/+29
|
* #1384 add pagination for repositoriesUnknwon2016-07-247-121/+261
|
* Refactor User.Id to User.IDUnknwon2016-07-2416-129/+129
|
* Use struct for UI settingsUnknwon2016-07-243-9/+9
|
* Remove redundant Unix timestamp method callUnknwon2016-07-2313-38/+38
| | | | Unix() already uses UTC as timezone
* conf: change default mirror checking interval to 10mUnknwon2016-07-231-5/+1
|
* #2903 use different reversed words and patterns for repository and userUnknwon2016-07-233-34/+49
|
* #3066 fix create organization ignores full name propertyUnknwon2016-07-231-1/+0
|
* #3157 create user path before rename repository while transferUnknwon2016-07-231-0/+1
| | | | os.Rename does not create parent directory automatically when not exist
* #3076 detect invalid tag name git errorUnknwon2016-07-232-4/+20
|
* add IsSubmodule field to DiffFile and hide view file button on diff page for ↵Siarhei Navatski2016-07-231-1/+5
| | | | submodules (#3097)
* avatar: make custom and generated avatars equal (#3301)Dennis Chen2016-07-211-3/+2
| | | | | | Sets all avatars to use PNG image format. Keeps avatars consistent at 290x290px resolution. Signed-off-by: Dennis Chen <barracks510@gmail.com>
* #3291 fix SQLite3 session read/update conflict on create new issueUnknwon2016-07-211-7/+11
|
* #3295 fix wrong logic judgementUnknwon2016-07-211-1/+1
|
* Updated Issues and Issues Stats functions to include table aliases. This ↵lstahlman2016-07-171-21/+21
| | | | addresses errors involving ambiguous column references when filtering issues by the view type "Mentioning you". (#3269)
* models/webhook: restrict deletion to be explicitly with repo and org IDUnknwon2016-07-171-18/+39
|
* #2937 able to prohibit user loginUnknwon2016-07-161-0/+1
|
* models/user_mail: refactor EmailAddressUnknwon2016-07-163-172/+204
|
* Return avatar link as absolute url (#3235)Sandro Santilli2016-07-161-2/+2
| | | | | Fixes relative urls coming from api/v1 See https://github.com/drone/drone/issues/1701
* #3274 fix can't get webhook detail of organizationUnknwon2016-07-161-5/+17
|
* #2854 fix no mail notification when issue is closed/reopenedUnknwon2016-07-166-39/+356
|
* models/repo: remove redundant info for some repo methodsUnknwon2016-07-153-6/+6
| | | | RepoLink -> Link, RepoRelLink -> RelLink, FullRepoLink -> FullLink
* Ignore Response Body for Slack Hooks #3169 (#3256)Kim Carlbäcker2016-07-151-8/+0
|
* #2709 validate username attribute fetched from LDAPUnknwon2016-07-121-16/+22
|
* #2375 preserve cases for action contentUnknwon2016-07-091-1/+1
|
* Minor fix for #3246Unknwon2016-07-091-11/+10
|
* The pruning for the synchronized mirrors is a option now. Default value: ↵Pablo Saavedra2016-07-092-18/+27
| | | | | | | | | | | | | enable_prune = true (#3246) Executed go fmt getEngine() not handles DB parameters (#2972) (#2974) Uses .AllCols() for Update in updateMirror() Spanish traslation removed Fixed a wrong way to ommit the --prune option in process.ExecDir() for MirrorUpdate function
* Modify behaviour of repo-delete. (#3232)Pheng Heong TAN2016-07-091-12/+0
| | | | | | | | | | Re: issues gogits/gogs#2863 and gogits/gogs#3231 As a result of modifications to the contents of the conf folder, `make bindata` was run, causing an update to bindata.go. Meta ----- This commit will be rebased onto the 'develop' branch.
* #3057 retrieve webhook with repo_idUnknwon2016-07-081-4/+4
| | | | | This prevents user retrieve arbitrary webhook by changing URL to access webhook from other unauthorized repositories.
* #3229 disallow repository name . and ..Unknwon2016-07-081-1/+1
| | | | Since . and .. has browser automatical behaviors, we need to disallow those names.
* Use SecurityProtocol to replace UseSSL in LDAP configUnknwon2016-07-083-14/+84
| | | | Initially proposed by #2376 and fixes #3068 as well.
* #3058 #3059 support correct page size and link headerUnknwon2016-07-041-3/+0
|
* getEngine() not handles DB parameters (#2972) (#2974)Tom2016-07-021-6/+10
|
* Fix wiki vulnerabilitiesUnknwon2016-07-011-4/+13
| | | | | | | - Arbitrary file creation leading to command execution - .md file creation/deletion Reported by Gabriel Campana.
* Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff (#3174)Andrey Nering2016-06-291-22/+23
|
* Localize collaboration settings. (#3100)Andrey Nering2016-06-281-5/+6
| | | Closes #2764
* Use a gopher as default avatar (rather than the gravatar logo) (#3208)Sandro Santilli2016-06-271-1/+1
| | | | | | | | | | | | Also changes the avatar from a jpeg to a png, to allow for transparent background. The indexed png is also smaller in size. Note that at the moment the default avatar is only used when the user requested a custom avatar and the custom avatar file is not found (should never happen). In the future the default avatar could be used as a default return when by-mail avatar lookups fail too (both gravatar and libravatar support passing a default)
* Fixes #3110 (#3136)Franz Schmidt2016-06-272-0/+15
|
* Fix #3154 (#3155)Robin Lambertz2016-06-271-2/+2
|
* Fix capitalisation of repo-name in news (#3203)SjonHortensius2016-06-271-1/+1
| | | | use 'official' repo.Name instead of incoming repoName; to enforce correct capitalisation