Skip to content

Commit 9eb6192

Browse files
authored
Merge branch 'main' into walkgitlog-colon
2 parents e5edcc1 + 19bfea6 commit 9eb6192

File tree

919 files changed

+28912
-18226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

919 files changed

+28912
-18226
lines changed

.drone.yml

+603-183
Large diffs are not rendered by default.

.eslintrc.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ rules:
149149
jquery/no-global-eval: [2]
150150
jquery/no-grep: [2]
151151
jquery/no-has: [2]
152-
jquery/no-hide: [0]
152+
jquery/no-hide: [2]
153153
jquery/no-html: [0]
154154
jquery/no-in-array: [2]
155155
jquery/no-is-array: [2]
@@ -166,13 +166,13 @@ rules:
166166
jquery/no-proxy: [2]
167167
jquery/no-ready: [0]
168168
jquery/no-serialize: [2]
169-
jquery/no-show: [0]
169+
jquery/no-show: [2]
170170
jquery/no-size: [2]
171171
jquery/no-sizzle: [0]
172172
jquery/no-slide: [0]
173173
jquery/no-submit: [0]
174174
jquery/no-text: [0]
175-
jquery/no-toggle: [0]
175+
jquery/no-toggle: [2]
176176
jquery/no-trigger: [0]
177177
jquery/no-trim: [2]
178178
jquery/no-val: [0]

.github/pull_request_template.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!--
2-
1+
<!-- start tips -->
32
Please check the following:
4-
5-
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for bug fixes.
6-
2. Read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md
7-
3. Describe what your pull request does and which issue you're targeting (if any)
8-
9-
-->
3+
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for backports.
4+
2. Make sure you have read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md .
5+
3. Describe what your pull request does and which issue you're targeting (if any).
6+
4. It is recommended to enable "Allow edits by maintainers", so maintainers can help more easily.
7+
5. Your input here will be included in the commit message when this PR has been merged. If you don't want some content to be included, please separate them with a line like `---`.
8+
6. Delete all these tips before posting.
9+
<!-- end tips -->

.gitpod.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ tasks:
1010
- name: Run backend
1111
command: |
1212
gp sync-await setup
13-
mkdir -p custom/conf/
14-
echo -e "[server]\nROOT_URL=$(gp url 3000)/" > custom/conf/app.ini
15-
echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = $GITPOD_REPO_ROOT/data/gitea.db" >> custom/conf/app.ini
13+
if [ ! -f custom/conf/app.ini ]
14+
then
15+
mkdir -p custom/conf/
16+
echo -e "[server]\nROOT_URL=$(gp url 3000)/" > custom/conf/app.ini
17+
echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = $GITPOD_REPO_ROOT/data/gitea.db" >> custom/conf/app.ini
18+
fi
1619
export TAGS="sqlite sqlite_unlock_notify"
1720
make watch-backend
1821
- name: Run frontend

.stylelintrc.yaml

+108-15
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,137 @@
1-
extends: stylelint-config-standard
2-
31
plugins:
42
- stylelint-declaration-strict-value
53

4+
ignoreFiles:
5+
- "**/*.go"
6+
67
overrides:
7-
- files: ["**/*.less"]
8-
customSyntax: postcss-less
9-
- files: ["**/*.less"]
10-
rules:
11-
scale-unlimited/declaration-strict-value: [color, {
12-
ignoreValues: /^(inherit|transparent|unset|initial)$/
13-
}]
148
- files: ["**/chroma/*", "**/codemirror/*", "**/standalone/*", "**/console/*"]
159
rules:
1610
scale-unlimited/declaration-strict-value: null
11+
- files: ["**/chroma/*", "**/codemirror/*"]
12+
rules:
13+
block-no-empty: null
1714

