Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expansion of gitea api to handle crud operations for projects #1

Open
wants to merge 219 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
219 commits
Select commit Hold shift + click to select a range
1ee59f0
Allow disabling authentication related user features (#31535)
bohde Jul 9, 2024
7bb3835
Add `YEAR`, `MONTH`, `MONTH_ENGLISH`, `DAY` variables for template re…
delvh Jul 9, 2024
20fde31
feat: add projects/ endpoint for initiating extension of api
eyad-hussein Jul 9, 2024
d6f8a60
Add bohde as maintainer (#31601)
kdumontnu Jul 10, 2024
af1f0df
Remove docs sub folder since docs has been moved to https://gitea.com…
lunny Jul 10, 2024
4ea2a6d
Fix: Allow org team names of length 255 in create team form (#31564)
tobiasbp Jul 10, 2024
5814b6d
refactor: refactor logic of adding project to user, update endpoint
eyad-hussein Jul 10, 2024
773bd91
api: create endpoint for changing project status
eyad-hussein Jul 10, 2024
5877fab
api: create endpoint to get standalone projects created by user
eyad-hussein Jul 10, 2024
72b6bc8
Refactor webhook (#31587)
wxiaoguang Jul 10, 2024
f8ae9f7
api: implement logic for all project/user related endpoints
eyad-hussein Jul 10, 2024
436af47
Fix wrong merge on removing docs (#31605)
lunny Jul 10, 2024
1b0ccf4
Upgrade security public key (#31594)
lunny Jul 10, 2024
228c354
Add types for js globals (#31586)
silverwind Jul 11, 2024
a06bbcf
Update JS dependencies (#31616)
silverwind Jul 11, 2024
fa160b9
typo on date in security document (#31617)
techknowlogick Jul 11, 2024
0bd9d5b
api: implement endpoints for all org-project logic
eyad-hussein Jul 11, 2024
4913eda
Display app name in the registration email title (#31562)
SunnyWan59 Jul 11, 2024
d73623d
[skip ci] Updated translations via Crowdin
GiteaBot Jul 12, 2024
957c75b
Fix update flake (#31626)
6543 Jul 12, 2024
b299237
api: implement logic for all (user and org)/reponame/projects endpoin…
eyad-hussein Jul 12, 2024
49a1961
api(refactor): refactor middlware assignments to each group
eyad-hussein Jul 12, 2024
7bfa546
api: implement logic and endpoint for moving issues between projects …
eyad-hussein Jul 12, 2024
bc0fca4
api: create model to api format convertor for project
eyad-hussein Jul 12, 2024
d5a1ce1
api(refactor): minimize number of endpoints to 2 by refactoring curre…
eyad-hussein Jul 14, 2024
3a5911a
api(refactor): remove unnessesary condition from orgAssignment
eyad-hussein Jul 14, 2024
10c0766
api(refactor): create a common handler for org and repo projects
eyad-hussein Jul 14, 2024
9ca2cdf
docs: set up project files for swagger documentation
eyad-hussein Jul 14, 2024
1064e81
Issue Templates: add option to have dropdown printed list (#31577)
6543 Jul 14, 2024
0d08bb6
Upgrade xorm to v1.3.9 and improve some migrations Sync (#29899)
lunny Jul 14, 2024
0f53324
Add option to change mail from user display name (#31528)
6543 Jul 14, 2024
0bb4c1c
Code editor theme enhancements (#31629)
silverwind Jul 14, 2024
1b47d91
docs: create swagger api documentation for endpoints
eyad-hussein Jul 15, 2024
e8d4b7a
Added default sorting milestones by name (#27084)
BElluu Jul 16, 2024
3a7454d
Enable `no-jquery/no-class-state` (#31639)
silverwind Jul 16, 2024
416c36f
allow synchronizing user status from OAuth2 login providers (#31572)
bohde Jul 16, 2024
3571b7e
Allow searching issues by ID (#31479)
silkentrance Jul 16, 2024
de1a550
[skip ci] Updated translations via Crowdin
GiteaBot Jul 17, 2024
0c1127a
Remove unneccessary uses of `word-break: break-all` (#31637)
silverwind Jul 17, 2024
03c8c26
[skip ci] Updated translations via Crowdin
GiteaBot Jul 18, 2024
e9aa39b
Fix a branch divergence cache bug (#31659)
Zettat123 Jul 19, 2024
a8d0c87
add skip secondary authorization option for public oauth2 clients (#3…
denyskon Jul 19, 2024
ba9589a
fix redis dep (#31662)
techknowlogick Jul 19, 2024
d919df4
[skip ci] Updated translations via Crowdin
GiteaBot Jul 21, 2024
ad91a59
[skip ci] Updated translations via Crowdin
GiteaBot Jul 23, 2024
24f9390
Enable direnv (#31672)
techknowlogick Jul 23, 2024
2f1cb1d
fix OIDC introspection authentication (#31632)
slingamn Jul 23, 2024
bbd1476
Run `detectWebAuthnSupport` only on sign-in page (#31676)
wolfogre Jul 23, 2024
c0b5a84
Properly filter issue list given no assignees filter (#31522)
kemzeb Jul 23, 2024
b4ccef3
use nolyfill to remove some polyfills (#31468)
techknowlogick Jul 24, 2024
7bd1275
[skip ci] Updated translations via Crowdin
GiteaBot Jul 25, 2024
169031b
Fix "Filter by commit" Dropdown (#31695)
wxiaoguang Jul 25, 2024
d8f82cb
Use GetDisplayName() instead of DisplayName() to generate rss feeds (…
StanleySweet Jul 25, 2024
cc04481
Support delete user email in admin panel (#31690)
yp05327 Jul 25, 2024
bae87df
Add return type to GetRawFileOrLFS and GetRawFile (#31680)
AdamMajer Jul 25, 2024
ecc8f2b
add `username` to OIDC introspection response (#31688)
slingamn Jul 25, 2024
cabcca3
Run `detectWebAuthnSupport` only if necessary (#31691)
wolfogre Jul 25, 2024
930ca92
Add types to fetch,toast,bootstrap,svg (#31627)
silverwind Jul 25, 2024
4b376a0
Support `pull_request_target` event for commit status (#31703)
Zettat123 Jul 26, 2024
e1cf760
OIDC: case-insensitive comparison for auth scheme `Basic` (#31706)
slingamn Jul 26, 2024
a40192d
[skip ci] Updated translations via Crowdin
GiteaBot Jul 27, 2024
aa36989
Enable `no-jquery/no-parse-html-literal` and fix violation (#31684)
silverwind Jul 27, 2024
7dec8de
Hide the "Details" link of commit status when the user cannot access …
Zettat123 Jul 28, 2024
5f526d7
Run `go-install` in `deps-tools` in parallel (#31711)
silverwind Jul 28, 2024
88decb6
[skip ci] Updated licenses and gitignores
GiteaBot Jul 29, 2024
d109923
Make GetRepositoryByName more safer (#31712)
lunny Jul 29, 2024
e0a408e
Add permission check when creating PR (#31033)
yp05327 Jul 29, 2024
7b38863
Fix loadRepository error when access user dashboard (#31719)
yp05327 Jul 29, 2024
bf5ae79
Fix API endpoint for registration-token (#31722)
wolfogre Jul 29, 2024
d39bce7
fix(api): owner ID should be zero when created repo secret (#31715)
appleboy Jul 29, 2024
81fa471
Set owner id to zero when GetRegistrationToken for repo (#31725)
wolfogre Jul 29, 2024
f989f46
Move `registerActionsCleanup` to `initActionsTasks` (#31721)
wolfogre Jul 30, 2024
0a11bce
Fix Null Pointer error for CommitStatusesHideActionsURL (#31731)
yp05327 Jul 30, 2024
75d0b61
Fix the display of project type for deleted projects (#31732)
yp05327 Jul 30, 2024
666c2b2
[skip ci] Updated translations via Crowdin
GiteaBot Jul 31, 2024
9ac57c9
Improve names of cron jobs for Actions (#31736)
wolfogre Jul 31, 2024
09b56fc
Distinguish LFS object errors to ignore missing objects during migrat…
wolfogre Jul 31, 2024
d41dc95
refactor: refactor endpoints to comply with github api
eyad-hussein Jul 31, 2024
f3f6908
refactor: remove unnessary condition in reqSelfOrAdmin middleware
eyad-hussein Jul 31, 2024
7674eaf
[skip ci] Updated translations via Crowdin
GiteaBot Aug 1, 2024
9e31b22
Exclude protected branches from recently pushed (#31748)
wolfogre Aug 1, 2024
a33e74d
Clarify Actions resources ownership (#31724)
wolfogre Aug 1, 2024
333c9ed
Add permission description for API to add repo collaborator (#31744)
wolfogre Aug 1, 2024
21a73ae
Use UTC as default timezone when schedule Actions cron tasks (#31742)
wolfogre Aug 1, 2024
42c54d0
feat: add pagination support and update swagger documentation
eyad-hussein Aug 1, 2024
d128352
bump vue-bar-graph (#31705)
techknowlogick Aug 1, 2024
e367835
Fix createElementFromAttrs bug (#31751)
wxiaoguang Aug 1, 2024
687c118
Clear up old Actions logs (#31735)
wolfogre Aug 2, 2024
0e3d8f8
Remove unused code from models/repos/release.go (#31756)
kemzeb Aug 2, 2024
237b981
Upgrade bleve to 2.4.2 (#31762)
lunny Aug 2, 2024
13439f1
Update JS dependencies (#31766)
silverwind Aug 2, 2024
2a1ed0c
[skip ci] Updated translations via Crowdin
GiteaBot Aug 3, 2024
976f78e
Fix wiki revision pagination (#31760)
lunny Aug 3, 2024
0b7eb38
[skip ci] Updated translations via Crowdin
GiteaBot Aug 4, 2024
572aaeb
Rename head branch of pull requests when renaming a branch (#31759)
lunny Aug 4, 2024
c649a04
[skip ci] Updated licenses and gitignores
GiteaBot Aug 5, 2024
94cca88
Fix null requested_reviewer from API (#31773)
emrebdr Aug 5, 2024
de175e3
Add signature support for the RPM module (#27069)
ExplodingDragon Aug 6, 2024
df7f1c2
Fix protected branch files detection on pre_receive hook (#31778)
lunny Aug 6, 2024
de2787a
Add `TAGS` to `TEST_TAGS` and fix bugs found with gogit (#31791)
wolfogre Aug 7, 2024
3862b31
Fix RPM resource leak (#31794)
KN4CK3R Aug 8, 2024
aa1055f
[skip ci] Updated translations via Crowdin
GiteaBot Aug 9, 2024
791d7fc
Add issue comment when moving issues from one column to another of th…
lunny Aug 9, 2024
33cc583
Support compression for Actions logs (#31761)
wolfogre Aug 9, 2024
f4d3120
Fix `IsObjectExist` with gogit (#31790)
wolfogre Aug 9, 2024
fb271d1
Add label `docs-update-needed` for PRs that modify `app.example.ini` …
wolfogre Aug 9, 2024
42841aa
Fix typo for `LOG_COMPRESSION` in ini (#31809)
wolfogre Aug 9, 2024
df27846
Show latest run when visit /run/latest (#31808)
fuxiaohei Aug 10, 2024
9633f33
Add warning message in merge instructions when `AutodetectManualMerge…
a1012112796 Aug 10, 2024
32075d2
Add types to various low-level functions (#31781)
silverwind Aug 10, 2024
ff1779d
[skip ci] Updated translations via Crowdin
GiteaBot Aug 11, 2024
e45a4c9
Move repository visibility to danger zone in the settings area (#31126)
fabiobarkoski Aug 11, 2024
0470646
Show lock owner instead of repo owner on LFS setting page (#31788)
wolfogre Aug 11, 2024
64ef389
[skip ci] Updated licenses and gitignores
GiteaBot Aug 12, 2024
63c5ac6
Add `:focus-visible` style to buttons (#31799)
silverwind Aug 12, 2024
8883d99
Support issue template assignees (#31083)
Zettat123 Aug 12, 2024
fe7c941
Scroll images in project issues separately from the remaining issue (…
SimonPistache Aug 12, 2024
5bcab0b
[skip ci] Updated translations via Crowdin
GiteaBot Aug 13, 2024
a4dac59
Fixes for unreachable project issues when transfer repository from or…
emrebdr Aug 13, 2024
7d13483
[skip ci] Updated translations via Crowdin
GiteaBot Aug 14, 2024
7569a47
Add spacing to global error message (#31826)
sebluy Aug 14, 2024
1310649
render plain text file if the LFS object doesn't exist (#31812)
bohde Aug 14, 2024
86c848e
[skip ci] Updated translations via Crowdin
GiteaBot Aug 15, 2024
b491b21
Fix panic of ssh public key page after deletion of auth source (#31829)
lunny Aug 15, 2024
7092402
Add missing repository type filter parameters to pager (#31832)
yp05327 Aug 15, 2024
e4f850b
[skip ci] Updated translations via Crowdin
GiteaBot Aug 16, 2024
2010fbe
Fix raw wiki links (#31825)
Zettat123 Aug 16, 2024
acd7053
Avoid returning without written ctx when posting PR (#31843)
wolfogre Aug 16, 2024
2e7d202
fix the component of access token list not mounted (#31824)
sillyguodong Aug 16, 2024
951f02f
Upgrade `htmx` to `2.0.2` (#31847)
yardenshoham Aug 16, 2024
61aaf34
Fix overflowing content in action run log (#31842)
Adrian-Hirt Aug 17, 2024
30ac1fb
[skip ci] Updated translations via Crowdin
GiteaBot Aug 18, 2024
561b5c5
[skip ci] Updated translations via Crowdin
GiteaBot Aug 19, 2024
36232b6
Actions support workflow dispatch event (#28163)
pangliang Aug 19, 2024
4f5c966
Fix actions notify bug (#31866)
lunny Aug 19, 2024
ccf7366
Add tag name in the commits list (#31082)
lunny Aug 19, 2024
0d24c9f
add CfTurnstileSitekey context data to all captcha templates (#31874)
bohde Aug 19, 2024
8b92eba
Fix agit automerge (#31207)
lunny Aug 20, 2024
c03baab
Refactor the usage of batch catfile (#31754)
lunny Aug 20, 2024
d1426de
[skip ci] Updated translations via Crowdin
GiteaBot Aug 21, 2024
d158472
Don't return 500 if mirror url contains special chars (#31859)
lunny Aug 21, 2024
40036b6
Move lock icon position and add additional tooltips to branch list pa…
william-allspice Aug 21, 2024
0299bb9
Use correct function name (#31887)
lunny Aug 21, 2024
e0c27e5
[skip ci] Updated translations via Crowdin
GiteaBot Aug 22, 2024
5fd3b09
Bump relative-time-element to v4.4.3 (#31910)
yardenshoham Aug 23, 2024
10fd604
Remove "dsa-1024" testcases from Test_SSHParsePublicKey and Test_calc…
s4uliu5 Aug 24, 2024
41d9eaa
[skip ci] Updated translations via Crowdin
GiteaBot Aug 25, 2024
725a3ed
Handle "close" actionable references for manual merges (#31879)
Zettat123 Aug 25, 2024
40395ce
Update mermaid to v11 (#31913)
silverwind Aug 25, 2024
d477dd5
[skip ci] Updated licenses and gitignores
GiteaBot Aug 26, 2024
1e4be09
Introduce globallock as distributed locks (#31908)
wolfogre Aug 26, 2024
521d919
[skip ci] Updated translations via Crowdin
GiteaBot Aug 27, 2024
39d2fde
Split org Propfile README to a new tab `overview` (#31373)
a1012112796 Aug 27, 2024
7207d93
Fix a number of Typescript issues (#31877)
silverwind Aug 28, 2024
bc0977f
Refactor globallock (#31933)
wolfogre Aug 29, 2024
fcac28c
Upgrade micromatch to 4.0.8 (#31939)
lunny Aug 29, 2024
06c67c6
Fix search team (#31923)
lunny Aug 29, 2024
f46e7ea
Update JS and PY dependencies (#31940)
silverwind Aug 29, 2024
1f924d8
[skip ci] Updated translations via Crowdin
GiteaBot Aug 30, 2024
e5e4078
Move web globals to `web_src/js/globals.d.ts` (#31943)
silverwind Aug 30, 2024
80fa8d7
[skip ci] Updated translations via Crowdin
GiteaBot Sep 1, 2024
286ede4
Fix index too many file names bug (#31903)
lunny Sep 1, 2024
5550226
Improve textarea paste (#31948)
silverwind Sep 1, 2024
661a1e1
Fix sort order for organization home and user profile page (#31921)
yp05327 Sep 1, 2024
eba6bfb
Fix 500 error when `state` params is set when editing issue/PR by API…
yp05327 Sep 1, 2024
c0db47b
nix wording nit in todo code comment
6543 Sep 1, 2024
052a8fe
[skip ci] Updated translations via Crowdin
GiteaBot Sep 2, 2024
ac34449
Prevent update pull refs manually and will not affect other refs upda…
lunny Sep 2, 2024
83f37f6
Remove urls from translations (#31950)
denyskon Sep 2, 2024
85b1f30
Improve get feed with pagination (#31821)
lunny Sep 2, 2024
cf52cc9
[skip ci] Updated translations via Crowdin
GiteaBot Sep 3, 2024
d5f35cc
[skip ci] Updated translations via Crowdin
GiteaBot Sep 4, 2024
7eef261
Replace v-html with v-text in search inputbox (#31966)
lunny Sep 4, 2024
a366af4
Remove html tags from create tag and branch translation (#31973)
lunny Sep 4, 2024
30da734
[skip ci] Updated translations via Crowdin
GiteaBot Sep 4, 2024
74b1c58
[skip ci] Updated translations via Crowdin
GiteaBot Sep 4, 2024
5c05ddd
Fix nuget/conan/container packages upload bugs (#31967)
lunny Sep 5, 2024
19af534
For consistency make repo search sort options case sensitive (#31951)
6543 Sep 5, 2024
bf7ae04
Return 404 instead of error when commit not exist (#31977)
AdamMajer Sep 5, 2024
0c514b3
Merge branch 'main' into development
techknowlogick Sep 6, 2024
e9c64f4
Distinguish official vs non-official reviews, add tool tips, and upgr…
william-allspice Sep 6, 2024
a581847
Use forum.gitea.com instead of old URL (#31989)
lunny Sep 6, 2024
2da2000
Use global lock instead of NewExclusivePool to allow distributed lock…
lunny Sep 6, 2024
e8b801f
[skip ci] Updated translations via Crowdin
GiteaBot Sep 7, 2024
f309097
Add automatic light/dark option for the colorblind theme (#31997)
lucasoethe Sep 7, 2024
d8f3498
Upgrade cache to v0.2.1 (#32003)
lunny Sep 7, 2024
01dec75
Remove SHA1 for support for ssh rsa signing (#31857)
42wim Sep 7, 2024
df96088
[skip ci] Updated translations via Crowdin
GiteaBot Sep 8, 2024
972eae3
[skip ci] Updated licenses and gitignores
GiteaBot Sep 9, 2024
a323a82
Increase `cacheContextLifetime` to reduce false reports (#32011)
wolfogre Sep 9, 2024
f183783
Save initial signup information for users to aid in spam prevention (…
techknowlogick Sep 9, 2024
1620e3f
Enable compression for Actions logs by default (#32013)
wolfogre Sep 9, 2024
d9a7748
bump to go 1.23 (#31855)
techknowlogick Sep 10, 2024
def1c96
Support migration from AWS CodeCommit (#31981)
Zettat123 Sep 10, 2024
125679f
Support allowed hosts for migrations to work with proxy (#32025)
wolfogre Sep 11, 2024
7c6edf1
Fix `/repos/{owner}/{repo}/pulls/{index}/files` endpoint not populati…
Sep 11, 2024
64298dc
Failed authentications are logged to level Warning (#32016)
itzonban Sep 11, 2024
20d7707
[skip ci] Updated translations via Crowdin
GiteaBot Sep 12, 2024
4ab6fc6
Add option to filter board cards by labels and assignees (#31999)
lafriks Sep 12, 2024
f05d9c9
Handle invalid target when creating releases using API (#31841)
kemzeb Sep 12, 2024
3a51c37
Check if the `due_date` is nil when editing issues (#32035)
Zettat123 Sep 14, 2024
3febcaa
Use a common message template instead of a special one (#31878)
lunny Sep 14, 2024
6f989fc
[skip ci] Updated translations via Crowdin
GiteaBot Sep 15, 2024
74550a9
[skip ci] Updated translations via Crowdin
GiteaBot Sep 16, 2024
859be09
feat(#31666): Set the columns height to hug all its contents (#31726)
SimonPistache Sep 16, 2024
f528df9
Do not escape relative path in RPM primary index (#32038)
KN4CK3R Sep 16, 2024
7dde3e6
Included tag search capabilities (#32045)
bsofiato Sep 17, 2024
f38e101
Lazy load avatar images (#32051)
hiifong Sep 17, 2024
8cdf4e2
Fix CI (#32062)
lunny Sep 17, 2024
55f1fcf
Add missing comment reply handling (#32050)
KN4CK3R Sep 17, 2024
a825ba0
Merge branch 'main' into development
eyad-hussein Sep 18, 2024
1fede04
Refactor CSRF protector (#32057)
wxiaoguang Sep 18, 2024
adea500
Resolve duplicate local string key related to PR comments (#32073)
kemzeb Sep 18, 2024
269c630
Fix: database not update release when using `git push --tags --force`…
ExplodingDragon Sep 18, 2024
2fc347b
[skip ci] Updated translations via Crowdin
GiteaBot Sep 19, 2024
55d5a74
[skip ci] Updated translations via Crowdin
GiteaBot Sep 20, 2024
cc57d51
tests(api): create tests for project and column handlers
eyad-hussein Sep 20, 2024
0150d09
Merge branch 'main' into development
eyad-hussein Sep 20, 2024
6bd6adb
docs(api): update swagger documentation for projects
eyad-hussein Sep 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "Gitea DevContainer",
"image": "mcr.microsoft.com/devcontainers/go:1.22-bullseye",
"image": "mcr.microsoft.com/devcontainers/go:1.23-bookworm",
"features": {
// installs nodejs into container
"ghcr.io/devcontainers/features/node:1": {
"version": "20"
},
"ghcr.io/devcontainers/features/git-lfs:1.1.0": {},
"ghcr.io/devcontainers/features/git-lfs:1.2.2": {},
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
"ghcr.io/devcontainers/features/python:1": {
"version": "3.12"
Expand Down
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
30 changes: 20 additions & 10 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ overrides:
- files: ["web_src/**/*"]
globals:
__webpack_public_path__: true
htmx: true
process: false # https://github.com/webpack/webpack/issues/15833
- files: ["web_src/**/*", "docs/**/*"]
env:
Expand All @@ -58,7 +57,15 @@ overrides:
worker: true
rules:
no-restricted-globals: [2, addEventListener, blur, close, closed, confirm, defaultStatus, defaultstatus, error, event, external, find, focus, frameElement, frames, history, innerHeight, innerWidth, isFinite, isNaN, length, locationbar, menubar, moveBy, moveTo, name, onblur, onerror, onfocus, onload, onresize, onunload, open, opener, opera, outerHeight, outerWidth, pageXOffset, pageYOffset, parent, print, removeEventListener, resizeBy, resizeTo, screen, screenLeft, screenTop, screenX, screenY, scroll, scrollbars, scrollBy, scrollTo, scrollX, scrollY, status, statusbar, stop, toolbar, top]
- files: ["*.config.*", "**/*.d.ts"]
- files: ["*.config.*"]
rules:
i/no-unused-modules: [0]
- files: ["**/*.d.ts"]
rules:
i/no-unused-modules: [0]
"@typescript-eslint/consistent-type-definitions": [0]
"@typescript-eslint/consistent-type-imports": [0]
- files: ["web_src/js/types.ts"]
rules:
i/no-unused-modules: [0]
- files: ["**/*.test.*", "web_src/js/test/setup.ts"]
Expand Down Expand Up @@ -217,7 +224,6 @@ rules:
"@typescript-eslint/await-thenable": [2]
"@typescript-eslint/ban-ts-comment": [2, {'ts-expect-error': false, 'ts-ignore': true, 'ts-nocheck': false, 'ts-check': false}]
"@typescript-eslint/ban-tslint-comment": [0]
"@typescript-eslint/ban-types": [2, {extendDefaults: true, types: {Function: false}}]
"@typescript-eslint/class-literal-property-style": [0]
"@typescript-eslint/class-methods-use-this": [0]
"@typescript-eslint/consistent-generic-constructors": [0]
Expand Down Expand Up @@ -248,6 +254,7 @@ rules:
"@typescript-eslint/no-dynamic-delete": [0]
"@typescript-eslint/no-empty-function": [0]
"@typescript-eslint/no-empty-interface": [0]
"@typescript-eslint/no-empty-object-type": [2]
"@typescript-eslint/no-explicit-any": [0]
"@typescript-eslint/no-extra-non-null-assertion": [2]
"@typescript-eslint/no-extraneous-class": [0]
Expand All @@ -259,7 +266,7 @@ rules:
"@typescript-eslint/no-invalid-this": [0]
"@typescript-eslint/no-invalid-void-type": [0]
"@typescript-eslint/no-loop-func": [0]
"@typescript-eslint/no-loss-of-precision": [2]
"@typescript-eslint/no-loss-of-precision": [0]
"@typescript-eslint/no-magic-numbers": [0]
"@typescript-eslint/no-meaningless-void-operator": [0]
"@typescript-eslint/no-misused-new": [2]
Expand All @@ -271,8 +278,9 @@ rules:
"@typescript-eslint/no-non-null-assertion": [0]
"@typescript-eslint/no-redeclare": [0]
"@typescript-eslint/no-redundant-type-constituents": [2]
"@typescript-eslint/no-require-imports": [0]
"@typescript-eslint/no-require-imports": [2]
"@typescript-eslint/no-restricted-imports": [0]
"@typescript-eslint/no-restricted-types": [0]
"@typescript-eslint/no-shadow": [0]
"@typescript-eslint/no-this-alias": [0] # handled by unicorn/no-this-assignment
"@typescript-eslint/no-unnecessary-boolean-literal-compare": [0]
Expand All @@ -287,6 +295,7 @@ rules:
"@typescript-eslint/no-unsafe-call": [0]
"@typescript-eslint/no-unsafe-declaration-merging": [2]
"@typescript-eslint/no-unsafe-enum-comparison": [2]
"@typescript-eslint/no-unsafe-function-type": [2]
"@typescript-eslint/no-unsafe-member-access": [0]
"@typescript-eslint/no-unsafe-return": [0]
"@typescript-eslint/no-unsafe-unary-minus": [2]
Expand All @@ -295,7 +304,7 @@ rules:
"@typescript-eslint/no-use-before-define": [0]
"@typescript-eslint/no-useless-constructor": [0]
"@typescript-eslint/no-useless-empty-export": [0]
"@typescript-eslint/no-var-requires": [2]
"@typescript-eslint/no-wrapper-object-types": [2]
"@typescript-eslint/non-nullable-type-assertion-style": [0]
"@typescript-eslint/only-throw-error": [2]
"@typescript-eslint/parameter-properties": [0]
Expand Down Expand Up @@ -327,7 +336,7 @@ rules:
"@typescript-eslint/switch-exhaustiveness-check": [0]
"@typescript-eslint/triple-slash-reference": [2]
"@typescript-eslint/typedef": [0]
"@typescript-eslint/unbound-method": [2]
"@typescript-eslint/unbound-method": [0] # too many false-positives
"@typescript-eslint/unified-signatures": [2]
accessor-pairs: [2]
array-callback-return: [2, {checkForEach: true}]
Expand Down Expand Up @@ -505,7 +514,7 @@ rules:
no-jquery/no-box-model: [2]
no-jquery/no-browser: [2]
no-jquery/no-camel-case: [2]
no-jquery/no-class-state: [0]
no-jquery/no-class-state: [2]
no-jquery/no-class: [0]
no-jquery/no-clone: [2]
no-jquery/no-closest: [0]
Expand Down Expand Up @@ -561,7 +570,7 @@ rules:
no-jquery/no-param: [2]
no-jquery/no-parent: [0]
no-jquery/no-parents: [2]
no-jquery/no-parse-html-literal: [0]
no-jquery/no-parse-html-literal: [2]
no-jquery/no-parse-html: [2]
no-jquery/no-parse-json: [2]
no-jquery/no-parse-xml: [2]
Expand Down Expand Up @@ -592,7 +601,7 @@ rules:
no-lone-blocks: [2]
no-lonely-if: [0]
no-loop-func: [0]
no-loss-of-precision: [0] # handled by @typescript-eslint/no-loss-of-precision
no-loss-of-precision: [2]
no-magic-numbers: [0]
no-misleading-character-class: [2]
no-multi-assign: [0]
Expand Down Expand Up @@ -836,6 +845,7 @@ rules:
unicorn/no-invalid-fetch-options: [2]
unicorn/no-invalid-remove-event-listener: [2]
unicorn/no-keyword-prefix: [0]
unicorn/no-length-as-slice-end: [2]
unicorn/no-lonely-if: [2]
unicorn/no-magic-array-flat-depth: [0]
unicorn/no-negated-condition: [0]
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ body:
value: |
1. Please speak English, this is the language all maintainers can speak and write.
2. Please ask questions or configuration/deploy problems on our Discord
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
server (https://discord.gg/gitea) or forum (https://forum.gitea.com).
3. Make sure you are using the latest release and
take a moment to check that your issue hasn't been reported before.
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.com/help/faq)
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ contact_links:
url: https://discord.gg/Gitea
about: Please ask questions and discuss configuration or deployment problems here.
- name: Discourse Forum
url: https://discourse.gitea.io
url: https://forum.gitea.com
about: Questions and configuration or deployment problems can also be discussed on our forum.
- name: Frequently Asked Questions
url: https://docs.gitea.com/help/faq
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body:
value: |
1. Please speak English, this is the language all maintainers can speak and write.
2. Please ask questions or configuration/deploy problems on our Discord
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
server (https://discord.gg/gitea) or forum (https://forum.gitea.com).
3. Please take a moment to check that your feature hasn't already been suggested.
- type: textarea
id: description
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/ui.bug-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ body:
value: |
1. Please speak English, this is the language all maintainers can speak and write.
2. Please ask questions or configuration/deploy problems on our Discord
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
server (https://discord.gg/gitea) or forum (https://forum.gitea.com).
3. Please take a moment to check that your issue doesn't already exist.
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.com/help/faq)
5. Please give all relevant information below for bug reports, because
Expand Down
5 changes: 5 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,8 @@ modifies/js:
- any-glob-to-any-file:
- "**/*.js"
- "**/*.vue"

docs-update-needed:
- changed-files:
- any-glob-to-any-file:
- "custom/conf/app.example.ini"
1 change: 0 additions & 1 deletion .github/workflows/files-changed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ jobs:

docs:
- "**/*.md"
- "docs/**"
- ".markdownlint.yaml"
- "package.json"
- "package-lock.json"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/pull-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ jobs:
cache-dependency-path: package-lock.json
- run: make deps-frontend
- run: make lint-md
- run: make docs

actions:
if: needs.files-changed.outputs.actions == 'true' || needs.files-changed.outputs.actions == 'true'
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ prime/
*_source.tar.bz2
.DS_Store

# nix-direnv generated files
.direnv/

# Make evidence files
/.make_evidence

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage
FROM docker.io/library/golang:1.22-alpine3.20 AS build-env
FROM docker.io/library/golang:1.23-alpine3.20 AS build-env

ARG GOPROXY
ENV GOPROXY=${GOPROXY:-direct}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.rootless
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage
FROM docker.io/library/golang:1.22-alpine3.20 AS build-env
FROM docker.io/library/golang:1.23-alpine3.20 AS build-env

ARG GOPROXY
ENV GOPROXY=${GOPROXY:-direct}
Expand Down
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ Gary Wang <git@blumia.net> (@BLumia)
Tim-Niclas Oelschläger <zokki.softwareschmiede@gmail.com> (@zokkis)
Yu Liu <1240335630@qq.com> (@HEREYUA)
Kemal Zebari <kemalzebra@gmail.com> (@kemzeb)
Rowan Bohde <rowan.bohde@gmail.com> (@bohde)
45 changes: 22 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ SHASUM ?= shasum -a 256
HAS_GO := $(shell hash $(GO) > /dev/null 2>&1 && echo yes)
COMMA := ,

XGO_VERSION := go-1.22.x
XGO_VERSION := go-1.23.x

AIR_PACKAGE ?= github.com/air-verse/air@v1
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/cmd/editorconfig-checker@2.7.0
GOFUMPT_PACKAGE ?= mvdan.cc/gofumpt@v0.6.0
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59.0
GOFUMPT_PACKAGE ?= mvdan.cc/gofumpt@v0.7.0
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.3
GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/gxz@v0.5.11
MISSPELL_PACKAGE ?= github.com/golangci/misspell/cmd/misspell@v0.5.1
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/swagger@v0.31.0
Expand Down Expand Up @@ -137,7 +137,7 @@ TAGS ?=
TAGS_SPLIT := $(subst $(COMMA), ,$(TAGS))
TAGS_EVIDENCE := $(MAKE_EVIDENCE_DIR)/tags

TEST_TAGS ?= sqlite sqlite_unlock_notify
TEST_TAGS ?= $(TAGS_SPLIT) sqlite sqlite_unlock_notify

TAR_EXCLUDES := .git data indexers queues log node_modules $(EXECUTABLE) $(FOMANTIC_WORK_DIR)/node_modules $(DIST) $(MAKE_EVIDENCE_DIR) $(AIR_TMP_DIR) $(GO_LICENSE_TMP_DIR)

Expand All @@ -146,7 +146,7 @@ WEB_DIRS := web_src/js web_src/css

ESLINT_FILES := web_src/js tools *.js *.ts tests/e2e
STYLELINT_FILES := web_src/css web_src/js/components/*.vue
SPELLCHECK_FILES := $(GO_DIRS) $(WEB_DIRS) docs/content templates options/locale/locale_en-US.ini .github $(filter-out CHANGELOG.md, $(wildcard *.go *.js *.md *.yml *.yaml *.toml))
SPELLCHECK_FILES := $(GO_DIRS) $(WEB_DIRS) templates options/locale/locale_en-US.ini .github $(filter-out CHANGELOG.md, $(wildcard *.go *.js *.md *.yml *.yaml *.toml))
EDITORCONFIG_FILES := templates .github/workflows options/locale/locale_en-US.ini

GO_SOURCES := $(wildcard *.go)
Expand Down Expand Up @@ -397,7 +397,7 @@ lint-swagger: node_modules

.PHONY: lint-md
lint-md: node_modules
npx markdownlint docs *.md
npx markdownlint *.md

.PHONY: lint-spell
lint-spell:
Expand Down Expand Up @@ -797,7 +797,7 @@ $(EXECUTABLE): $(GO_SOURCES) $(TAGS_PREREQ)
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@

.PHONY: release
release: frontend generate release-windows release-linux release-darwin release-freebsd release-copy release-compress vendor release-sources release-docs release-check
release: frontend generate release-windows release-linux release-darwin release-freebsd release-copy release-compress vendor release-sources release-check

$(DIST_DIRS):
mkdir -p $(DIST_DIRS)
Expand Down Expand Up @@ -843,10 +843,6 @@ release-sources: | $(DIST_DIRS)
tar $(addprefix $(EXCL),$(TAR_EXCLUDES)) $(TRANSFORM) -czf $(DIST)/release/gitea-src-$(VERSION).tar.gz .
rm -f $(STORED_VERSION_FILE)

.PHONY: release-docs
release-docs: | $(DIST_DIRS) docs
tar -czf $(DIST)/release/gitea-docs-$(VERSION).tar.gz -C ./docs .

.PHONY: deps
deps: deps-frontend deps-backend deps-tools deps-py

Expand All @@ -862,18 +858,19 @@ deps-backend:

.PHONY: deps-tools
deps-tools:
$(GO) install $(AIR_PACKAGE)
$(GO) install $(EDITORCONFIG_CHECKER_PACKAGE)
$(GO) install $(GOFUMPT_PACKAGE)
$(GO) install $(GOLANGCI_LINT_PACKAGE)
$(GO) install $(GXZ_PACKAGE)
$(GO) install $(MISSPELL_PACKAGE)
$(GO) install $(SWAGGER_PACKAGE)
$(GO) install $(XGO_PACKAGE)
$(GO) install $(GO_LICENSES_PACKAGE)
$(GO) install $(GOVULNCHECK_PACKAGE)
$(GO) install $(ACTIONLINT_PACKAGE)
$(GO) install $(GOPLS_PACKAGE)
$(GO) install $(AIR_PACKAGE) & \
$(GO) install $(EDITORCONFIG_CHECKER_PACKAGE) & \
$(GO) install $(GOFUMPT_PACKAGE) & \
$(GO) install $(GOLANGCI_LINT_PACKAGE) & \
$(GO) install $(GXZ_PACKAGE) & \
$(GO) install $(MISSPELL_PACKAGE) & \
$(GO) install $(SWAGGER_PACKAGE) & \
$(GO) install $(XGO_PACKAGE) & \
$(GO) install $(GO_LICENSES_PACKAGE) & \
$(GO) install $(GOVULNCHECK_PACKAGE) & \
$(GO) install $(ACTIONLINT_PACKAGE) & \
$(GO) install $(GOPLS_PACKAGE) & \
wait

node_modules: package-lock.json
npm install --no-save
Expand All @@ -891,6 +888,8 @@ update-js: node-check | node_modules
npx updates -u -f package.json
rm -rf node_modules package-lock.json
npm install --package-lock
npx nolyfill install
npm install --package-lock
@touch node_modules

.PHONY: update-py
Expand Down
Loading