summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue.go
Commit message (Collapse)AuthorAgeFilesLines
* Handle refactor (#3339)Morgan Bazalgette2018-01-101-65/+65
| | | | | | * Replace all ctx.Handle with ctx.ServerError or ctx.NotFound * Change Handle(403) to NotFound, avoid using macaron's NotFound
* Add Pull Request merge options - Ignore white-space for conflict checking, ↵Lauris BH2018-01-051-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rebase, Squash merge (#3188) * Pull request options migration and UI in settings * Add ignore whitespace functionality * Fix settings if pull requests are disabled * Fix migration transaction * Merge with Rebase functionality * UI changes and related functionality for pull request merging button * Implement squash functionality * Fix rebase merging * Fix pull request merge tests * Add squash and rebase tests * Fix API method to reuse default message functions * Some refactoring and small fixes * Remove more hardcoded values from tests * Remove unneeded check from API method * Fix variable name and comment typo * Fix reset commit count after PR merge
* Fix bugs in issue dashboard stats (#3073)Ethan Koenig2017-12-261-1/+1
|
* Fix ignored errors when checking if organization, team member (#3177)Ethan Koenig2017-12-211-8/+24
|
* Check ignored errors for issue and milestone count (#3213)Ethan Koenig2017-12-181-1/+5
|
* Unit tests for routers/repo/issue_label (#3198)Ethan Koenig2017-12-151-1/+1
|
* Mention completion for issue editor. (#3136)harry2017-12-111-0/+2
| | | | | | | | | | * new issue mention * Mention completion on new issue and view issue page. * Code format. * Require tribute in pull request page.
* Refactor struct's time to remove unnecessary memory usage (#3142)Lunny Xiao2017-12-111-6/+6
| | | | | | | | | | | | | | * 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
* Add reactions to issues/PR and comments (#2856)Lauris BH2017-12-041-3/+154
|
* Memory usage improvements (#3013)Duncan Ogilvie2017-11-291-0/+3
| | | | | | | | | | * govendor update code.gitea.io/git Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com> * Greatly improve memory usage Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
* Fix PR, milestone and label functionality if issue unit is disabled (#2710)Lauris BH2017-10-161-15/+28
| | | | | | | | | | * Fix PR, milestone and label functionality if issue unit is disabled or not assigned to user * Fix multi-actions in PR page * Change error message * Fix comment update and delete functionality in PR
* Add init support of orgmode document type on file view and readme (#2525)Lunny Xiao2017-09-211-1/+1
| | | | | | | | | | | | | | * add init support of orgmode document type on file view and readme * fix imports * fix imports and readmeExist * fix imports order * fix format * remove unnecessary convert
* Improve issue search (#2387)Ethan Koenig2017-09-161-1/+2
| | | | | | | | | | * Improve issue indexer * Fix new issue sqlite bug * Different test indexer paths for each db * Add integration indexer paths to make clean
* improve protected branch to add whitelist support (#2451)Lunny Xiao2017-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | * improve protected branch to add whitelist support * fix lint * fix style check * fix tests * fix description on UI and import * fix test * bug fixed * fix tests and languages * move isSliceInt64Eq to util pkg; improve function names & typo
* Feature: Timetracking (#2211)Jonas Franz2017-09-121-3/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add possibility to record branch or tag information in an issue (#780)Zsombor2017-08-241-0/+10
|
* Fix counts on issues dashboard (#2215)Ethan Koenig2017-08-031-0/+1
| | | | | | | | | | * Fix counts on issues dashboard * setupSess -> setupSession * Unit test * Load repo owners for issues
* EnableUnit() -> UnitEnabled() (#2242)Ethan Koenig2017-08-021-2/+2
|
* Make branch deletion URL more like GitHub's, fixes #1397 (#1994)Lauris BH2017-06-211-8/+10
| | | | | | | | | | | | * Make branch deletion URL more like GitHub's, fixes #1397 * Add PR branch deletion integration test * Do not allow deleting protected branch * Change http error code to 403 if user has no write rights to repository * Add check to not panic if forked repository has alrady been deleted
* Fix deleted milestone bug (#1942)Ethan Koenig2017-06-171-0/+10
| | | | | | | | * Fix deleted milestone bug * Use locale for ghost milestone name * Fix pointer bug
* Fix search by issue type (#1914)Ethan Koenig2017-06-151-1/+11
| | | | * Fix search by issue type
* Fix 404 for external tracking issues (#1852)Ethan Koenig2017-06-031-0/+4
| | | | | | * Fix 404 for external tracking issues * Fix 404 for new/upload file
* fix bug on issue view when not login (#1624)Lunny Xiao2017-04-291-10/+14
| | | | | | | | | | * fix bug on issue view when not login * hide issue watch when not login * update the tests * fix test on issue
* Add watch button on issueAndrey Nering2017-03-291-0/+14
|
* Batch updates for issues (#926)Ethan Koenig2017-03-151-22/+71
|
* Fix assigned issues dashboard (#920)Lunny Xiao2017-02-141-22/+1
| | | | | | | | | | | | | | | | | | | | | | * Fix assigned/created issues in dashboard. (#3560) * Fix assigned/created issues in dashboard. * Use GetUserIssueStats for getting all Dashboard stats. * Use gofmt to format the file properly. * Replace &Issue{} with new(Issue). * Check if user has access to given repository. * Remove unnecessary filtering of issues. * Return 404 error if invalid repository is given. * Use correct number of issues in paginater. * fix issues on dashboard
* Add delete branch track on pull request comments (#888)Lunny Xiao2017-02-111-1/+2
| | | | | | * add delete branch track on pull request comments * don't change vendor
* fix: trim the whitespaces for the search keyword (#893)Bo-Yi Wu2017-02-111-1/+1
|
* Add units concept for modulable functions of a repository (#742)Lunny Xiao2017-02-041-3/+5
| | | | | | | | | | | | | | | | * Add units concept for modulable functions of a repository * remove unused comment codes & fix lints and tests * remove unused comment codes * use struct config instead of map * fix lint * rm wrong files * fix tests
* Track assignee for issue (#808)Lunny Xiao2017-02-031-0/+5
| | | | | | | | * track assignee for issue * fix lint * use getUserByID instead Get
* Drop redundant columns from issue_user table (#638)Ethan Koenig2017-02-031-16/+4
|
* add milestone changed traker on issue view (#804)Lunny Xiao2017-02-011-13/+22
|
* Track labels changed on issue view & resolved #542 (#788)Lunny Xiao2017-01-301-156/+5
| | | | | | * track labels changed on issue view & resolved #542 * add missing head comment & sort & fix refresh
* Notifying on open PR, and Close/Reopen/Merge issue or PRAndrey Nering2017-01-281-0/+2
|
* Search bar for issues/pulls (#530)Ethan Koenig2017-01-251-6/+28
|
* Spun attachments into seperate go file (#701)Philip Couling2017-01-201-57/+0
| | | Moved attachments into seperate go file
* Attach to release (#673)Philip Couling2017-01-151-2/+2
| | | | | | | | | | | | | | * 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
* Rename .gogs to .gitea and comply with github template guidelines (#568) (#582)Manuel Kuhlmann2017-01-051-1/+4
| | | Signed-off-by: Manuel Kuhlmann <manuel@mkuhlmann.org>
* fix gofmt errorBo-Yi Wu2016-12-301-4/+4
| | | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Notification - Step 1 (#523)Andrey Nering2016-12-311-0/+5
| | | | | | | | * Notification - Step 1 * Add copyright headers * Cache issue and repository on notification model
* Improve the way how branches are deletedBwko2016-12-261-5/+15
| | | | | | Delete branch from HeadRepo instead of BaseRepo Prevent the deletion of a master branch Show a yes/no overlay when you press the delete branch button
* Provide button to delete merged pull request (#441)Lunny Xiao2016-12-251-0/+9
| | | | | | * provide button to delete merged pull request * golint fix
* Added sorting to the labels & milestones page (#199)Bwko2016-12-241-6/+9
|
* Bug fixes for Issues filters (#413)Ethan Koenig2016-12-241-37/+47
| | | Correctly handle simultaneous assignee/poster filters, and conflicting assignee filters
* Bug fixes and tests for modules/base (#442)Ethan Koenig2016-12-221-1/+4
| | | Also address other TODOs
* Golint fixed for modules/setting (#262)Lunny Xiao2016-11-271-3/+3
| | | | | | * golint fixed for modules/setting * typo fixed and renamed UNIXSOCKET to UnixSocket
* golint fixed for routers (#208)Lunny Xiao2016-11-241-23/+56
|
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-7/+7
| | | | | | | - 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
* More overlooksSandro Santilli2016-11-071-1/+1
|
* More...Sandro Santilli2016-11-071-5/+5
|