summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add markdownlint (#20512)silverwind2022-07-2868-820/+1336
| | | | Add `markdownlint` linter and fix issues. Config is based on the one from electron's repo with a few rules relaxed.
* Fix possible panic when repository is empty (#20509)Lunny Xiao2022-07-281-4/+8
| | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* patch (doc): add heading to ssh flow explanation (#20506)Kevin Samuel2022-07-271-0/+2
|
* Show hint to link package to repo when viewing empty repo package list (#20504)Norwin2022-07-273-0/+9
| | | | | | | * show hint to link package to repo on empty repo package listing * reword
* Fix ROOT_URL detection for URLs without trailing slash (#20502)wxiaoguang2022-07-271-1/+2
|
* Add Tar ZSTD support (#20493)Gusted2022-07-271-1/+1
| | | | | - Add `.tar.zst` as supported output type. - Resolves #14290
* Hide internal package versions (#20492)KN4CK3R2022-07-2712-31/+66
| | | | | * Hide internal versions from most searches. * Added test.
* Fix org members bug (#20489)Vladimir Yakovlev2022-07-262-1/+19
| | | | | | | * Fix bug in public only org members list bug was introduced in d6779c7ad3 * Expanded org unit test
* Add labels to two buttons that were missing them (#20419)techknowlogick2022-07-262-2/+2
|
* fix enabling repo packages when projects are off (#20486)Norwin2022-07-261-1/+1
|
* Display project in issue list (#20434)aceArt-GmbH2022-07-263-1/+52
| | | Co-authored-by: lukas <lukas.walter@aceart.de>
* Make code review ceckboxes clickable (#20481)Vladimir Yakovlev2022-07-261-1/+1
|
* Slightly simplify LastCommitCache (#20444)zeripath2022-07-2519-182/+177
| | | | | | | | | | | The LastCommitCache code is a little complex and there is unnecessary duplication between the gogit and nogogit variants. This PR adds the LastCommitCache as a field to the git.Repository and pre-creates it in the ReferencesGit helpers etc. There has been some simplification and unification of the variant code. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix Ruby package parsing by removed unused email field (#20470)KN4CK3R2022-07-251-1/+0
|
* [skip ci] Updated translations via CrowdinTyrone Yeh2022-07-251-0/+1
|
* Add repository condition for issue count (#20454)Tyrone Yeh2022-07-241-0/+1
| | | | | | | | | | * Add repository condition for issue count * Update routers/web/user/home.go Co-authored-by: Gusted <williamzijl7@hotmail.com> Co-authored-by: Gusted <williamzijl7@hotmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Prepend commit message to template content (#20429)Gusted2022-07-241-0/+13
| | | | | | | | | - When a repository has a pull request template, it will always override the current content. With this PR it will prepend content to the template content when appropriate. This is similar how GitHub(and GitLab I presume) does it and it saves developers time to not go open their commit and copy paste their will written commit message.
* Improve pprof doc (#20463)wxiaoguang2022-07-243-5/+7
|
* Improve code diff highlight, fix incorrect rendered diff result (#19958)wxiaoguang2022-07-235-378/+379
| | | Use Unicode placeholders to replace HTML tags and HTML entities first, then do diff, then recover the HTML tags and HTML entities. Now the code diff with highlight has stable behavior, and won't emit broken tags.
* Add Cache-Control header to html and api responses, add no-transform (#20432)silverwind2022-07-235-5/+19
| | | | | | | | | | | | `no-transform` allegedly disables CloudFlare auto-minify and we did not set caching headers on html or api requests, which seems good to have regardless. Transformation is still allowed for asset requests. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGergely Nagy2022-07-231-2/+3
|
* Allow non-semver packages in the Conan package registry (#20412)Gergely Nagy2022-07-222-4/+6
| | | | | | | | | | | | | | A lot of existing packages do not conform to SemVer, yet, they should be allowed in the Conan package registry as-is. To achieve this, remove the SemVer check from `NewRecipeReference`, and replace it with a simple empty string check. A unit test with a non-semver version is also included. Fixes #20405. Signed-off-by: Gergely Nagy <me@gergo.csillger.hu> Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Use body text color in repository files table links (#20386)Lucas Azevedo2022-07-225-11/+17
| | | | | | | | Use body text color in for links in the repository files table Issue/PR links (`.ref-issue`) will not be affected, as seen in other git services. Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* Correct code block in installation docs for Snap (#20440)Andrew Imeson2022-07-221-2/+2
| | | | | Without this, it was rendering on the site like: "sh snap install gitea", instead of: "snap install gitea" Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Downgrade golangci-lint to 1.47.0 (#20445)silverwind2022-07-221-1/+1
| | | | | | | This should fix some recently seen linter performance issues. There is some log spam, but it's definitely faster. Ref: https://github.com/golangci/golangci-lint/issues/2997 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Add eslint-plugin-sonarjs (#20431)silverwind2022-07-225-4/+58
| | | | | | | We had this plugin before but it was removed as it became outdated, now it was updated again, so it's compatible again. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: 6543 <6543@obermui.de>
* Fix: Actor is required to get user repositories (#20443)Dhruv Manilawala2022-07-213-0/+25
| | | | Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Andrew Thornton <art27@cantab.net>
* Add "X-Gitea-Object-Type" header for GET `/raw/` & `/media/` API (#20438)65432022-07-213-6/+32
|
* Simplify visibility checks (#20406)KN4CK3R2022-07-211-11/+4
| | | | | | | Was looking into the visibility checks because I need them for something different and noticed the checks are more complicated than they have to be. The rule is just: user/org is visible if - The doer is a member of the org, regardless of the org visibility - The doer is not restricted and the user/org is public or limited
* Add Cloudflare auto-minify to FAQ (#20430)John Olheiser2022-07-211-0/+6
|
* [skip ci] Updated translations via Crowdinsilverwind2022-07-2121-21/+1
|
* Update JS dependencies (#20423)silverwind2022-07-2011-3099/+3262
| | | | | | - Update all JS dependencies minus vue ones - Remove workaround for case-insensitive attribute selector - Add new linter rules and fix issues - Tested SVG display and swagger
* Update all tool dependencies to their latest versions (#20409)silverwind2022-07-201-4/+4
|
* [skip ci] Updated translations via Crowdin65432022-07-203-0/+15
|
* Dismiss prior pull reviews if done via web in review dismiss (#20197)65432022-07-196-6/+58
|
* Fix modified due date message (#20388)Lucas Azevedo2022-07-192-2/+3
|
* Fix public org members displayed too many informations (#20403)Lunny Xiao2022-07-192-20/+23
|
* Add two factor status to admin cmd display (#20401)Tyrone Yeh2022-07-191-2/+3
|
* Use tippy.js for context popup (#20393)silverwind2022-07-196-11/+135
| | | | | By appending the tooltips to `document.body`, we can avoid any stacking context issues caused by surrounding element's CSS. This uses [tippy.js](https://github.com/atomiks/tippyjs) instead of Fomantic popups. We should aim to replace all Fomantic popups with this eventually and then get rid of the Fomantic `popup` module completely.
* [skip ci] Updated licenses and gitignoresCLanguagePurist2022-07-174-1/+54
|
* Comment on PrivateUsers option for gitea.service (#20383)CLanguagePurist2022-07-161-0/+7
| | | | | | * Comment on PrivateUsers option for gitea.service A user happens to encounter an issue where PrivateUsers sandboxed Gitea.service and it effectively stop systemd from applying capabilities for that gitea.service. I am opening this PR to provide comments on PrivateUsers, effectively a tiny FAQ information for end-user.
* [skip ci] Updated translations via Crowdinwxiaoguang2022-07-161-0/+2
|
* Remove confusing TrimPrefix(... git.BranchPrefix) (#20369)wxiaoguang2022-07-162-3/+9
| | | Make Repository.GetDefaultBranch return the real branch name, instead of the ref name. Then there is no need to do TrimPrefix for repo.DefaultBranch
* Set target on create release with existing tag (#20381)Gusted2022-07-151-0/+1
| | | | | | When you create a new release(e.g. via Tea) and specify a tag that already exists on the repository, Gitea will instead use the `UpdateRelease` functionality. However it currently doesn't set the Target field. This PR fixes that.
* Initialize cron last (#20373)zeripath2022-07-151-1/+3
| | | | | | Cron will try to run certain things at startup but these depend on multiple things being set-up. Therefore we should initialize cron last. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Allow access to the Public Organization Member lists with minimal ↵a10121127962022-07-154-11/+24
| | | | | | | | | | | permissions (#20330) Examining Organization membership should not necessarily require sign-in if the organization is public and the members are public. Therefore we should adjust `/org/{org}/members` to not require login. Fix #7501 Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: zeripath <art27@cantab.net>
* Fix commit status icon when in subdirectory (#20285)silverwind2022-07-153-7/+9
| | | | | | When viewing a subdirectory and the latest commit to that directory in the table, the commit status icon incorrectly showed the status of the HEAD commit instead of the latest for that directory.
* Fix eslint parsing errors, remove eslint-plugin-html (#20323)silverwind2022-07-157-90/+18
| | | | | | | | | | | Introduce a separate .eslintrc in the Vue components folder to selectively enable vue-eslint-parser there, so that the rest of the files can use eslint's core parser which can deal with hashbangs. The fact that the eslint-disable comments worked in HTML was a unintended side-effect of the files being parsed via vue-eslint-parser, so I had to disable the parsing of these files in .eslintrc.yaml to make it work, and finally decided to remove eslint-plugin-html as it causes more issues than it solves.
* Include login_name in adminCreateUser response (#20283)Baekjun Kim2022-07-153-0/+10
| | | | `login_name` (Authentication Sign-in Name) is not included in the response of `adminUserCreate` API. This PR is to return user-specified `login_name` if there is one.
* Add allow_rebase_update, default_delete_branch_after_merge to repository api ↵Bian Jiaping2022-07-153-66/+82
| | | | | | | response (#20079) `PATCH /repos/{owner}/{repo}` API allows users to update `allow_rebase_update`, `default_delete_branch_after_merge`, but `GET /repos/{owner}/{repo}` API does not return these two options, and API users has no other ways to find the state of these two options. This PR add `allow_rebase_update`, `default_delete_branch_after_merge` to repository query api response.