summaryrefslogtreecommitdiffstats
path: root/models
Commit message (Collapse)AuthorAgeFilesLines
* Make switch more clear (#5119)Oleg Kovalov2018-10-191-3/+2
|
* Add notification interface and refactor UI notifications (#5085)Lunny Xiao2018-10-182-0/+6
| | | | | | | | * add notification interface and refactor UI notifications * add missing methods on notification interface and notifiy only issue status really changed * implement NotifyPullRequestReview for ui notification
* Add support for search by uid (#4876)zeripath2018-10-181-0/+6
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* refactor: err != nil check, just return error instead (#5093)Bo-Yi Wu2018-10-181-4/+1
|
* feat(topic): search keyword by splitting provided values by , (#4939)Bo-Yi Wu2018-10-172-5/+11
|
* Fix regex to support optional end line of old section in diff hunk (#5096)kolaente2018-10-171-9/+16
| | | + Named groups in reges for easier group parsing
* fix release creation via API (#5076)Lunny Xiao2018-10-152-2/+98
| | | | | | * fix release creation via API * fix release create tests
* Hide outdated comments in file view (#5017)Jonas Franz2018-10-052-1/+12
| | | | | | | | | | * Hide outdated comments in file view Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add unit test by adding "invalidated" comment to fixtures Signed-off-by: Jonas Franz <info@jonasfranz.software>
* make sure milestone listing is consistent across board (#4987)Lanre Adelowo2018-09-281-1/+1
|
* Fix null pointer dereference in ParseCommitWithSignature (#4962)SagePtr2018-09-201-1/+1
|
* fix url in discord webhook (#4953)crito2018-09-171-1/+2
| | | | | opening issues generates a webhook to discord that contains a url to the gitea api. the message title in discord is therefore referencing to the api instead of the issue itself.
* Code review UI improvements and bugfixes (#4682)Lauris BH2018-09-172-12/+16
| | | | | | | | | | | | | | | | * Code review UI improvements * More fixes to dark theme * Style fix * Fix to allow add code review comments only on review files tab * More readability dark style fixes * Fix commenting on deleted files. Fixes #4752 * Fix line blame getting for multiple corner cases
* make sure to catch the right error so it is displayed as an error on the ui ↵Lanre Adelowo2018-09-161-1/+1
| | | | not a 500 (#4945)
* fix bug forget to remove Stopwatch when remove repository (#4928)linweijie20122018-09-131-0/+3
|
* Force user to change password (#4489)Lanre Adelowo2018-09-133-12/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * redirect to login page after successfully activating account * force users to change password if account was created by an admin * force users to change password if account was created by an admin * fixed build * fixed build * fix pending issues with translation and wrong routes * make sure path check is safe * remove unneccessary newline * make sure users that don't have to view the form get redirected * move route to use /settings prefix so as to make sure unauthenticated users can't view the page * update as per @lafriks review * add necessary comment * remove unrelated changes * support redirecting to location the user actually want to go to before being forced to change his/her password * run make fmt * added tests * improve assertions * add assertion * fix copyright year Signed-off-by: Lanre Adelowo <yo@lanre.wtf>
* Fix bug when repo remained bare if multiple branches pushed (#4923)SagePtr2018-09-131-2/+4
|
* feat(repo): support search repository by topic name (#4505)Bo-Yi Wu2018-09-139-16/+117
| | | | * feat(repo): support search repository by topic name
* Add push webhook support for mirrored repositories (#4127)Lauris BH2018-09-062-11/+204
|
* Fix redirect with non-ascii branch names (#4764) (#4810)SagePtr2018-09-064-4/+46
| | | | | | | | * Fix redirect with non-ascii branch names (#4764) * Add integration tests for non-ascii branch redirect * Fix mysql test and coverage test
* Do not autocreate directory for new user/orgs (#4828) (#4849)SagePtr2018-09-062-7/+6
|
* Fix missing release title in webhook (#4783) (#4796)SagePtr2018-08-261-0/+1
|
* Don't disclose emails of all users when sending out emails (#4664)techknowlogick2018-08-241-2/+10
|
* MySQL TLS (#4642)Russell Aunger2018-08-231-6/+9
|
* Make sure to reset commit count in the cache on mirror syncing (#4720)Lanre Adelowo2018-08-231-0/+11
| | | | | | * Make sure to reset commit count in the cache on mirror syncing * reset count of commits in all branches
* Fix failure on creating pull request with assignees (#4419) (#4583)SagePtr2018-08-162-3/+7
|
* Add whitespace handling to PR-comparsion (#4683)nemoinho2018-08-141-10/+21
| | | | | | | | | | | | | | | | | | * Add whitespace handling to PR-comparsion In a PR we have to keep an eye on a lot of different things. But sometimes the bare code is the key-thing we want to care about and just don't want to care about fixed indention on some places. Especially if we follow the pathfinder rule we face a lot of these situations because these changes don't break the code in many languages but improve the readability a lot. So this change introduce a fine graned button to adjust the way how the reviewer want to see whitespace-changes within the code. The possibilities reflect the possibilities from git itself except of the `--ignore-blank-lines` flag because that one is also handled by `-b` and is really rare. Signed-off-by: Felix Nehrke <felix@nehrke.info>
* Disable merging a WIP Pull request (#4529)Julien Tant2018-08-132-1/+63
| | | | | | | | | | | | | | | | | * prevent pull request to be merged when PR is a WIP * add tests * add helper to prepend WIP: in PR title * move default wip prefixes into settings * use configurable WIP prefixes in javascript and default to first one in templates * add documentation * add unit test on pull model Signed-off-by: Julien Tant <julien@craftyx.fr>
* add vendor to user reserved words and format words list according alphabet ↵Lunny Xiao2018-08-131-1/+29
| | | | (#4685)
* Site admin could create repos even MAX_CREATION_LIMIT=0 (#4645)Lunny Xiao2018-08-091-1/+1
| | | | | | * site admin could create repos even MAX_CREATION_LIMIT=0 * Optimize if structure
* Push whitelist now doesn't apply to branch deletion (#4601) (#4607)SagePtr2018-08-081-0/+18
|
* Fix integer constant overflows in tests (#4616)Dennis Menschel2018-08-061-1/+2
| | | | | | | | | | | | | | | | | | * Use integer limit value [1] instead of hard-coded magic constant for NonexistentID. * Explicitly use int64 in order to avoid the following errors on 32 bit architectures: # code.gitea.io/gitea/integrations ./api_admin_test.go:50:34: constant 9223372036854775807 overflows int ./api_token_test.go:47:34: constant 9223372036854775807 overflows int [...] # code.gitea.io/gitea/models ./action_test.go:179:15: constant 9223372036854775807 overflows int [1] https://golang.org/pkg/math/#pkg-constants Signed-off-by: Dennis Menschel <menschel-d@posteo.de>
* Pull request review/approval and comment on code (#3748)Lauris BH2018-08-0613-35/+1131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial ui components for pull request review * Add Review Add IssueComment types Signed-off-by: Jonas Franz <info@jonasfranz.software> (cherry picked from commit 2b4daab) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Replace ReviewComment with Content Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add load functions Add ReviewID to findComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add create review comment implementation Add migration for review Other small changes Signed-off-by: Jonas Franz <info@jonasfranz.software> * Simplified create and find functions for review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved "Pending" to first position Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add GetCurrentReview to simplify fetching current review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Preview for listing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Move new comment form to its own file Signed-off-by: Jonas Franz <info@jonasfranz.software> * Implement Review form Show Review comments on comment stream Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for single comments Showing buttons in context Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add pending tag to pending review comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add unit tests for Review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fetch all review ids at once Add unit tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improved comment rendering in "Files" view by adding Comments to DiffLine Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for invalidating comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Switched back to code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved review migration from v64 to v65 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Rebuild css Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improve translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests by updating fixtures and updating outdated test Signed-off-by: Jonas Franz <info@jonasfranz.software> * Comments will be shown at the right place now Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for deleting CodeComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems caused by files in subdirectories Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for showing code comments of reviews in conversation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for "Show/Hide outdated" Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for new webhooks Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update comparison Signed-off-by: Jonas Franz <info@jonasfranz.software> * Resolve conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Minor UI improvements * update code.gitea.io/git * Fix ui bug reported by @lunny causing wrong position of add button Add functionality to "Cancel" button Add scale effects to add button Hide "Cancel" button for existing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Prepare solving conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show add button only if no comments already exist for the line Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing vendor files Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if reviewer is nil Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show forms only to users who are logged in Signed-off-by: Jonas Franz <info@jonasfranz.software> * Revert "Show forms only to users who are logged in" This reverts commit c083682 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Save patch in comment Render patch for code comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add link to comment in code Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add reply form to comment list Show forms only to signed in users Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add 'Reply' as translatable Add CODE_COMMENT_LINES setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems introduced by checking for singed in user Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add v70 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update generated stylesheet Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix preview Beginn with new review comment patch system Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add new algo to generate diff for line range Remove old algo used for cutting big diffs (it was very buggy) * Add documentation and example for CutDiffAroundLine * Fix example of CutDiffAroundLine * Fix some comment UI rendering bugs * Add code comment edit mode * Send notifications / actions to users until review gets published Fix diff generation bug Fix wrong hashtag * Fix vet errors * Send notifications also for single comments * Fix some notification bugs, fix link * Fix: add comment icon is only shown on code lines * Add lint comment * Add unit tests for git diff * Add more error messages * Regenerated css Signed-off-by: Jonas Franz <info@jonasfranz.software> * fmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Regenerated CSS with latest less version Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test by updating comment type to new ID Signed-off-by: Jonas Franz <info@jonasfranz.software> * Introducing CodeComments as type for map[string]map[int64][]*Comment Other minor code improvements Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix data-tab issues Signed-off-by: Jonas Franz <info@jonasfranz.software> * Remove unnecessary change Signed-off-by: Jonas Franz <info@jonasfranz.software> * refactored checkForInvalidation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Append comments instead of setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * Use HeadRepo instead of BaseRepo Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update migration Signed-off-by: Jonas Franz <info@jonasfranz.de> * Regenerated CSS Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add copyright Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update index.css Signed-off-by: Jonas Franz <info@jonasfranz.software>
* fix bugs when too many IN variables (#4594)Lunny Xiao2018-08-021-95/+194
|
* Fix incorrect MergeWhitelistTeamIDs check in CanUserMerge function (#4519) ↵SagePtr2018-07-271-1/+1
| | | | (#4525)
* Switch plaintext scratch tokens to use hash instead (#4331)techknowlogick2018-07-273-7/+108
|
* Fix out-of-transaction query in removeOrgUser (#4521) (#4522)SagePtr2018-07-271-1/+1
|
* env var GITEA_PUSHER_EMAIL (#4516)Lukas Treyer2018-07-261-0/+1
| | | | | | * env var GITEA_PUSHER_EMAIL * set pusher email only if email address is not private
* Make max commits in graph configurable (#4498)Kjell Kvinge2018-07-231-1/+2
|
* Fix migration from older releases (#4495)Lauris BH2018-07-211-1/+1
|
* Accept 'Data:' in commit graph (#4487)Kjell Kvinge2018-07-212-1/+31
|
* Update xorm to latest version and fix correct `user` table referencing in ↵Lauris BH2018-07-207-11/+11
| | | | sql (#4473)
* Added dependencies for issues (#2196) (#2531)kolaente2018-07-1711-45/+530
|
* Fix column droping for MSSQL that need new transaction for that (#4440)Lauris BH2018-07-132-0/+16
|
* Implemented hover text showing user FullName (#4261)Guido Diepen2018-07-051-0/+6
| | | | | | | For each action that is displayed in either the public activity overview of a user, or in the dashboard overview, the link to the username is now extended with a title attribute to show the FullName as hover text Signed-off-by: Guido Diepen <site-github@guidodiepen.nl>
* Add default merge options when adding new repository (#4369)Lauris BH2018-07-051-0/+6
|
* fix repository last updated time update when delete a user who watched the ↵Lunny Xiao2018-07-051-2/+2
| | | | repo (#4363)
* Simply remove tidb and deps (#3993)Antoine GIRARD2018-07-041-18/+0
|
* Add `noreferrer` to rel='noopener` for <a> tags (#4328)cezar972018-07-031-1/+1
|
* Limit uploaded avatar image-size to 4096x3072 by default (#4353)Kim "BKC" Carlbäcker2018-07-031-0/+11
|
* Fixed violation of the unique constraint for v68 migration (#4297)Alexey Terentyev2018-06-272-53/+106
|