aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add TOTP header to Swagger Documentation (#12402)65432020-08-022-0/+15
|
* Fix milestone links (#12405)zeripath2020-08-022-2/+2
| | | | | | | The milestone pages links should direct to the milestone pages Fix #10215 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix incorrect error logging in Stats indexer and OAuth2 (#12387)zeripath2020-08-012-3/+9
| | | | | | | | | | | | | | | | | | | | * Fix incorrect logging in oauth2.go Fix #11945 Signed-off-by: Andrew Thornton <art27@cantab.net> * Handle ErrAlreadyInQueue in stats indexer Fix #12380 Signed-off-by: Andrew Thornton <art27@cantab.net> * Fixes type in error message of indexer Add the missing character in the error message. Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lieven Hollevoet <hollie@lika.be>
* [Vendor] upgrade google/go-github to v32.1.0 (#12361)65432020-07-31114-2623/+9157
| | | | | | * upgrate go-github client to v32.1.0 * migrate
* [skip ci] Updated translations via CrowdinGiteaBot2020-07-312-4/+43
|
* models: break out of loop (#12386)Lars Lehtonen2020-07-311-1/+2
|
* Improve HTML escaping helper (#12383)silverwind2020-07-303-10/+13
| | | | | | | | The previous method did not escape single quotes which under some circumstances can lead to XSS vulnerabilites and the fact that it depends on jQuery is also not ideal. Replace it with a lightweight module. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Various arc-green fixes (#12384)silverwind2020-07-301-6/+27
| | | | | | | | - Fix various white borders - Fix dropdown triangle - Fix tab backgrounds - Fix release page timeline dots Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Don't use legacy method to send Matrix Webhook (#12348)S7evinK2020-07-306-8/+87
| | | | | | | | | | | | | | | | | * Don't use legacy send for messages * Add migrations to ensure Matrix webhooks use PUT * Set HTTP method to PUT as default * Fix sql condition.. Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Rename getTxnID -> getMatrixTxnID * Use local variable instead of constant value Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add note to README about make parallelism (#12378)silverwind2020-07-301-0/+2
| | | Alternative to https://github.com/go-gitea/gitea/pull/12367
* [skip ci] Updated translations via CrowdinGiteaBot2020-07-302-0/+2
|
* Vendor update: github.com/yuin/goldmark v1.2.1 (#12377)赵智超2020-07-309-39/+233
| | | | | Thanks to @yuin fix #12376
* Add action feed for new release (#12324)赵智超2020-07-2910-15/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add action feed for new release Signed-off-by: a1012112796 <1012112796@qq.com> * fix lint * Apply suggestions from code review * Add ReleaseID to the action table * Remove error message * Fold the attachments download list * remove attchment download list * simplify code * fix create release from existing tag * simplify ui * translation change * fix test Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Move jquery-minicolors to npm/webpack (#12305)silverwind2020-07-2915-366/+36
| | | | | | | | | | | | | | | | | | | | * Move jquery-minicolors to npm/webpack - Unvendor and add as npm dependency - Removed unneeded backend variable - Fixed existing bug where picker would previously initizalize to the same green color when editing a label. There was probably a version bump because the previous version was over 3 years old but it seems to be compatible. * use file-loader * trailing comma and comment update * misc tweaks Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Git 2.28 no longer permits diff with ... on unrelated branches (#12364)zeripath2020-07-295-12/+68
| | | | | | | * Git 2.28 no longer permits diff with ... on unrelated branches Signed-off-by: Andrew Thornton <art27@cantab.net> * need to check stderr
* Fix clone panel in wiki position not always align right (#12326)Gary Wang2020-07-291-3/+3
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix typo in README.md (#12369)Kevin Schweikert2020-07-291-2/+2
| | | Changed Dockefile to Dockerfile
* Changelog v1.12.3 (#12356) (#12357)65432020-07-281-0/+11
|
* Fixes #12341: Release date should only be set to current time if draft or ↵Richard Mahn2020-07-282-1/+152
| | | | | | | | | | | | | | | | | | | | | | | tag created (#12343) * Fixes #12341: Release date should only be set to current time if draft or tag created * Removes old date set * Adds unit tests * make fmt * Fixes tests * Adds sleep for comparing times * Adds sleep for comparing times * Fixes tests Co-authored-by: Matti R <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net>
* Remove padding/border-radius on image diffs (#12346)silverwind2020-07-281-1/+2
|
* Only use --exclude on name-rev with git >= 2.13 (#12347)zeripath2020-07-281-1/+15
| | | | | Fix #11917 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add name filter to API for GetMilestoneList (#12336)65432020-07-288-36/+115
| | | | | | | | | Adds a name filter to the API for GetMilestoneList Includes a small refactor: merge GetMilestones and GetMilestonesByRepoID Close #12260 Needed for https://gitea.com/gitea/go-sdk/issues/383 and https://gitea.com/gitea/tea/pulls/149
* Update JS deps and linting config (#12295)silverwind2020-07-275-695/+547
| | | | | | | | - update js deps to latest versions - remove eslint-plugin-sonarjs to prevent a warning on install. can be added again once it's updated to support eslint 7.x - enable new linting rules from eslint-plugin-unicorn Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Detect version of sed in Makefile (#12319)silverwind2020-07-271-9/+6
| | | | | | | | | | | | * Detect version of sed in Makefile It's possible to install GNU sed on Darwin or FreeBSD so it's better to not assume BSD sed on those platforms but to instead perform version detection for the `GNU` string and only use BSD syntax if absent. * silence stderr Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add 'watch-backend' (#12330)silverwind2020-07-274-17/+39
| | | | | | | | | | | | | * Add 'watch-backend' This leverages `air` to watch the backend files and trigger `make backend` automatically when they change. It seems to work rather well together with `watch-frontend`. Fixes: https://github.com/go-gitea/gitea/issues/12318 * rework docs to a new section for continuous build Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* update chroma to v0.8.0 (#12337)techknowlogick2020-07-2719-97/+469
|
* Add mermaid JS renderer (#12334)silverwind2020-07-2710-41/+521
| | | | | | | | | | | | | | | | | | | * Add mermaid JS renderer For feature parity with GitLab. Tested in files, issues, wiki, editor. arc-green only does an inversion because the renderer seems to like to render white backgrounds on boxes. Ref: https://github.com/go-gitea/gitea/issues/3340 Fixes: https://github.com/go-gitea/gitea/issues/12307 * add feature entry, switch to neutral theme, remove border * add bindFunctions support * remove unnecessary border-radius Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Update vendored .gitattributes (#12322)silverwind2020-07-271-9/+2
| | | | | | | These `linguist-vendored` attributes are only for the language stats seen on github and they mostly haven't been updated with file reorganizations. Move them to the two actually vendored directories. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Disable search box autofocus on issue/pr pages (#12229)silverwind2020-07-262-2/+2
| | | | | | Various pages like the issue list autofocus their search box which I find rather intrusive because more often than not I don't want to type into the search box, it's distracting if the focus jumps after page load. Disable this behaviour. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Use url.Parse to parse hostname (#12335)techknowlogick2020-07-261-5/+2
|
* Refactor: Remove Dependencies from Migration v111 (#11646)65432020-07-261-15/+344
| | | | | | | * Refactor: Remove Dependencys from Migration v111 * Update models/migrations/v111.go Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix ipv6 parsing (#12321)Wim2020-07-263-9/+21
| | | | | | | | | | | | * Fix ipv6 parsing * Update modules/setting/setting.go Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Show 404 page when release not found (#12328)赵智超2020-07-261-0/+4
| | | | | Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-07-261-0/+40
|
* Rework 'make generate-images' (#12316)silverwind2020-07-2613-32/+90
| | | | | | | | | | | | | | | | | | | | | | | * Rework 'make generate-images' - Remove external dependencies and replace it with a node script that does does the same. - Move detail removal from gitea-sm.png to favicon.png - Remove favicon.ico and its generation, it is unused and we already serve favicon.png in its place. Fixes: https://github.com/go-gitea/gitea/issues/12314 * use proper centering value for preserveAspectRatio * fix lint * use fabric * better linting fix * fix typo * mention detail-remove class in docs
* Fix emoji detection in certain cases (#12320)mrsdizzie2020-07-252-1/+22
| | | | | | | | | | | * Fix emoji detection certain cases Previous tests weren't complicated enough so there were some situations where emojis were't detected properly. Find the earliest occurance in addition to checking for the longest combination. Fixes #12312 * ok spell bot Co-authored-by: Lauris BH <lauris@nix.lv>
* Reduce emoji size (#12317)silverwind2020-07-252-20/+5
| | | | | | | | | | * Reduce emoji size Rendering should now pretty much match GitHub with 1.25em. I verified that emojis don't increase the line height and removed unecessary size overrides because now all emojis should appear similar in relation to the font size. * fix reaction hover
* Remove unused svg and improve 'make svg-check' (#12311)silverwind2020-07-242-3/+3
| | | | - Remove unused source SVG gitea-settings (it was changed to ociticon) - Improve 'make svg-check' to also detect added files
* Use a small size repo for migrate test (#12300)赵智超2020-07-242-7/+7
| | | Signed-off-by: a1012112796 <1012112796@qq.com>
* Fix input box value access on repo create (#12299)silverwind2020-07-231-2/+2
| | | Followup to https://github.com/go-gitea/gitea/pull/12202
* Auto-init repo on license, .gitignore select (#12202)Alexander Scheel2020-07-231-0/+11
| | | | | | | | | | | | | | | | | | | * Auto-init repo on license, .gitignore select When a .gitignore or LICENSE file is added, the user is expecting the repository to be auto-initialized. However, nothing sets the auto_init value, so it remains at its default. We should set it to checked when a .gitignore or LICENSE file is added, matching user expectations. If the user clears .gitignore or LICENSE, it will leave repository creation enabled. If the user changes the value again, it will re-check the box if the user has since de-checked it. This behavior is at least consistent. Resolves: #11071 Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix double-indirection bug in logging IDs (#12294)zeripath2020-07-231-1/+1
| | | | | | This PR fixes a bug in log.NewColoredIDValue() which led to a double indirection and incorrect IDs being printed out. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Migrations (v82,v96,v99,v136) remove dependencies (#12286)65432020-07-224-11/+35
| | | | | | | * remove dependencys * add missing fields * CI.restart()
* Clarify documentation of SKIP_VERIFY (#12203)Alexander Scheel2020-07-212-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Clarify documentation of SKIP_VERIFY The documentation clearly documents the empty value as the default, however at least one user reported this as being unclear. Mark values explicitly so it is clear what values it can take. This clarifies that an empty value in fact leaves certificate verification enabled, whereas it has to be explicitly set to true to disable certificate verification. Resolves: #12117 Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com> * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-authored-by: mrsdizzie <info@mrsdizzie.com> * Update custom/conf/app.example.ini Co-authored-by: mrsdizzie <info@mrsdizzie.com> * Update custom/conf/app.example.ini Co-authored-by: mrsdizzie <info@mrsdizzie.com> Co-authored-by: mrsdizzie <info@mrsdizzie.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* merge docker makefile into main one (#12289)techknowlogick2020-07-213-16/+20
| | | | | | | | | * merge docker makefile into main one * add readme for docker folder * don't include a file that doesn't exist anymore Co-authored-by: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2020-07-211-0/+12
|
* Support use nvarchar for all varchar columns when using mssql (#12269)Lunny Xiao2020-07-2111-8/+68
| | | | | | | | | * Support use nvarchar for all varchar columns when using mssql * fix lint * Change DEFAULT_VARCHAR to nvarchar * Remove the config for default varchar since it's unnecessary
* [skip ci] Updated translations via CrowdinGiteaBot2020-07-191-10/+10
|
* prefer NoError/Error over Nil/NotNil (#12271)Stephen Solka2020-07-1911-34/+34
|
* Add logic to build stable and edge builds (#12052)Alan Pope2020-07-171-0/+9
| | | | | | | | | | | | | | | | | | | This adds some logic to enable the snapcraft builds of the gitea snap to create both builds of the latest tip of master for edge channels, and stable releases. The logic simply looks for a new upstream release in github, and if that latest tagged release is not the same as the release in the candidate channel in the snap store, then it must be new, and so we checkout that tag and build that. If the current released tag is the same as what's in candidate, we build whatever is in git master. The process for using this is: Initially: When this lands, it will build the latest stable release of gitea and push to the edge channel in the snap store. Someone on the release team can go to https://snapcraft.io/gitea/releases and release that build to stable and candidate. Ongoing: The next build to be triggered will be a git master build, and can just sit in edge, nothing for the release team to do. On new release: The next build triggered will contain the stable release, and will be published to edge. Someone on the release team can login to the above URL and release that again to stable & candidate. Alternatively they can release to candidate, do some additional testing on that release before releasing to stable. Hope that all makes sense. Questions / comments welcome. I'm super keen to see stable releases of Gitea in the stable channel of the Snap Store. I'd like to promote it but I can't really until it's in stable. Co-authored-by: techknowlogick <techknowlogick@gitea.io>