1815
rules:
1916
alpha-value-notation: null
17+
annotation-no-unknown: true
18+
at-rule-allowed-list: null
19+
at-rule-disallowed-list: null
2020
at-rule-empty-line-before: null
21-
block-closing-brace-empty-line-before: null
21+
at-rule-no-unknown: true
22+
at-rule-no-vendor-prefix: true
23+
at-rule-property-required-list: null
24+
block-no-empty: true
2225
color-function-notation: null
26+
color-hex-alpha: null
2327
color-hex-length: null
28+
color-named: null
29+
color-no-hex: null
30+
color-no-invalid-hex: true
2431
comment-empty-line-before: null
32+
comment-no-empty: true
33+
comment-pattern: null
34+
comment-whitespace-inside: null
35+
comment-word-disallowed-list: null
36+
custom-media-pattern: null
37+
custom-property-empty-line-before: null
38+
custom-property-no-missing-var-function: true
39+
custom-property-pattern: null
40+
declaration-block-no-duplicate-custom-properties: true
41+
declaration-block-no-duplicate-properties: [true, {ignore: [consecutive-duplicates-with-different-values]}]
2542
declaration-block-no-redundant-longhand-properties: null
43+
declaration-block-no-shorthand-property-overrides: null
2644
declaration-block-single-line-max-declarations: null
2745
declaration-empty-line-before: null
46+
declaration-no-important: null
47+
declaration-property-max-values: null
48+
declaration-property-unit-allowed-list: null
49+
declaration-property-unit-disallowed-list: null
50+
declaration-property-value-allowed-list: null
51+
declaration-property-value-disallowed-list: null
52+
declaration-property-value-no-unknown: true
53+
font-family-name-quotes: always-where-recommended
54+
font-family-no-duplicate-names: true
55+
font-family-no-missing-generic-family-keyword: true
56+
font-weight-notation: null
57+
function-allowed-list: null
58+
function-calc-no-unspaced-operator: true
59+
function-disallowed-list: null
60+
function-linear-gradient-no-nonstandard-direction: true
61+
function-name-case: lower
2862
function-no-unknown: null
63+
function-url-no-scheme-relative: null
64+
function-url-quotes: always
65+
function-url-scheme-allowed-list: null
66+
function-url-scheme-disallowed-list: null
2967
hue-degree-notation: null
3068
import-notation: string
31-
indentation: 2
32-
max-line-length: null
69+
keyframe-block-no-duplicate-selectors: true
70+
keyframe-declaration-no-important: true
71+
keyframe-selector-notation: null
72+
keyframes-name-pattern: null
73+
length-zero-no-unit: true
74+
max-nesting-depth: null
75+
media-feature-name-allowed-list: null
76+
media-feature-name-disallowed-list: null
77+
media-feature-name-no-unknown: true
78+
media-feature-name-no-vendor-prefix: true
79+
media-feature-name-unit-allowed-list: null
80+
media-feature-name-value-allowed-list: null
81+
media-feature-range-notation: null
82+
named-grid-areas-no-invalid: true
3383
no-descending-specificity: null
84+
no-duplicate-at-import-rules: true
85+
no-duplicate-selectors: true
86+
no-empty-source: true
87+
no-invalid-double-slash-comments: true
3488
no-invalid-position-at-import-rule: null
35-
number-leading-zero: never
89+
no-irregular-whitespace: true
90+
no-unknown-animations: null
3691
number-max-precision: null
92+
property-allowed-list: null
93+
property-disallowed-list: null
94+
property-no-unknown: true
3795
property-no-vendor-prefix: null
3896
rule-empty-line-before: null
97+
rule-selector-property-disallowed-list: null
98+
scale-unlimited/declaration-strict-value: [color, {ignoreValues: /^(inherit|transparent|unset|initial|currentcolor)$/}]
99+
selector-attribute-name-disallowed-list: null
100+
selector-attribute-operator-allowed-list: null
101+
selector-attribute-operator-disallowed-list: null
102+
selector-attribute-quotes: always
39103
selector-class-pattern: null
104+
selector-combinator-allowed-list: null
105+
selector-combinator-disallowed-list: null
106+
selector-disallowed-list: null
40107
selector-id-pattern: null
108+
selector-max-attribute: null
109+
selector-max-class: null
110+
selector-max-combinators: null
111+
selector-max-compound-selectors: null
112+
selector-max-id: null
113+
selector-max-pseudo-class: null
114+
selector-max-specificity: null
115+
selector-max-type: null
116+
selector-max-universal: null
117+
selector-nested-pattern: null
118+
selector-no-qualifying-type: null
119+
selector-no-vendor-prefix: true
120+
selector-not-notation: null
121+
selector-pseudo-class-allowed-list: null
122+
selector-pseudo-class-disallowed-list: null
123+
selector-pseudo-class-no-unknown: true
124+
selector-pseudo-element-allowed-list: null
41125
selector-pseudo-element-colon-notation: double
126+
selector-pseudo-element-disallowed-list: null
127+
selector-pseudo-element-no-unknown: true
128+
selector-type-case: lower
129+
selector-type-no-unknown: [true, {ignore: [custom-elements]}]
42130
shorthand-property-no-redundant-values: true
43-
string-quotes: null
44-
value-no-vendor-prefix: null
131+
string-no-newline: true
132+
time-min-milliseconds: null
133+
unit-allowed-list: null
134+
unit-disallowed-list: null
135+
unit-no-unknown: true
136+
value-keyword-case: null
137+
value-no-vendor-prefix: [true, {ignoreValues: [box, inline-box]}]

