summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Template Repositories (#8768)John Olheiser2019-11-1158-118/+1440
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Start work on templates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Continue work Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix IsTemplate vs IsGenerated Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tabs vs spaces * Tabs vs Spaces * Add templates to API & start adding tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix integration tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove unused User Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move template tests to existing repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Minor re-check updates and cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix optionalbool Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test fixes and icon change Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add new user and repo for tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests (finally) Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update meta repo with env variables Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move generation to create page Combine with repo create template Modify API search to prioritize owner for repo Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests and coverage Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix swagger and JS lint Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix API searching for own private repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Change wording Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix repo search test. User had a private repo that didn't show up Signed-off-by: jolheiser <john.olheiser@gmail.com> * Another search test fix Signed-off-by: jolheiser <john.olheiser@gmail.com> * Clarify git content Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Feedback updates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add topics WIP Signed-off-by: jolheiser <john.olheiser@gmail.com> * Finish adding topics Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update locale Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Migrate temp_repo.go to use git.NewCommand (#8918)zeripath2019-11-112-163/+93
| | | | | | | This PR migrates temp_repo.go to use git.NewCommand instead creating processes by itself - this fixes the problem underlying PR #8905. There are other places that run git outside of the controlled locale defined in #8548 but temp_repo.go is the only cause of failure of local testing in cases where English is not the default - implying that error messages from those other commands are not interpreted. Replaces #8905
* Only view branch or tag if it match refType requested. (#8899)David Svantesson2019-11-111-2/+18
| | | | | | * only view branch or tag if it match refName. * remove pointer in method
* Move notifywatchers from models to notification (#8907)Lunny Xiao2019-11-112-10/+26
|
* Fix typo in doc (#8914)Florian Hübner2019-11-101-1/+1
| | | Fix typo in doc fail2ban-setup.md
* Stop using git count-objects and use raw directory size for repository (#8848)zeripath2019-11-104-8/+26
| | | | | * Migrate from git count-objects to a raw directory size * As per @guillep2k ignore unusual files
* Rephrase comment about RuntimeDirectory option (#8912)Anthony Vanelverdinghe2019-11-101-2/+2
|
* Auto-subscribe user to repository when they commit/tag to it (#7657)guillep2k2019-11-1014-29/+296
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for AUTO_WATCH_ON_CHANGES and AUTO_WATCH_ON_CLONE * Update models/repo_watch.go Co-Authored-By: Lauris BH <lauris@nix.lv> * Round up changes suggested by lafriks * Added changes suggested from automated tests * Updated deleteUser to take RepoWatchModeDont into account, corrected inverted DefaultWatchOnClone and DefaultWatchOnChanges behaviour, updated and added tests. * Reinsert import "github.com/Unknwon/com" on http.go * Add migration for new column `watch`.`mode` * Remove serv code * Remove WATCH_ON_CLONE; use hooks, add integrations * Renamed watch_test.go to repo_watch_test.go * Correct fmt * Add missing EOL * Correct name of test function * Reword cheat and ini descriptions * Add update to migration to ensure column value * Clarify comment Co-Authored-By: zeripath <art27@cantab.net> * Simplify if condition
* Adjust error reporting from merge failures and use LC_ALL=C for git (#8548)zeripath2019-11-107-92/+480
| | | | | | There are two major components to this PR: * This PR handles merge and rebase failures from merging a little more nicely with Flash errors rather a 500. * All git commands are run in the LC_ALL="C" environment to ensure that error messages are in English. This DefaultLocale is defined in a way that if necessary (due to platform weirdness) it can be overridden at build time using LDFLAGS="-X "code.gitea.io/gitea/modules/git.DefaultLocale=C"" with C changed for the locale as necessary.
* Fix API Bug (fail on empty assignees) (#8873)65432019-11-103-14/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * keep sure if assigneeIDs == nil -> do nothing * fix #8872 * Revert "keep sure if assigneeIDs == nil -> do nothing" -> go handle it itself preaty well This reverts commit e72d94129c4666d5151f6131cb2f8c1de127d9d0. * clarity comparson Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * simplify * Update models/issue_assignees.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update issue_assignees.go * simplify more * add --if oneAssignee != ""-- again * Update models/issue_assignees.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * CI.restart() * Update issue_assignees.go * add Test for GetUserIDsByNames * add Test for MakeIDsFromAPIAssigneesToAdd * fix test
* Move code.gitea.io/gitea/routers/api/v1/convert to ↵Lunny Xiao2019-11-1026-24/+24
| | | | | | | | code.gitea.io/gitea/modules/convert (#8892) * Move code.gitea.io/gitea/routers/api/v1/convert to code.gitea.io/gitea/modules/convert * fix fmt
* Fix issue with user.fullname (#8902)zeripath2019-11-091-3/+5
|
* Enable punctuations ending mentions (#8889)guillep2k2019-11-092-12/+37
| | | | | | * Enable punctuations ending mentions * Improve tests
* Update Github migration test (#8893)mrsdizzie2019-11-091-6/+0
| | | | | | | | | | | | * Update Github migration test Earlier today #716 was reopened which updated the modification time for an old milestone (1.6.0) that we use in testing with the assumption that it is old and won't change. This breaks all builds now, so remove this test since we have others that test the same code and this milestone will likely be updated again as that issue changes etc... * ci
* Leave non-dated issues for last (#8871)guillep2k2019-11-091-1/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-091-0/+16
|
* Fix require external registration password (#8885)guillep2k2019-11-091-3/+3
| | | | | | * Fix require external registration password * Fix ctx on error condition by @jolheiser
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-0924-48/+0
|
* Fix password complexity check on registration (#8887)guillep2k2019-11-092-2/+7
| | | | | | * Fix registration password complexity * Fix integration to use a complex password ;)
* Allow to add and remove all repositories to/from team. (#8867)David Svantesson2019-11-097-45/+175
| | | | | | | | | | | | | | | | * Allow to add and remove all repositories to team. * Change style, buttons on same row. * Apply suggestions from code review Grammar Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Move set num repos to lower function. * Make general language sentences
* Create third-party-tools.zh-cn.md (#6303)MysticBoy2019-11-081-0/+36
| | | | | | | | * Create third-party-tools.zh-cn.md * Update third-party-tools.zh-cn.md * Update third-party-tools.zh-cn.md
* Fix bug when migrate from API (#8631)Lunny Xiao2019-11-084-9/+54
| | | | | | | | | | | | * fix bug when migrate from API * fix test * fix test * improve * fix error message
* Webhook support custom proxy (#8760)Lunny Xiao2019-11-086-3/+101
| | | | | | | | | | | | * Webhook support custom proxy * Add glob support on webhook proxy host rules * fix app.ini.sample * improve code and app.ini.sample * update cheetsheet about added webhook options
* Move some actions to notification/action (#8779)Lunny Xiao2019-11-0810-107/+88
| | | | | | | | * Move some actions to notification/action * Fix test * fix test
* Add password reset to FAQ (#8883)John Olheiser2019-11-082-1/+16
| | | | | | | | | | | | | | | | | | | | | | * Add password reset to FAQ Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add links to email setup docs Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add en-us to email setup Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update docs/content/doc/help/faq.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Manually merge changes from @guillep2k and add small changes Signed-off-by: jolheiser <john.olheiser@gmail.com>
* a11y: Improve accessibility of dropdown menus (#8638)Jookia2019-11-085-0/+4031
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * js: Import Semantic-UI's dropdown.js (version 2.3.1) * js: Set tabindex=-1 on dropdown items Setting tabindex=-1 on focusable elements within dropdown menus allows the user to treat dropdown menus as a single focusable item with its own internal navigation using arrow keys. * js: Don't use jQuery to click menu items Menu items are often <a> elements, which jQuery refuses to trigger click events on. Instead it just bubbles up to the menu. Using HTMLElement's click method fixes this and makes menu items clickable from the keyboard using dropdown menus. * js: Set correct ARIA 1.1 roles on dropdown menus Setting role= makes assistive technology aware there is a widget here. In this case, Orca will now exit browse mode and allow us to capture keydown events when focused on a dropdown menu. It will also inform the user that there's a menu focused. Since dropdowns can be used in multiple elements each with different ARIA roles, a guessRole method is used to find the correct role. All roles I consider possible are listed, but only menu is implemented. * js: Set aria-expanded when dropdown menus show and hide This is deliberately done before the transition finishes so that screen readers get immediate feedback. * js: Set aria-label or aria-labelledby on dropdown menus This makes dropdown menu buttons screen reader accessible. aria-labelledby refers to an element using an ID, so the chosen labels are now assigned a unique ID- This ID is not stable, do not refer to it with user scripts. * js: Set aria-activedescendant on dropdown menus As the menus grab focus and navigate by tracking a 'selected' div class, assistive technology has no idea that what the current selection is. Assign IDs to each menu item and set aria-activedescendant to the ID of the currently selected menu item. When the menu is unfocused, remove aria-activedescendant- This isn't neccessary but in my experience it triggers Orca to remind the user of their current selection when re-focusing the menu. * Makefile: Make eslint ignore semantic.dropdown.js This file is taken from Semantic UI which isn't linted upstream. Ignore it as we won't fix these issues. * js: Add version note to semantic.dropdown.js * Add Md5 AppVer to templates/base/footer.tmpl Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Add Md5 AppVer to templates/pwa/serviceworker_js.tmpl Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * semantic.dropdown.js -> semantic.dropdown.custom.js * Use eslintignore * remove bogus submodule
* Fix edit content button on migrated issue content (#8877)mrsdizzie2019-11-081-1/+1
| | | | | | Typo on a closing span tag caused edit button not to work properly on the original issue content for a migrated issue. Fixes #8876
* Show due date in dashboard issues list (#8860)mrsdizzie2019-11-074-2/+13
| | | | | | | | | | | | | * Show due date in dashboard issues list Include due date when vieiwiing all issues on dashboard (matching what we show for repo issue lists). Fixes #8859 * Put in same order as repo issue list * Add suggested changes and also update repo issue list to match
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-071-0/+8
|
* Fix count for commit graph last page (#8843)jaqra2019-11-073-1/+22
| | | | | | | | | | | | * Fix count for commit graph last page * Remove used once variable * Move func to model * capitalize method name * fix error message
* Use templates for issue e-mail subject and body (#8329)guillep2k2019-11-0713-161/+780
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add template capability for issue mail subject * Remove test string * Fix trim subject length * Add comment to template and run make fmt * Add information for the template * Rename defaultMailSubject() to fallbackMailSubject() * General rewrite of the mail template code * Fix .Doer name * Use text/template for subject instead of html * Fix subject Re: prefix * Fix mail tests * Fix static templates * [skip ci] Updated translations via Crowdin * Expose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params (#8528) * Expose db.SetMaxOpenConns and allow other dbs to set their connection params * Add note about port exhaustion Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Prevent .code-view from overriding font on icon fonts (#8614) * Correct some outdated statements in the contributing guidelines (#8612) * More information for drone-cli in CONTRIBUTING.md * Increases the version of drone-cli to 1.2.0 * Adds a note for the Docker Toolbox on Windows Signed-off-by: LukBukkit <luk.bukkit@gmail.com> * Fix the url for the blog repository (now on gitea.com) Signed-off-by: LukBukkit <luk.bukkit@gmail.com> * Remove TrN due to lack of lang context * Redo templates to match previous code * Fix extra character in template * Unify PR & Issue tempaltes, fix format * Remove default subject * Add template tests * Fix template * Remove replaced function * Provide User as models.User for better consistency * Add docs * Fix doc inaccuracies, improve examples * Change mail footer to math AppName * Add test for mail subject/body template separation * Add support for code review comments * Update docs/content/doc/advanced/mail-templates-us.md Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
* Theme arc-green: reverse heatmap colors (#8840)Damien Pollet2019-11-062-1/+32
| | | | | | | | | | | | | | * Theme arc-green: reverse heatmap colors This uses the same colors as the updated palette in the base theme. See #8709 and #5864, in particular [my comment showing the problem](https://github.com/go-gitea/gitea/issues/5864#issuecomment-462334171) * Rebuild CSS * Use link color as hot, interpolate between hot and cold colors * Use color from a:hover
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-062-3/+12
|
* Split sendCreateCommentAction as two parts, one for update comment related ↵Lunny Xiao2019-11-062-30/+48
| | | | | | | | informations, another for actions (#8784) * Split sendCreateCommentAction as two parts, one for update comment related informations, another for actions * fix lint
* Add team option to grant rights for all organization repositories (#8688)David Svantesson2019-11-0617-75/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add field IsAllRepositories to team * Add AllRepositories to team UI * Manage team with access to all repositories * Add field IsAllRepositories to team API * put backticks around table/column names * rename IsAllRepositories to IncludesAllRepositories * do not reload slice if already loaded * add repo to teams with access to all repositories when changing repo owner * improve tests for teams with access to all repositories * Merge branch 'master' * Change code for adding all repositories Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * fmt after merge * Change code in API EditTeam similar to EditTeamPost web interface Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Clarify that all repositories will be added Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * All repositories option under Permissions headline * New setting group 'Repository access' * Move check IncludeAllRepositories to removeRepository. * Revert "Move check IncludeAllRepositories to removeRepository." and add comment instead. This reverts commit 753b7d205be260b8be465b5291a02975a81f3093. * Clarify help text what options do.
* Move release webhook to notification (#8817)Lunny Xiao2019-11-062-41/+35
| | | | | | | | | | * Move release webhook to notification * Extract release webhook method * fix bug * fix import
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-062-0/+24
|
* Move repofiles webhooks to notification (#8807)Lunny Xiao2019-11-065-68/+77
|
* Add migrate command to docs (#8842)John Olheiser2019-11-052-0/+11
| | | | | | | | | | | | | | | | | | * Add migrate command to docs Signed-off-by: jolheiser <john.olheiser@gmail.com> * Link to CLI Signed-off-by: jolheiser <john.olheiser@gmail.com> * Clarify idempotence Signed-off-by: jolheiser <john.olheiser@gmail.com> * Sneak in convert command Signed-off-by: jolheiser <john.olheiser@gmail.com>
* update docs to latest version (#8845)techknowlogick2019-11-051-1/+1
|
* Fix to close opened io resources as soon as not needed (#8839)Lauris BH2019-11-051-33/+39
| | | | | | * Fix to close opened io resources as soon as not needed * Remove unneeded err checks
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-052-0/+6
|
* Move pull webhook to notification (#8805)Lunny Xiao2019-11-057-70/+83
| | | | | | * Move pull webhook to notification * fix fmt
* Update go-org to optimize code (#8824)Lauris BH2019-11-0519-113/+4824
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-051-7/+12
|
* Fix (open/closed) issue count when label excluded (#8815)jaqra2019-11-051-2/+6
| | | | | | * Fix (open/closed) issue count when label excluded * Use capital sql keywords
* Add additional periods to activity page (#8829)Lauris BH2019-11-053-0/+18
|
* README: Update Screenshots and Badges in ZH (#8813)65432019-11-042-14/+13
| | | | | | | | | | | | | | * use relative instead of absolute paths * update badges of ZH readme * update screenshots * use <style> for table * remove useles stype * absolute paths for images
* Fix new user form for non-local users (#8826)Lauris BH2019-11-042-10/+12
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-041-1/+1
|