DmitryFrolovTri
2cbdee0104
Revert "doDeleteCommitAndPush implemented"
...
This reverts commit e9c29f82f2 .
2023-05-19 14:37:11 +00:00
DmitryFrolovTri
51a769720f
Fix in /modules/setting/repository.go
2023-05-19 06:58:56 +00:00
ef760d7e66
Update modules/base/tool_test.go
...
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
2023-05-19 06:47:34 +00:00
656a3dc721
Update modules/setting/repository.go
...
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
2023-05-19 06:44:48 +00:00
DmitryFrolovTri
57c94e63cb
Allow operations that potentially reduce repository size through even if size limit is over
2023-05-19 06:39:56 +00:00
truecode112
e9c29f82f2
doDeleteCommitAndPush implemented
2023-05-18 11:47:12 +03:00
truecode112
4936e49096
present a correct message when repo is over
2023-05-17 21:39:33 +03:00
DmitryFrolovTri
c2fc283695
Merge remote-tracking branch 'upstream/main' into limit-repo-size
2023-05-17 10:04:25 +00:00
6c8235dc98
Skip TestMinioStorageIterator on CI ( #24762 )
...
Fix https://github.com/go-gitea/gitea/pull/24691#issuecomment-1550987681
---------
Co-authored-by: silverwind <me@silverwind.io >
2023-05-17 10:00:58 +00:00
b807d2f620
Support no label/assignee filter and batch clearing labels/assignees ( #24707 )
...
Since milestones has been implemented, this PR will fix #3407
---------
Co-authored-by: Jason Song <i@wolfogre.com >
2023-05-17 17:21:35 +08:00
e7c2231dee
Support for status check pattern ( #24633 )
...
This PR is to allow users to specify status checks by patterns. Users
can enter patterns in the "Status Check Pattern" `textarea` to match
status checks and each line specifies a pattern. If "Status Check" is
enabled, patterns cannot be empty and user must enter at least one
pattern.
Users will no longer be able to choose status checks from the table. But
a __*`Matched`*__ mark will be added to the matched checks to help users
enter patterns.
Benefits:
- Even if no status checks have been completed, users can specify
necessary status checks in advance.
- More flexible. Users can specify a series of status checks by one
pattern.
Before:

After:

---------
Co-authored-by: silverwind <me@silverwind.io >
2023-05-17 16:11:13 +08:00
DmitryFrolovTri
8750728728
Merge remote-tracking branch 'upstream/main' into limit-repo-size
2023-05-17 07:46:20 +00:00
9fb0945a09
Updates to doc ( #24757 )
...
## Misspelling fixes to:
- docs/content/doc/administration/config-cheat-sheet.en-us.md
- docs/content/doc/installation/from-source.en-us.md
- docs/content/doc/usage/packages/cargo.en-us.md
- docs/content/doc/usage/packages/storage.en-us.md
---------
Co-authored-by: delvh <dev.lh@web.de >
2023-05-17 05:45:26 +00:00
Lunny Xiao and GitHub
473dee7c7a
Ignore build for docs only ( #24761 )
...
Fix https://github.com/go-gitea/gitea/pull/24530#issuecomment-1550227919
2023-05-17 13:42:08 +08:00
DmitryFrolovTri
c31c510902
Merge remote-tracking branch 'upstream/main' into limit-repo-size
2023-05-17 05:41:11 +00:00
Yarden Shoham and GitHub
0a3c4d4a59
Fix team members API endpoint pagination ( #24754 )
...
Now it's 1-based instead of 0-based
- Fixes #24747
### Before

### After

## ⚠️ BREAKING ⚠️
Previous API consumers may have relied on the 0-based pagination of this
endpoint. The page numbering now starts at 1, as documented.
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-05-17 08:12:37 +08:00
truecode112
8ac833ae62
Fixed issues in test scripts.
2023-05-17 02:20:59 +03:00
584c0789fa
Make mailer SMTP check have timed context ( #24751 )
...
Make mailer SMTP check have timed context
Otherwise Gitea may block for long time if the DNS request blocks.
---------
Co-authored-by: Giteabot <teabot@gitea.io >
2023-05-16 22:55:51 +02:00
Gary Moon and GitHub
c367b63b7f
Add @garymoon to MAINTAINERS ( #24752 )
...
Hi all.
I would like to apply to be a maintainer please. I have [four accepted
PRs](https://github.com/go-gitea/gitea/pulls?q=is%3Apr+author%3Agarymoon )
(such as they are), sign my commits, and have MFA enabled everywhere. My
hope is to continue with code contributions where I can (I'm not a
developer, just a wannabe), take some work off kdumont's hands, and
contribute on the infrastructure side where there is room 💚 🍵
Thank you!
2023-05-16 11:46:46 -04:00
e720f49206
Skip TestRepoCommitsStatusParallel on CI ( #24741 )
...
Related: https://github.com/go-gitea/gitea/issues/22109
Co-authored-by: Giteabot <teabot@gitea.io >
2023-05-16 14:42:16 +02:00
truecode112
80f8977e59
fixed issues for testing
2023-05-16 12:27:49 +03:00
truecode112
9e5f2fd4e3
lint error fixed.
2023-05-16 11:15:54 +03:00
truecode112 and DmitryFrolovTri
c55ccfdb48
revert saving config part
2023-05-16 07:20:11 +00:00
truecode112 and DmitryFrolovTri
703ba07cea
Config parameter REPO_SIZE_LIMIT = XXXX (should accept bytes human readable) part2
2023-05-16 07:20:06 +00:00
truecode112 and DmitryFrolovTri
31600a0159
Config parameter REPO_SIZE_LIMIT = XXXX (should accept bytes human readable) part1, sensible defaults, app.ini saving
2023-05-16 07:19:08 +00:00
Jason Song and GitHub
d81659d039
Respect original content when creating secrets ( #24745 )
...
Fix #24721 .
Follow what GitHub does:
- Don't trim spaces for secrets.
- Newline should be `\n` instead of `\r\n`.
Did some tests with:
```yaml
name: secrets
on: push
jobs:
show_secrets:
runs-on: ubuntu-latest
steps:
- name: Dump secrets context
run: echo '${{ toJSON(secrets) }}' | base64
```
`AAAAAA`:
```text
AAAAAA
AAAAAA
```
`BBBBBB`:
```text
BBBBBB
BBBBBB
```
On GitHub:
<img width="675" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/0ec60652-c2a3-47bb-9f9d-7e81665355a8 ">
On Gitea (before):
<img width="673" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/cce818bf-5edc-4656-86e1-2c81c304cdb2 ">
On Gitea (after):
<img width="673" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/0b3b15af-4d48-4bab-a334-4738a1b0eb4a ">
2023-05-16 14:49:40 +08:00
silverwind and GitHub
30d9222267
Remove meta charset from HTML5 documents ( #24744 )
...
When `<!DOCTYPE html>` is present, the default (and only valid) charset
it `utf-8` so it does not need to be specified.
Also we do serve with HTML with `Content-Type: text/html;
charset=utf-8`, so it is duplicate info anyways.
2023-05-16 05:13:23 +00:00
silverwind and GitHub
bdd3007c87
Fix WEBP image copying ( #24743 )
...
Fix regression from https://github.com/go-gitea/gitea/pull/23801 , where
I forgot that the new module will not throw, so the `catch` handlers
were never triggered and in turn, the WEBP was not converted to PNG.
2023-05-16 04:45:36 +00:00
silverwind and GitHub
b926f96da7
Reorganize CSS files ( #24739 )
...
Reorganize various CSS files for clarity, group together by subdirectory
in `index.css`. This reorders some of the rules, but I don't think it
should introduce any issues because of that.
2023-05-16 00:13:30 -04:00
c78b923822
Don't run build and test if only docs changed ( #24530 )
...
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2023-05-16 02:53:18 +00:00
GiteaBot
98c4089b4b
[skip ci] Updated translations via Crowdin
2023-05-16 00:23:56 +00:00
a7e18b9fb7
Rework Oauth login buttons, swap github logo to monocolor ( #24740 )
...
Diff without whitespace:
https://github.com/go-gitea/gitea/pull/24740/files?diff=unified&w=1
- Use SVGs for GitHub and GitLab oauth providers
- Replace section wrapping with a divider
- Rework icon rendering, increase size from 32px to 40px
Before:
<img width="853" alt="Screenshot 2023-05-15 at 21 54 23"
src="https://github.com/go-gitea/gitea/assets/115237/6ab5cfb4-46ff-469a-bd1f-06780d4a6a0b ">
After (more providers):
<img width="849" alt="Screenshot 2023-05-15 at 21 51 21"
src="https://github.com/go-gitea/gitea/assets/115237/fa84f92f-98e0-4aed-9357-5d62ddd98195 ">
<img width="856" alt="Screenshot 2023-05-15 at 21 56 45"
src="https://github.com/go-gitea/gitea/assets/115237/d3edd7ed-dadd-4302-aca7-08f20adc220e ">
Ref: https://codeberg.org/Codeberg/Community/issues/1023
---------
Co-authored-by: Giteabot <teabot@gitea.io >
2023-05-15 22:46:51 +00:00
7565e5c3de
Implement systemd-notify protocol ( #21151 )
...
This PR adds support for the systemd notify protocol. Several status
messagess are provided. We should likely add a common notify/status
message for graceful.
Replaces #21140
Signed-off-by: Andrew Thornton <art27@cantab.net >
---------
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: ltdk <usr@ltdk.xyz >
Co-authored-by: Giteabot <teabot@gitea.io >
2023-05-15 22:20:30 +00:00
a5be7f300b
Bump vm2 from 3.9.17 to 3.9.18 ( #24742 )
...
Bumps [vm2](https://github.com/patriksimek/vm2 ) from 3.9.17 to 3.9.18.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/patriksimek/vm2/releases ">vm2's
releases</a>.</em></p>
<blockquote>
<h2>3.9.18</h2>
<p><strong>New Features</strong></p>
<p><a
href="https://github.com/patriksimek/vm2/commit/dd81ff616ff528de5dc7a1cf2939de3d3701539d ">https://github.com/patriksimek/vm2/commit/dd81ff616ff528de5dc7a1cf2939de3d3701539d </a>:
Add resolver API to create a shared resolver for multiple
<code>NodeVM</code> instances allowing to cache scripts and increase
sandbox startup times.
<a
href="https://github.com/patriksimek/vm2/commit/4d662e34d369b920943eee139ef60fb557666a43 ">https://github.com/patriksimek/vm2/commit/4d662e34d369b920943eee139ef60fb557666a43 </a>:
Allow to pass a function to <code>require.context</code> which is called
with the filename allowing to specify the context pre file. (Thanks to
<a
href="https://github.com/blakebyrnes "><code>@blakebyrnes</code></a>)</p>
<p><strong>Fixes</strong></p>
<p><a
href="https://github.com/patriksimek/vm2/commit/d88105f99752305c5b8a77b63ddee3ec86912daf ">https://github.com/patriksimek/vm2/commit/d88105f99752305c5b8a77b63ddee3ec86912daf </a>:
Fix issue leaking host array through <code>Proxy</code>. (Thanks to <a
href="https://github.com/arkark "><code>@arkark</code></a> (Takeshi
Kaneko) of GMO Cybersecurity by Ierae, Inc.)
<a
href="https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238 ">https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238 </a>:
Fix issue with <code>inspect</code> being writeable. (Thanks to <a
href="https://github.com/arkark "><code>@arkark</code></a> (Takeshi
Kaneko) of GMO Cybersecurity by Ierae, Inc.)</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md ">vm2's
changelog</a>.</em></p>
<blockquote>
<h2>v3.9.18 (2023-05-15)</h2>
<p>[fix] Multiple security fixes.
[new] Add resolver API to create a shared resolver for multiple
<code>NodeVM</code> instances allowing to cache scripts and increase
sandbox startup times.
[new] Allow to pass a function to <code>require.context</code> which is
called with the filename allowing to specify the context pre file.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/patriksimek/vm2/commit/2f446e5d19e6539b5164b45b1f8bd4ded4dfc085 "><code>2f446e5</code></a>
Release 3.9.18</li>
<li><a
href="https://github.com/patriksimek/vm2/commit/587bb1337da2dd78c166f35e6459cce28940d9bf "><code>587bb13</code></a>
Add tests for past vulnerabilities</li>
<li><a
href="https://github.com/patriksimek/vm2/commit/f5a129af752150293f2c2bb58d18a8098a93be93 "><code>f5a129a</code></a>
Merge branch 'master' of <a
href="https://github.com/patriksimek/vm2 ">https://github.com/patriksimek/vm2 </a></li>
<li><a
href="https://github.com/patriksimek/vm2/commit/dd81ff616ff528de5dc7a1cf2939de3d3701539d "><code>dd81ff6</code></a>
Merge pull request <a
href="https://redirect.github.com/patriksimek/vm2/issues/519 ">#519</a>
from XmiliaH/resolver-api</li>
<li><a
href="https://github.com/patriksimek/vm2/commit/af983a8a1eb397c1b955709348f1e812e465db99 "><code>af983a8</code></a>
Merge remote-tracking branch 'upstream/master' into resolver-api</li>
<li><a
href="https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238 "><code>5206ba2</code></a>
Inspect method should be readonly</li>
<li><a
href="https://github.com/patriksimek/vm2/commit/d88105f99752305c5b8a77b63ddee3ec86912daf "><code>d88105f</code></a>
Ensure host array does not leak through proxy</li>
<li><a
href="https://github.com/patriksimek/vm2/commit/4d662e34d369b920943eee139ef60fb557666a43 "><code>4d662e3</code></a>
Merge pull request <a
href="https://redirect.github.com/patriksimek/vm2/issues/521 ">#521</a>
from ulixee/pathContext</li>
<li><a
href="https://github.com/patriksimek/vm2/commit/1728bdf8d2e59c74264396948394f005e3f9a431 "><code>1728bdf</code></a>
chore: simplify default function for path context</li>
<li><a
href="https://github.com/patriksimek/vm2/commit/7d16a56fa5076f8be662ddb04e435bd71802592e "><code>7d16a56</code></a>
Merge branch 'patriksimek:master' into pathContext</li>
<li>Additional commits viewable in <a
href="https://github.com/patriksimek/vm2/compare/3.9.17...3.9.18 ">compare
view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/go-gitea/gitea/network/alerts ).
</details>
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-15 23:55:56 +02:00
DmitryFrolovTri
414c90263a
updated content/doc/administration/config-cheat-sheet.en-us.md with ENABLE_SIZE_LIMIT and REPO_SIZE_LIMIT options
2023-05-15 20:13:27 +00:00
DmitryFrolovTri
3d0004a0c4
Modified app.example.ini with REPO_SIZE_LIMIT and ENABLE_SIZE_LIMIT options in the repository section
2023-05-15 19:35:43 +00:00
wxiaoguang and GitHub
99283415bc
Refactor Pull Mirror and fix out-of-sync bugs ( #24732 )
...
The "mirror" table and "repository" table might be out-of-sync in some
cases.
It means that "IsMirror=true" but "Mirror=nil"
This PR removes unnecessary "Mirror" field, rename "Mirror" to
"PullMirror" and fix nil panic bug.
Screenshot of changed templates:


2023-05-15 19:02:10 +00:00
Yevhen Pavlov and GitHub
b9fad73e9f
Unification of registration fields order ( #24737 )
...
Place email filed in same order on all user creation pages.
Registration on installation page (before):

Registration on main page:

Create user account on site administration page:

Registration on installation page (after):

2023-05-15 20:29:39 +02:00
silverwind and GitHub
31ad6181e1
Switch to @eslint-community/eslint-comments ( #24736 )
...
[eslint-plugin-eslint-comments](https://github.com/mysticatea/eslint-plugin-eslint-comments )
is unmaintained, switch to the community fork.
See
https://github.com/mysticatea/eslint-plugin-eslint-comments/issues/72
for discussion.
2023-05-15 17:29:23 +00:00
truecode112 and DmitryFrolovTri
2a1abe5006
Add test script
2023-05-15 17:16:20 +00:00
truecode112 and DmitryFrolovTri
82f3e2d475
add test for global repo size limit option
2023-05-15 17:16:10 +00:00
truecode112 and DmitryFrolovTri
0231760b60
All done for Global Repo Size Option
2023-05-15 17:16:04 +00:00
truecode112 and DmitryFrolovTri
d843a6736b
Overall Done for Global Repo Size Limit Option
2023-05-15 17:07:21 +00:00
truecode112 and DmitryFrolovTri
66c476e5de
UI related changed for ENABLE_SIZE_LIMIT & REPO_SIZE_LIMIT options
2023-05-15 17:06:39 +00:00
truecode112 and DmitryFrolovTri
a22b73866a
Added ENABLE_SIZE_LIMIT config option
2023-05-15 17:02:53 +00:00
Jason Song and GitHub
f74bd9dc81
Docs for creating a user to run Gitea on Fedora/RHEL/CentOS ( #24725 )
...
The current command doesn't work on Fedora/RHEL/CentOS.
- `--gecos`: use `--comment` instead.
- `--group`: use `--gid` instead, `--group` means "A list of
supplementary groups" on F/R/C.
- `--disabled-password`: leave `--password` empty instead, "The default
is to disable the password".
- `--home`: use `--home-dir` and `--create-home` instead.
2023-05-15 23:03:38 +08:00
Yevhen Pavlov and GitHub
7bf80ad075
Update packages overview page ( #24730 )
...
Add missed Go package reference to packages overview page
2023-05-15 10:53:50 +00:00
9897baf979
Move actions as usage's subdirectory and update comparsion zh-cn version ( #24719 )
...
As title.
Co-authored-by: Giteabot <teabot@gitea.io >
2023-05-15 15:36:20 +08:00
3db3d5d181
Document redis-cluster explicitly in config ( #24717 )
...
Co-authored-by: delvh <dev.lh@web.de >
2023-05-15 13:45:48 +08:00
Yarden Shoham and GitHub
6d2c63f6ff
Don't filter action runs based on state ( #24711 )
...
We should just show all runs. This removes the filtering altogether.
- Replaces https://github.com/go-gitea/gitea/pull/24553
# Before


# After

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-05-14 16:04:24 +00:00