summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* Fix lint errors (#2547)Ethan Koenig2017-09-192-8/+2
|
* Fork permission bug fixes (#2534)Jonas Franz2017-09-181-0/+68
| | | | | | | | | | | | | | | | * Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Checking if Code unit is enabled before creating a fork. Signed-off-by: Jonas Franz <info@jonasfranz.software> * Adding a discrete function for RepoIDAssignment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improved Documentation
* Improve issue search (#2387)Ethan Koenig2017-09-162-4/+176
| | | | | | | | | | * Improve issue indexer * Fix new issue sqlite bug * Different test indexer paths for each db * Add integration indexer paths to make clean
* Restructure markup & markdown to prepare for multiple markup language… (#2411)Lunny Xiao2017-09-169-1057/+1155
| | | | | | | | | | * restructure markup & markdown to prepare for multiple markup languages support * adjust some functions between markdown and markup * fix tests * improve the comments
* improve protected branch to add whitelist support (#2451)Lunny Xiao2017-09-145-2/+87
| | | | | | | | | | | | | | | | | | | | * 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
* Basic VSCode configuration for building and debugging (#2483)Lauris BH2017-09-121-1/+5
| | | | | | | | * Basic VSCode configuration for building and debugging * Fix building and debugging in Windows * Move to contrib folder and add instructions
* Disable custom Git Hooks globally via configuration file (#2450)techknowlogick2017-09-122-0/+5
| | | | | | | | * Create option to disable githooks globally via configuration file * Update comment in app.ini to align with @ethantkoenig's suggestion Signed-off-by: Matti Ranta <matti@mdranta.net>
* Feature: Timetracking (#2211)Jonas Franz2017-09-124-26/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fix fmt error in mailer (#2490)Jonas Östanbäck2017-09-121-1/+1
|
* Fix slice out of bounds error in mailer (#2479)Jonas Östanbäck2017-09-111-1/+2
|
* Webhooks for repo creation/deletion (#1663)Ethan Koenig2017-09-031-0/+1
| | | | | | | | * Webhooks for repo creation/deletion * add createHookTask * Add handles for GetSlackPayload and GetDiscordPayload
* Fix releases to be counted from database not tags (#2389)Lauris BH2017-08-281-1/+9
|
* Implementation of discord webhook (#2402)Lunny Xiao2017-08-282-1/+14
| | | | | | | | | | | | * implementation of discord webhook * fix webhooks * fix typo and unnecessary color values * fix typo * fix imports and revert changes to webhook_slack.go
* Add UseCompatSSHURI setting (#2356)Manuel2017-08-261-0/+3
| | | | | | | | | | | | | | | | * Add UseCompatSSHURI setting Signed-off-by: Manuel Kroeber <manuel.kroeber@gmail.com> (+1 squashed commits) Squashed commits: [dda2dc79] Add ForceCloneSSHURL setting Signed-off-by: Manuel Kroeber <manuel.kroeber@gmail.com> * Make protocol if construct more readable Signed-off-by: Manuel Kroeber <manuel.kroeber@gmail.com>
* Add possibility to record branch or tag information in an issue (#780)Zsombor2017-08-241-0/+1
|
* Moved vendored js/css into `public/vendor` and documented sources (#1484) ↵Michael Lustfield2017-08-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#2241) * Cleaning up public/ and documenting js/css libs. This commit mostly addresses #1484 by moving vendor'ed plugins into a vendor/ directory and documenting their upstream source and license in vendor/librejs.html. This also proves gitea is using only open source js/css libraries which helps toward reaching #1524. * Removing unused css file. The version of this file in use is located at: vendor/plugins/highlight/github.css * Cleaned up librejs.html and added javascript header A SafeJS function was added to templates/helper.go to allow keeping comments inside of javascript. A javascript comment was added in the header of templates/base/head.tmpl to mark all non-inline source as free. The librejs.html file was updated to meet the current librejs spec. I have now verified that the librejs plugin detects most of the scripts included in gitea and suspect the non-free detections are the result of a bug in the plugin. I believe this commit is enough to meet the C0.0 requirement of #1534. * Updating SafeJS function per lint suggestion * Added VERSIONS file, per request
* Improve swagger doc (#2274)Antoine GIRARD2017-08-211-0/+4
| | | | | | | | | | | | | | | | | | | | * Add swagger comment for adminCreateOrg * Add swagger comment for admin route * add hook swagger doc * Add tags * Add auth * Fix name of responses * Edit name method * Update vendor * make generate-swagger
* Add OpenID configuration in install page (#2276)Sandro Santilli2017-08-191-0/+2
|
* No error log entries for repo 404 (#2200)Ethan Koenig2017-08-191-2/+2
|
* Fix rendering of external links (#2292)Ethan Koenig2017-08-132-78/+54
|
* Make short link pattern greedy (#2259)Michael Kuhn2017-08-062-1/+7
| | | Multiple links on the same line are currently not recognized correctly.
* Fix internal requests when gitea listens to unix socket or only external IP ↵Lauris BH2017-08-034-12/+34
| | | | | | | | (#2234) * Fix internal requests when gitea listens to unix socket or only external IP * When Gitea is set to listen using FastCGI use AppURL for LocalURL
* Fix counts on issues dashboard (#2215)Ethan Koenig2017-08-031-0/+150
| | | | | | | | | | * Fix counts on issues dashboard * setupSess -> setupSession * Unit test * Load repo owners for issues
* EnableUnit() -> UnitEnabled() (#2242)Ethan Koenig2017-08-021-8/+1
|
* Fix git version check with four digits (1.8.3.1) (#2236)Christoph Handel2017-08-011-1/+1
|
* Fix profile update for non-local users (#2178)Lauris BH2017-07-191-1/+1
|
* Remove unit types commits and settings (#2161)Lauris BH2017-07-171-2/+3
| | | | | | | | | | * Remove unit types commits and settings * Can not limit units in administrator teams * Limit changing units only to teams with read and write access mode * Small code optimization
* Only show SSH clone URL if signed in (#2169) (#2170)Stefan Kalscheuer2017-07-152-0/+3
| | | | | | | | | | | | | | | | | | | * Add configuration flag SSH_EXPOSE_ANONYMOUS If this flag (default True) is set to false, the SSH clone URL will only be exposed if the current user is signed in. * Default SSH exposure set to false To match GitHub and for security reasons, SSH URL exposure is disabled by default. In addition to that. minor code changes have been applied. Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de> * Add integration tests * Hide clone button neither HTTP and SSH is enabled Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
* Fix SHA1 hash linking (#2143)Roy Marples2017-07-122-6/+15
| | | | | | | | | | | | | | | | This changes the regex to look for a hash from 7 to 40 characters, to match the use of abbreviated hash lookups in both git and github. The restriction of not being a pure number is also removed because 1234567 is now considered a valid abbreviated hash, as is deadbeef. A note has been added to the top of the code to state that the literal regex match is fine, but no extra validation is currently performed so some false positives are expected. A future change could ensure that the hash exists in the repository before rendering it as a link, although this might incur a slight performance penalty. Reverts part of commit 4a46613 and fixes #2053.
* Fix import orderEthan Koenig2017-07-061-4/+4
|
* Relative URL testsEthan Koenig2017-07-061-0/+4
|
* Fix wiki preview linksEthan Koenig2017-07-062-40/+43
|
* Fix missing-return bug (#2109)Ethan Koenig2017-07-041-0/+1
|
* Check for valid renamed usernames (#2077)Ethan Koenig2017-07-011-1/+1
| | | | | | | | | | * Check for valid renamed usernames * Integration test * Test for username with space * Make name field required
* Absolute path for setting.CustomConf (#2085)Ethan Koenig2017-07-011-0/+2
|
* lintEthan Koenig2017-06-291-0/+1
|
* Use default avatar on errorEthan Koenig2017-06-291-1/+6
|
* Don't ignore gravatar errorEthan Koenig2017-06-291-2/+4
|
* Make time diff translatable (#2057)Lauris BH2017-06-282-72/+37
|
* Setting to disable authorized_keys backup (#1856)Dan Magnus Lindvall2017-06-281-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add setting to disable authorized_keys backup when rewriting public keys Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Update default value to comply with documentation Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Use tmp-file instead of bak-file for saving manually added keys. Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change casing Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change casing and build bakpath with sprintf only Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Only close file once Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Do not modify calcFingerprint Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Fix casing Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change style from disable to enable Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change name, just SSH_BACKUP_AUTHORIZED_KEYS Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Do not check for directory existence if backup is disabled Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Always return valid go-get meta, even if unauthorized (#2010)Kim "BKC" Carlbäcker2017-06-261-3/+41
| | | | | | * Always return valid go-get meta, even if unauthorized * don't leak information
* remove deprecated code for Gogs compitable (#2041)Lunny Xiao2017-06-231-9/+1
|
* ROOT_URL setting use the default as shown in conf/app.ini (#1823)Mike Fellows2017-06-221-12/+18
| | | | | | | | | | | | | | | | | | The well commented conf/app.ini file that comes with the code shows the ROOT_URL (i.e. setting.AppURL) as: ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ However the installed custom/conf/app.ini file does not include this setting as shown, and the default in the setting module was hard coded to http://localhost:3000/ instead of what is shown above. With this change the ROOT_URL will default to what is shown above if it is not set in the custom/conf/app.ini. Of course it is still possible to override the default by adding the ROOT_URL setting to your custom/conf/app.ini file as usual. Signed-off-by: Mike Fellows <mike.fellows@shaw.ca>
* fix misspell (#1996)Bo-Yi Wu2017-06-181-1/+1
| | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Merge pull request #1829 from ethantkoenig/no_branchesAndrey Nering2017-06-121-0/+4
|\ | | | | Commitless repos should be bare
| * Commitless repos should be bareEthan Koenig2017-05-281-0/+4
| |
* | No highlighting for .txt files (#1922)Ethan Koenig2017-06-091-1/+3
| |
* | Send mails as HTML as default. Setting for send as plain text. (#1648)Jonas Östanbäck2017-06-072-21/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | * Send mails as HTML as default. Setting for send as plain text. * Add new option SendAsPlainText. remove EnableHTMLAlternative * Send HTML mails as default * Add html check if html2text should be performed * Send only multipart or plain. Add deprication warning for ENABLE_HTML_ALTERNATIVE * Still use ENABLE_HTML_ALTERNATIVE for backward compatibility * Changed to not ignore html2text errors
* | Include formatting check to the `make test` (and thus also `check`) rule (#1366)Sandro Santilli2017-06-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Include formatting check to the `make check` rule ... and give it its own standalone target too (make fmt-check) Show diff on fmt-check failure Do not allow running "fmt-check" with incompatible go version Also simplify the `fmt` rule * Forbid running "make fmt" with Go version != 1.7 or 1.8 * Ignore bindata.go for spelling and formatting checks also remove duplicated variable assignment for GOFILES * Run `make fmt`
* | Make `LocalCopyPath` a setting instead of a hard-coded path (#1881)Phil Hopper2017-06-061-0/+14
| |