summaryrefslogtreecommitdiffstats
path: root/models/release.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix missing release title in webhook (#4783) (#4796)SagePtr2018-08-261-0/+1
|
* fix bug when deleting a release (#4207)Lunny Xiao2018-06-121-0/+5
|
* Fix some webhooks bugs (#3981)Lunny Xiao2018-05-211-1/+32
| | | | | | | | | | | | | | | | | | | | | | * fix some webhooks bugs * update vendor Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * fix test * fix clearlabels * fix pullrequest webhook bug fix #3492 * update release webhook description * remove unused code * fix push webhook in pull request * small changes
* Add more webhooks support and refactor webhook templates directory (#3929)Lunny Xiao2018-05-161-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | * add more webhook support * move hooks templates to standalone dir and add more webhooks ui * fix tests * update vendor checksum * add more webhook support * move hooks templates to standalone dir and add more webhooks ui * fix tests * update vendor checksum * update vendor Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * load attributes when created release * update comparsion doc
* Add Attachment API (#3478)Jonas Franz2018-03-061-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
* Bug fix for repo releases sorted (#3522)Wendell Sun2018-02-211-1/+3
| | | | | Signed-off-by: Wendell Sun <iwendellsun@gmail.com> Use TimeStampNow function
* Refactor struct's time to remove unnecessary memory usage (#3142)Lunny Xiao2017-12-111-27/+12
| | | | | | | | | | | | | | * refactor struct's time to remove unnecessary memory usage * use AsTimePtr simple code * fix tests * fix time compare * fix template on gpg * use AddDuration instead of Add
* Replace deprecated Id method with ID (#2655)Ethan Koenig2017-10-051-5/+5
|
* Use AfterLoad instead of AfterSet on Structs (#2628)Lunny Xiao2017-10-011-7/+3
| | | | | | | | * use AfterLoad instead of AfterSet on Structs * fix the comments on AfterLoad * fix the comments on action AfterLoad
* Sync releases table with tags on push and for mirrors (#2459)Lauris BH2017-09-201-14/+75
| | | | | | | | | | | | | | | * Sync releases table with tags on push and for mirrors * Code style fixes * Fix api to return only releases * Optimize release creation and update Minimize posibility of race conditions * Fix release lower tag name updating * handle tag reference update by addionally comparing commit id
* Fix release display and correct paging (#2080)Lauris BH2017-06-291-22/+26
|
* Pagination on releases page (#2035)iszla2017-06-281-0/+14
| | | | | | | | | | | | | | | | | | | | | | * Added count to GetReleasesByRepoID so pagination will work * Separated it out to a new function, can then also leave the API part unaffected * Remove extra whitespace added in untouched function * Added comment and corrected name in error handler * Account for if the user is owner or not in the count * Also check if repo is draft * revert back to the correct count in the ReleasesToDisplay loop * Fixed lint error regarding else with return statement * Use Cond struct instead of string, corrected name in error handler * Removed unused return variable names
* Fix typos in models/ and modules/ (#1248)Ethan Koenig2017-03-151-1/+1
|
* Refactor and fix incorrect comment (#1247)Ethan Koenig2017-03-151-1/+1
|
* fix some typos (#1082)Lunny Xiao2017-02-281-1/+1
|
* Refactor process package and introduce ProcessManager{} with tests (#75)Matthias Loibl2017-01-171-11/+9
| | | | | | | | | | * Add a process.Manager singleton with process.GetManager() * Use process.GetManager everywhere * Fix godoc comments for process module * Increment process counter id after locking the mutex
* Attach to release (#673)Philip Couling2017-01-151-2/+100
| | | | | | | | | | | | | | * Moved attachaments POST url from /issues/attachments to /attachments * Implemented attachment upload on release page * Implemented downloading attachments on the release page * Added zip and gzip files to default allowed attachments * Implemented uploading attachments on edit release * Renamed UploadIssueAttachment to UploadAttachment
* Create missing database indexes (#596)Andrey Nering2017-01-061-5/+5
|
* Make releases faster than before and resolved #490 (#588)Lunny Xiao2017-01-061-4/+13
| | | | | | * make releases faster than before and resolved #490 * fix comment
* change the default action when deleting a release to not delete tagLunny Xiao2017-01-031-6/+8
|
* Release API endpointsEthan Koenig2017-01-021-0/+60
|
* fixed vulnerabilities on deleting release (#399)Lunny Xiao2016-12-161-1/+8
|
* Lint/issue &mail (#243)Bwko2016-11-251-5/+7
| | | | | | * Lint models/release.go * Lint models/ issue_label, issue_mail & mail.go
* Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queriesThibault Meyer2016-11-101-2/+2
|\ | | | | | | | | | | | | | | | | # Conflicts: # models/git_diff.go # models/issue.go # models/org.go # models/pull.go # models/repo.go
| * Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-2/+2
| | | | | | | | | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* | Rewrite XORM queriesThibault Meyer2016-11-101-2/+7
|/
* Add Pagination to Releases-pageKim "BKC" Carlbäcker2016-11-071-2/+5
|
* Replace gogits/git-module dependency with go-gitea/git (#94)Sandro Santilli2016-11-061-1/+1
| | | | | | | | * Replace gogits/git-module dependency with go-gitea/git Fixes #92 * Remove git alias for git module import (not needed)
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-1/+1
|
* Fix #3315: Release dont use tag creation date (#3374)Thibault Meyer2016-08-061-1/+3
| | | | | | | | | | * Fix #3315: Release dont use tag creation date * Simplify code and apply gofmt * remove useless block (ctx.Repo.GitRepo.GetTag) on EditReleasePost * apply gofmt on modified files
* 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.
* Remove redundant Unix timestamp method callUnknwon2016-07-231-1/+1
| | | | Unix() already uses UTC as timezone
* #3076 detect invalid tag name git errorUnknwon2016-07-231-1/+4
|
* models/release: filter input to prevent command line argument vulnerabilityUnknwon2016-05-061-0/+2
|
* fix #2804Unknwon2016-03-111-1/+1
|
* Updated and created were appended with _unix. Fresh databases have only the ↵Marin Jankovski2016-03-111-1/+1
| | | | newly named fields.
* #2302 Replace time.Time with Unix Timestamp (int64)Unknwon2016-03-091-3/+9
|
* rename import pathUnknwon2015-12-151-1/+1
|
* move out git module and #1573 send push hookUnknwon2015-12-091-12/+9
|
* wiki: finish newUnknwon2015-11-271-0/+4
|
* introduce git-shellUnknwon2015-11-261-6/+2
|
* fix #2002Unknwon2015-11-201-1/+1
|
* fix #1383Unknwon2015-11-201-3/+48
|
* fix #1958Unknwon2015-11-151-20/+14
|
* rename fieldsUnknwon2015-11-031-1/+1
|
* fix release created timezone issueUnknwon2015-08-241-0/+9
|
* Huge updates!!!!! Be careful to merge!!!!Unknwon2014-07-261-1/+1
|
* Fix #165Unknown2014-06-211-5/+5
|
* Support edit release and save as draftUnknown2014-06-121-28/+88
|
* Fix #197Unknown2014-06-121-4/+9
|