aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move UpdateIssuesCommit from models to repofiles (#9276)Lunny Xiao2019-12-074-334/+333
|
* Redirect issue if repo has configured external tracker. (#9247)David Svantesson2019-12-0691-8/+2150
| | | | | | | | | | * Redirect issue if repo has configured external tracker. * Handle error * Add tests for redirect * Fix test consistency
* Move some pull request functions from models to services (#9266)Lunny Xiao2019-12-069-212/+280
| | | | | | * Move some pull request functions from models to services * Fix test
* Show label list on label set (#9251)Oscar Costa2019-12-064-8/+37
| | | | | | | | | | * Showing the list of labels of template files #7812 * Returning and logging errors when loading labels * Commenting public method * Change log level in case of error loading labels.
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-062-1/+11
|
* docs change gitea version to 1.10.1 (#9270)65432019-12-061-1/+1
|
* Update JS dependencies (#9255)silverwind2019-12-063-776/+1812
| | | | This is the result of `make npm-update`. I also fixed a minor linting issue which came up with the eslint 6.7 update.
* Only show part of members on orgnization dashboard and add paging for ↵Lunny Xiao2019-12-069-46/+121
| | | | | | | | | | orgnization members page (#9092) * Only show part of members on orgnization dashboard and add paging for orgnization members page * fix test * fix typo
* Move repoWorkPool outside rename/transfer repository (#9086)Lunny Xiao2019-12-065-54/+40
| | | | | | | | * Move repoWorkPool outside rename/transfer repository * fix import * Fix test
* Switch CSS minifier to cssnano (#9260)silverwind2019-12-052-4/+4
| | | | | This results in around 4kB saving in CSS size and also resolves with a particular issue on git bash which had issues with the format of the lessc arguments.
* Changelog 1.10.1 (#9256) (#9262)John Olheiser2019-12-061-0/+21
| | | | | | | | | * Changelog for 1.10.1 * format ... * format * add @techknowlogick s suggestion
* Ensure LF on checkouts and in editors (#9259)silverwind2019-12-052-1/+3
| | | | | | | This will ensure our repo is always checked out with LF line endings which should help Windows users who have line ending normalization enabled. Additionally, added the LF preference to .editorconfig.
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-051-0/+34
|
* Fix latest docker image haven't include static files. (#9252)Lunny Xiao2019-12-054-16/+22
| | | | | | * add warnging on docs * fix docs
* Add Node.js build dep, remove built js/css files (#9114)silverwind2019-12-0513-1427/+92
| | | | | | | | | - Added Node.js as build dependency and removes build files from git. - Added version checks for both Go and Node.js. - Overhauled the js/css make target to only run when needed. - Merged the `generate` make target into `build` as per suggestion. Fixes: https://github.com/go-gitea/gitea/issues/6782 Fixes: https://github.com/go-gitea/gitea/issues/9216
* Fixed topics margin (#9248)Alexey 〒erentyev2019-12-032-0/+5
| | | Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-0414-47/+0
|
* Change some label colors (#9051)jaqra2019-12-038-6/+11
| | | | | | * Change label colors * Override black basic label background for green theme on label list
* Branch protection: Possibility to not use whitelist but allow anyone with ↵David Svantesson2019-12-0320-171/+389
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | write access (#9055) * Possibility to not use whitelist but allow anyone with write access * fix existing test * rename migration function * Try to give a better name for migration step * Clear settings if higher level setting is not set * Move official reviews to db instead of counting approvals each time * migration * fix * fix migration * fix migration * Remove NOT NULL from EnableWhitelist as migration isn't possible * Fix migration, reviews are connected to issues. * Fix SQL query issues in GetReviewersByPullID. * Simplify function GetReviewersByIssueID * Handle reviewers that has been deleted * Ensure reviews for test is in a well defined order * Only clear and set official reviews when it is an approve or reject.
* Add comment to exported function WindowsServiceName (make revive) (#9241)David Svantesson2019-12-031-0/+1
|
* Allow kbd tags (#9245)John Olheiser2019-12-032-0/+6
| | | | | | | | | | * Allow kbd tags Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add test Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Don't link wiki revision to commit (#9244)mrsdizzie2019-12-031-0/+4
| | | | | | | | | In #7907 a change was made to use the same template for repo and wiki commit lists. However, there is no code or logic for showing the diff of a wiki commit so it just produces broken links like: http://localhost:3000/mrsdizzie/%!s(%3Cnil%3E)/commit/5e72eeb00896d3853ab22a01950a50119b249567 This just removes the link for now until that feature is implemented
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-031-0/+24
|
* Add myself to maintainers (#9240)David Svantesson2019-12-031-0/+1
|
* Fix Dashboard Issues/PR list (#9235)65432019-12-031-17/+25
| | | | | | * fix it * revert suggestion part
* Fix active issue (#9238)John Olheiser2019-12-031-3/+3
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove empty lines (#9232)John Olheiser2019-12-031-1/+1
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix context menu overflow & review tag margin (#9231)John Olheiser2019-12-035-7/+17
| | | | | | | | | | * Fix context menu overflow Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add review tag CSS Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-021-0/+43
|
* Change review content column to type text in db (#9229)David Svantesson2019-12-023-1/+39
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-021-0/+23
|
* Remove unused comment actions (#9222)Lunny Xiao2019-12-026-55/+10
| | | | | | * Remove unused comment actions * improve code
* Fixed topic regex pattern and added search by topic links after save (#9219)Alexey 〒erentyev2019-12-023-4/+4
| | | Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* [UI] IssuePage multi repo select (#8741)65432019-12-017-95/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make repository list @ issues/PR page persist Will partially fix #6355 * Enable multiple selections in repo list @ issues/PR page Part of issue #6355 * Add RepoIDs to UserIssueStatsOptions to make "type" count correct when selecting one/multiple repos. * Replace variable "repo" with list "repos[]" and enable multiple selections of repositories from list by including/excluding RepoIDs in list. * * Remove redundant code * Add 'All' button Improves functionality of the page, so that backtracking is not necessary to reset the page * Remove redundant variable Completely replace 'RepoID' with 'RepoIDs' and remove redundant code * Add RepoIDs to label link * Revert part of code to previous version to troubleshoot build failure * Implement old and new pieces of code whilst adhering to multi select * Attempt to join the two versions Last commit passed tests but doesn't work in practice, this works in practice and hopefully passes the tests. * Update tests to desired state * Fix pagination implementation and tests * Pass repoIDs as `repos=[1,2,3...]` instead of several `repos[]=..` * Update tests file to reflect new functionality * Update template with new `repos` format * Implement new solution to show constant "total issues" count for "All" button * Correct behavior when passing zero to array * Comment out test url returning 404 This keeps returning 404 in the test despite working in practice, for the sake of running more tests I am commenting it out * Comment out another test url returning 404 Last attempt, if more tests crash I will uncomment the urls and request assistance. * Reenable tests and test fix * Re-enable tests * Make selecting "In your repositories" reset selection as passing IDs of repos belonging to other profiles causes breakage * Remove unnecessary (with multi-selection enable) code * Drop repo from repo map and total count if permission denied * Remove extra parenthesis * make template work again * find bug! * forgot the '#' at bugfixing * delete unused RepoID * compile regex only one time * make fmt * local variable = capital letter lower * check if repos query pattern is correct * pagination remove last , - make regex work again * use Replace instead of ReplaceAll; del delete * fix test * how did this test binary got in?!? dont forgot the "-p" at git add * ! * dont replace -> cut fisrt & last string Co-Authored-By: zeripath <art27@cantab.net> * jet another regex dont mind as long as it has the same result and is performatn ... Co-Authored-By: zeripath <art27@cantab.net> * dont use nonexisting repo for test * exclude /issues?type=created_by from test * add table to querys use same syntax in each query (table.colum) * add new issue for test * dont make a workaround or something else this need a refactor itself and is out of scope for this PR * fix misspell * CI.redo() * englisch txt update Co-Authored-By: zeripath <art27@cantab.net> * add sugestions * Tweak & Fix * CI.restart()
* [Feature] Custom Reactions (#8886)65432019-12-0113-18/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add [ui] Reactions * move contend check from form to go functions * use else if * check if reaction is allowed only on react (so previous custom reaction can be still removed) * use $.AllowedReactions in templates * use ctx.Flash.Error * use it there too * add redirection * back to server error because a wrong reaction is a template issue ... * add emoji list link * add docs entry * small wording nit suggestions from @jolheiser - thx * same reactions as github * fix PR reactions * handle error so template JS could check * Add Integrations Test * add REACTIONS setting to cheat-sheet doc page
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-011-0/+27
|
* Alternate syntax for cross references (#9116)guillep2k2019-12-015-65/+309
| | | | | | | | | | | | | | | | | | | | * Add support for local vs. remote xrefs * Add doc for references * Docs: fix cases not currently supported * One more doc fix * Doc: mentions for teams and orgs * Change !num ref concept, no change in functionality * Fix test * Improve table of issue reference types * Fix paragraph mark
* Extract createComment (#9125)Lunny Xiao2019-11-309-53/+130
| | | | | | | | * Extract createComment * fix lint * fix lint
* Add release_counter to Repo API (#9214)65432019-11-303-0/+7
|
* [Bug] [API] Add language to user api (#9215)65432019-11-301-0/+1
| | | | | | | | * add language to user api * OK Co-Authored-By: Lauris BH <lauris@nix.lv>
* Graceful: Cancel Process on monitor pages & HammerTime (#9213)zeripath2019-11-3021-197/+535
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Graceful: Create callbacks to with contexts * Graceful: Say when Gitea is completely finished * Graceful: Git and Process within HammerTime Force all git commands to terminate at HammerTime Force all process commands to terminate at HammerTime Move almost all git processes to run as git Commands * Graceful: Always Hammer after Shutdown * ProcessManager: Add cancel functionality * Fix tests * Make sure that process.Manager.Kill() cancels * Make threadsafe access to Processes and remove own unused Kill * Remove cmd from the process manager as it is no longer used * the default context is the correct context * get rid of double till
* Make consistent links to repository in the Slack/Mattermost notificiations ↵Lauris BH2019-11-301-33/+38
| | | | (#9205)
* Variable expansion in repository templates (#9163)John Olheiser2019-11-305-51/+298
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Start expansion Signed-off-by: jolheiser <john.olheiser@gmail.com> * _template rather than .template Signed-off-by: jolheiser <john.olheiser@gmail.com> * Use ioutil Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add descriptions to mapping * Start globbing Signed-off-by: jolheiser <john.olheiser@gmail.com> * Tune globbing Signed-off-by: jolheiser <john.olheiser@gmail.com> * Re-arrange imports Signed-off-by: jolheiser <john.olheiser@gmail.com> * Don't expand git hooks Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add glob tests for .giteatemplate Signed-off-by: jolheiser <john.olheiser@gmail.com> * Parse globs separately so they can be tested more easily Signed-off-by: jolheiser <john.olheiser@gmail.com> * Change template location and add docs Signed-off-by: jolheiser <john.olheiser@gmail.com> * nit Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update docs/content/doc/features/gitea-directory.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update docs/content/doc/features/gitea-directory.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Add upper-lower case match Signed-off-by: jolheiser <john.olheiser@gmail.com> * Nits Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update models/repo_generate.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Correct tooltip msg blocked by dependencies (#9211)programkode2019-11-291-2/+2
|
* expose PR counter on Repo API (#9202)65432019-11-293-0/+7
|
* Move PushUpdateOptions from models to repofiles (#9124)Lunny Xiao2019-11-295-15/+15
|
* Properly fix displaying virtual session provider in admin panel (#9137)zeripath2019-11-282-8/+8
| | | | | | | | | | | | | | | * Properly fix #7127 Although #7300 properly shadows the password from the virtual session provider, the template displaying the provider config still presumed that the config was JSON. This PR updates the template and properly hides the Virtual Session provider. Fixes #7127 * update per @silverwind's suggestion
* upgrade levelqueue to 0.1.0 (#9192)Lunny Xiao2019-11-2814-40/+142
|
* Fix panic when diff (#9187)Lunny Xiao2019-11-2826-8/+688
| | | | | | * fix panic when diff * improve code
* docker: ask s6 to stop all service when gitea stop (#9171)Antoine GIRARD2019-11-271-1/+1
| | | | | | | | * fix: ask s6 to stop all service when gitea stop https://github.com/just-containers/s6-overlay#writing-an-optional-finish-script * change service folder