CHANGELOG.md

+50
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,56 @@ This changelog goes through all the changes that have been made in each release
44
without substantial changes to our git log; to see the highlights of what has
55
been added to each release, please refer to the [blog](https://blog.gitea.io).
66

7+
## [1.18.5](https://github.com/go-gitea/gitea/releases/tag/v1.18.5) - 2023-02-21
8+
9+
* ENHANCEMENTS
10+
* Hide 2FA status from other members in organization members list (#22999) (#23023)
11+
* BUGFIXES
12+
* Add force_merge to merge request and fix checking mergable (#23010) (#23032)
13+
* Use `--message=%s` for git commit message (#23028) (#23029)
14+
* Render access log template as text instead of HTML (#23013) (#23025)
15+
* Fix the Manually Merged form (#23015) (#23017)
16+
* Use beforeCommit instead of baseCommit (#22949) (#22996)
17+
* Display attachments of review comment when comment content is blank (#23035) (#23046)
18+
* Return empty url for submodule tree entries (#23043) (#23048)
19+
20+
## [1.18.4](https://github.com/go-gitea/gitea/releases/tag/1.18.4) - 2023-02-20
21+
22+
* SECURITY
23+
* Provide the ability to set password hash algorithm parameters (#22942) (#22943)
24+
* Add command to bulk set must-change-password (#22823) (#22928)
25+
* ENHANCEMENTS
26+
* Use import of OCI structs (#22765) (#22805)
27+
* Fix color of tertiary button on dark theme (#22739) (#22744)
28+
* Link issue and pull requests status change in UI notifications directly to their event in the timelined view. (#22627) (#22642)
29+
* BUGFIXES
30+
* Notify on container image create (#22806) (#22965)
31+
* Fix blame view missing lines (#22826) (#22929)
32+
* Fix incorrect role labels for migrated issues and comments (#22914) (#22923)
33+
* Fix PR file tree folders no longer collapsing (#22864) (#22872)
34+
* Escape filename when assemble URL (#22850) (#22871)
35+
* Fix isAllowed of escapeStreamer (#22814) (#22837)
36+
* Load issue before accessing index in merge message (#22822) (#22830)
37+
* Improve trace logging for pulls and processes (#22633) (#22812)
38+
* Fix restore repo bug, clarify the problem of ForeignIndex (#22776) (#22794)
39+
* Add default user visibility to cli command "admin user create" (#22750) (#22760)
40+
* Escape path for the file list (#22741) (#22757)
41+
* Fix bugs with WebAuthn preventing sign in and registration. (#22651) (#22721)
42+
* Add missing close bracket in imagediff (#22710) (#22712)
43+
* Move code comments to a standalone file and fix the bug when adding a reply to an outdated review appears to not post(#20821) (#22707)
44+
* Fix line spacing for plaintext previews (#22699) (#22701)
45+
* Fix wrong hint when deleting a branch successfully from pull request UI (#22673) (#22698)
46+
* Fix README TOC links (#22577) (#22677)
47+
* Fix missing message in git hook when pull requests disabled on fork (#22625) (#22658)
48+
* Improve checkIfPRContentChanged (#22611) (#22644)
49+
* Prevent duplicate labels when importing more than 99 (#22591) (#22598)
50+
* Don't return duplicated users who can create org repo (#22560) (#22562)
51+
* BUILD
52+
* Upgrade golangcilint to v1.51.0 (#22764)
53+
* MISC
54+
* Use proxy for pull mirror (#22771) (#22772)
55+
* Use `--index-url` in PyPi description (#22620) (#22636)
56+
757
## [1.18.3](https://github.com/go-gitea/gitea/releases/tag/v1.18.3) - 2023-01-23
858

959
* SECURITY

CODE_OF_CONDUCT.md

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Gitea Community Code of Conduct
2+
3+
## About
4+
5+
Online communities include people from many different backgrounds. The Gitea contributors are committed to providing a friendly, safe and welcoming environment for all, regardless of gender identity and expression, sexual orientation, disabilities, neurodiversity, physical appearance, body size, ethnicity, nationality, race, age, religion, or similar personal characteristics.
6+
7+
The first goal of the Code of Conduct is to specify a baseline standard of behavior so that people with different social values and communication styles can talk about Gitea effectively, productively, and respectfully.
8+
9+
The second goal is to provide a mechanism for resolving conflicts in the community when they arise.
10+
11+
The third goal of the Code of Conduct is to make our community welcoming to people from different backgrounds. Diversity is critical to the project; for Gitea to be successful, it needs contributors and users from all backgrounds.
12+
13+
We believe that healthy debate and disagreement are essential to a healthy project and community. However, it is never ok to be disrespectful. We value diverse opinions, but we value respectful behavior more.
14+
15+
## Community values
16+
17+
These are the values to which people in the Gitea community should aspire.
18+
19+
- **Be friendly and welcoming.**
20+
- **Be patient.**
21+
- Remember that people have varying communication styles and that not everyone is using their native language. (Meaning and tone can be lost in translation.)
22+
- **Be thoughtful.**
23+
- Productive communication requires effort. Think about how your words will be interpreted.
24+
- Remember that sometimes it is best to refrain entirely from commenting.
25+
- **Be respectful.**
26+
- In particular, respect differences of opinion.
27+
- **Be charitable.**
28+
- Interpret the arguments of others in good faith, do not seek to disagree.
29+
- When we do disagree, try to understand why.
30+
- **Be constructive.**
31+
- Avoid derailing: stay on topic; if you want to talk about something else, start a new conversation.
32+
- Avoid unconstructive criticism: don't merely decry the current state of affairs; offer—or at least solicit—suggestions as to how things may be improved.
33+
- Avoid snarking (pithy, unproductive, sniping comments)
34+
- Avoid discussing potentially offensive or sensitive issues; this all too often leads to unnecessary conflict.
35+
- Avoid microaggressions (brief and commonplace verbal, behavioral and environmental indignities that communicate hostile, derogatory or negative slights and insults to a person or group).
36+
- **Be responsible.**
37+
- What you say and do matters. Take responsibility for your words and actions, including their consequences, whether intended or otherwise.
38+
39+
People are complicated. You should expect to be misunderstood and to misunderstand others; when this inevitably occurs, resist the urge to be defensive or assign blame. Try not to take offense where no offense was intended. Give people the benefit of the doubt. Even if the intent was to provoke, do not rise to it. It is the responsibility of all parties to de-escalate conflict when it arises.
40+
41+
## Code of Conduct
42+
43+
### Our Pledge
44+
45+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
46+
47+
### Our Standards
48+
49+
Examples of behavior that contributes to creating a positive environment include:
50+
51+
- Using welcoming and inclusive language
52+
- Being respectful of differing viewpoints and experiences
53+
- Gracefully accepting constructive criticism
54+
- Focusing on what is best for the community
55+
- Showing empathy towards other community members
56+
57+
Examples of unacceptable behavior by participants include:
58+
59+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
60+
- Trolling, insulting/derogatory comments, and personal or political attacks
61+
- Public or private harassment
62+
- Publishing others’ private information, such as a physical or electronic address, without explicit permission
63+
- Other conduct which could reasonably be considered inappropriate in a professional setting
64+
65+
### Our Responsibilities
66+
67+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
68+
69+
Project maintainers have the right and responsibility to remove, edit, or reject: comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, as well as to ban (temporarily or permanently) any contributor for behaviors that they deem inappropriate, threatening, offensive, or harmful.
70+
71+
### Scope
72+
73+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
74+
75+
This Code of Conduct also applies outside the project spaces when the Project Stewards have a reasonable belief that an individual’s behavior may have a negative impact on the project or its community.
76+
77+
### Conflict Resolution
78+
79+
We do not believe that all conflict is bad; healthy debate and disagreement often yield positive results. However, it is never okay to be disrespectful or to engage in behavior that violates the project’s code of conduct.
80+
81+
If you see someone violating the code of conduct, you are encouraged to address the behavior directly with those involved. Many issues can be resolved quickly and easily, and this gives people more control over the outcome of their dispute. If you are unable to resolve the matter for any reason, or if the behavior is threatening or harassing, report it. We are dedicated to providing an environment where participants feel welcome and safe.
82+
83+
Reports should be directed to the Gitea Project Stewards at conduct@gitea.com. It is the Project Stewards’ duty to receive and address reported violations of the code of conduct. They will then work with a committee consisting of representatives from the technical-oversight-committee.
84+
85+
We will investigate every complaint, but you may not receive a direct response. We will use our discretion in determining when and how to follow up on reported incidents, which may range from not taking action to permanent expulsion from the project and project-sponsored spaces. Under normal circumstances, we will notify the accused of the report and provide them an opportunity to discuss it before any action is taken. If there is a consensus between maintainers that such an endeavor would be useless (i.e. in case of an obvious spammer), we reserve the right to take action without notifying the accused first. The identity of the reporter will be omitted from the details of the report supplied to the accused. In potentially harmful situations, such as ongoing harassment or threats to anyone’s safety, we may take action without notice.
86+
87+
### Attribution
88+
89+
This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
90+
91+
## Summary
92+
93+
- Treat everyone with respect and kindness.
94+
- Be thoughtful in how you communicate.
95+
- Don’t be destructive or inflammatory.
96+
- If you encounter an issue, please mail conduct@gitea.com.

CONTRIBUTING.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,7 @@ known as the release freeze. All the feature pull requests should be
299299
merged before feature freeze. And, during the frozen period, a corresponding
300300
release branch is open for fixes backported from main branch. Release candidates
301301
are made during this period for user testing to
302-
obtain a final version that is maintained in this branch. A release is
303-
maintained by issuing patch releases to only correct critical problems
304-
such as crashes or security issues.
302+
obtain a final version that is maintained in this branch.
305303

306304
Major release cycles are seasonal. They always begin on the 25th and end on
307305
the 24th (i.e., the 25th of December to March 24th).
@@ -311,6 +309,16 @@ for the previous version. For example, if the latest, published release is
311309
v1.2, then minor changes for the previous release—e.g., v1.1.0 -> v1.1.1—are
312310
still possible.
313311

312+
The previous release gets fixes for:
313+
314+
- Security issues
315+
- Critical bugs
316+
- Regressions
317+
- Build issues
318+
- Necessary enhancements (including necessary UI/UX fixes)
319+
320+
The backported fixes should avoid breaking downgrade between minor releases as much as possible.
321+
314322
## Maintainers
315323

316324
To make sure every PR is checked, we have [team

0 commit comments

Comments
 (0)