Compare commits
203 Commits
Author | SHA1 | Date | |
---|---|---|---|
09814117e3 | |||
499c5594c3 | |||
ecfbcced46 | |||
892e24aaf1 | |||
666038a06d | |||
54614767a2 | |||
e42c5afadb | |||
72b55c8094 | |||
a12d036a68 | |||
65d6bdf0be | |||
c598741f01 | |||
bc73e6a85c | |||
a8445e9320 | |||
0f73be0ae3 | |||
4033d95dbf | |||
43213b816d | |||
a55924aaf4 | |||
782b137682 | |||
5992365fc1 | |||
3b518a3af5 | |||
08cdc0da3d | |||
3e07c54be3 | |||
e2596b0a99 | |||
a424f6d4f8 | |||
59713541b6 | |||
8d9193680d | |||
ab4fd9aa1f | |||
221b90d289 | |||
81f5a87eb4 | |||
8b002b429d | |||
dfd371a363 | |||
54a516e9da | |||
ac129d4b4c | |||
4d5e3b9372 | |||
1ba0baa030 | |||
28e8c691a6 | |||
f81a612eb1 | |||
ee47face12 | |||
864bdd0ac8 | |||
037a3f0d8c | |||
227c3b67e0 | |||
5c3662b902 | |||
ab54310731 | |||
b7d054e4b5 | |||
d032500687 | |||
9159964ada | |||
9369b38315 | |||
6e82d0bb7c | |||
36b9a86bd8 | |||
e627f161c2 | |||
de8127e78b | |||
f7e271ff85 | |||
186f07bbf7 | |||
45b1f4dd3b | |||
026e745b9e | |||
c334be8284 | |||
353dcc5ad4 | |||
7811027ca1 | |||
abe9c641ce | |||
052e65e63f | |||
c1a10be07e | |||
2b79d3fd52 | |||
b4460cf541 | |||
a1bc2aa05e | |||
d713cf6150 | |||
012b804a9a | |||
372b622c2b | |||
06bcdfe77a | |||
a5a3c81412 | |||
ea2c9de3c4 | |||
348a6bf70d | |||
68a3961bf1 | |||
91dadedddf | |||
32eaba1b40 | |||
582dcaa12e | |||
917ca5ded9 | |||
e595dfeec7 | |||
03cacf971e | |||
68e0c802f7 | |||
09668b2e2e | |||
04eea29ecb | |||
511be9fe6e | |||
24e64fe372 | |||
4e310133f9 | |||
491f36d32a | |||
9111d2d037 | |||
5510ed34f1 | |||
39fce5750d | |||
1f90376041 | |||
0af6542a34 | |||
69bdcf41f3 | |||
e610b0389a | |||
13ffa287b1 | |||
e5b684e567 | |||
64ed262e18 | |||
f51c8e0008 | |||
d8a59d5f12 | |||
1ddfe03131 | |||
24cf06592e | |||
0b6f7fb607 | |||
c27a3af728 | |||
12aca3ef20 | |||
2390a46d0f | |||
51b6a78791 | |||
e6f62eea70 | |||
8981f6d0fc | |||
b2b5c80cb2 | |||
77db40e084 | |||
7222bac4e3 | |||
0eb4ab4246 | |||
102dcfa3a0 | |||
614d6df2d8 | |||
345a25d016 | |||
e8a7cd4a1d | |||
6c43b9f6f6 | |||
40744f8976 | |||
9d69a4758e | |||
53747a58a0 | |||
00ba826360 | |||
9bbb4d8d6d | |||
5703a0d3e3 | |||
85bad22ff8 | |||
71d2a6a41a | |||
d1f1f1142e | |||
2cd9d6b3f9 | |||
050c38ca19 | |||
51789ba12d | |||
b0de3d08b8 | |||
2e64449de7 | |||
ec539b7a77 | |||
6fbdacb524 | |||
948f6ca029 | |||
061b68e995 | |||
734fd93f59 | |||
203fe2841d | |||
056829749e | |||
f18b8e7d8a | |||
ea00ed320d | |||
30a783879f | |||
cb3173a1e9 | |||
ffe089432f | |||
8302b95d6b | |||
6f1c95ec5b | |||
cda69a0363 | |||
4908cc9adf | |||
28ed763f55 | |||
8e89eb8f43 | |||
dfefe86045 | |||
10fcb55507 | |||
e9105ac281 | |||
e6e1cfd8e4 | |||
072997692c | |||
e9fab3ea3e | |||
e0bd6ebabd | |||
cc73f6e821 | |||
ff18c3ba65 | |||
b673edbeaf | |||
05431593ef | |||
aa4c9c3215 | |||
4e79c76ed0 | |||
3bd311c3f4 | |||
7e06e6a042 | |||
e5629d9701 | |||
4ea38bba73 | |||
25cb1fb994 | |||
e5422db5c7 | |||
3a29f6aaff | |||
99d71b2b65 | |||
783f7ccb2c | |||
3f75fbf8fe | |||
4124f8ef70 | |||
b45ea0280b | |||
031ddfcb7b | |||
d686aa0d31 | |||
037366f93f | |||
5191ab6445 | |||
bfd3eb9dbc | |||
8fa9d9dcc9 | |||
21cd5c2f3d | |||
22948048b2 | |||
fa28d0e706 | |||
3ea544d89c | |||
9cef7a4600 | |||
c207b94e0c | |||
506c70884a | |||
f64f5495af | |||
3e9fc36729 | |||
8e798ebbdf | |||
0ad5ae0dbf | |||
0cf467e9e0 | |||
5ff0f7d0ca | |||
224ee0d4e5 | |||
ee26d1c578 | |||
18093d4c9a | |||
de1d14590d | |||
0058453fd9 | |||
7679f4d51a | |||
82a8c26bbf | |||
cb113991a3 | |||
0bf07a7f61 | |||
adb5b9c061 | |||
f0c967560a | |||
1cc63ade82 |
.changelog.ymlgo.modgo.summain.gomigrations.goorg_team.goorg_team_test.gopackage-lock.jsonpackage.jsonpoetry.lockpoetry.tomlpyproject.tomlpost-install.tmplvitest.config.jswebpack.config.js
.devcontainer
.dockerignore.drone.yml.eslintrc.yaml.gitattributes.gitea
.github
.gitignore.gitpod.yml.golangci.yml.ignore.markdownlint.yaml.stylelintrc.yaml.yamllint.yamlBSDmakefileCHANGELOG.mdCONTRIBUTING.mdDockerfileDockerfile.rootlessMAINTAINERSMakefileREADME.mdREADME_ZH.mdSECURITY.mdassets
build
cmd
actions.goadmin.goadmin_auth_ldap.goadmin_auth_ldap_test.goadmin_user.goadmin_user_change_password.goadmin_user_create.goadmin_user_delete.goadmin_user_generate_access_token.goadmin_user_list.goadmin_user_must_change_password.gocert.gocmd.goconvert.godocs.godoctor.godoctor_test.godump.godump_repo.goembedded.gogenerate.gohook.gokeys.gomailer.gomain.gomain_test.gomanager.gomanager_logging.gomigrate.gomigrate_storage.gomigrate_storage_test.gorestore_repo.goserv.goweb.go
contrib
backport
environment-to-ini
gitea-monitoring-mixin
legal
custom/conf
docker
docs
content
administration
adding-legal-pages.en-us.mdadding-legal-pages.zh-cn.mdbackup-and-restore.en-us.mdcmd-embedded.en-us.mdcmd-embedded.zh-cn.mdcommand-line.en-us.mdcommand-line.zh-cn.mdconfig-cheat-sheet.en-us.mdconfig-cheat-sheet.zh-cn.mdcustomizing-gitea.en-us.mdcustomizing-gitea.zh-cn.mdemail-setup.en-us.mdemail-setup.zh-cn.mdexternal-renderers.en-us.mdexternal-renderers.zh-cn.mdfail2ban-setup.en-us.mdfail2ban-setup.zh-cn.mdhttps-support.en-us.mdhttps-support.zh-cn.mdlogging-config.en-us.mdmail-templates.en-us.mdmail-templates.zh-cn.mdrepo-indexer.en-us.mdrepo-indexer.zh-cn.mdreverse-proxies.en-us.md
contributing
development
api-usage.en-us.mdapi-usage.zh-cn.mdhacking-on-gitea.en-us.mdoauth2-provider.en-us.mdoauth2-provider.zh-cn.mdoauth2-provider.zh-tw.md
help
index.en-us.mdindex.fr-fr.mdindex.zh-cn.mdindex.zh-tw.mdinstallation
comparison.zh-cn.mddatabase-preparation.en-us.mddatabase-preparation.zh-cn.mdfrom-binary.zh-cn.mdfrom-package.en-us.mdfrom-package.fr-fr.mdfrom-package.zh-cn.mdfrom-package.zh-tw.mdfrom-source.en-us.mdfrom-source.zh-cn.mdon-cloud-provider.zh-cn.mdupgrade-from-gitea.en-us.mdupgrade-from-gitea.zh-cn.mdupgrade-from-gogs.zh-cn.mdwindows-service.en-us.mdwindows-service.zh-cn.mdwith-docker-rootless.en-us.mdwith-docker-rootless.zh-cn.mdwith-docker.en-us.mdwith-docker.fr-fr.mdwith-docker.zh-cn.md
usage
actions
act-runner.en-us.mdact-runner.zh-cn.mdcomparison.en-us.mdcomparison.zh-cn.mddesign.en-us.mddesign.zh-cn.mdfaq.en-us.mdfaq.zh-cn.mdquickstart.en-us.mdquickstart.zh-cn.md
agit-support.en-us.mdagit-support.zh-cn.mdauthentication.en-us.mdauthentication.zh-cn.mdblame.en-us.mdcode-owners.en-us.mdlabels.zh-cn.mdlinked-references.en-us.mdlinked-references.zh-cn.mdmulti-factor-authentication.en-us.mdpackages
permissions.zh-cn.mdprofile-readme.en-us.mdpull-request.en-us.mdpull-request.zh-cn.mdpull-request.zh-tw.mdrepo-mirror.zh-cn.mdtemplate-repositories.en-us.mdtemplate-repositories.zh-cn.mdstatic
models
actions
artifact.gorun.gorun_job.gorun_list.gorunner.gorunner_token.goschedule.goschedule_list.goschedule_spec.goschedule_spec_list.gotask.gotask_output.gotasks_version.govariable.go
activities
action.goaction_test.gomain_test.gonotification.gonotification_test.gorepo_activity.gostatistic.gouser_heatmap.gouser_heatmap_test.go
admin
asymkey
gpg_key.gogpg_key_add.gogpg_key_commit_verification.gogpg_key_common.gogpg_key_test.gossh_key_authorized_keys.gossh_key_commit_verification.gossh_key_fingerprint.gossh_key_principals.gossh_key_verify.go
auth
main_test.gooauth2.gooauth2_test.gosession.gosource.gotoken.gotoken_test.gotwofactor.gowebauthn.gowebauthn_test.go
avatars
db
error.gofixture_generation.gofixture_test.gofixtures
access.ymlaccess_token.ymlattachment.ymlbranch.ymlcomment.ymlcommit_status_index.ymldeleted_branch.ymlemail_address.ymlgpg_key.ymlissue.ymllabel.ymlpublic_key.ymlpull_request.ymlreaction.ymlrelease.ymlrepo_unit.ymlrepository.ymlreview.ymlsystem_setting.ymlteam.ymlteam_repo.ymlteam_unit.ymlteam_user.ymluser.ymlwatch.yml
git
branch.gobranch_list.gobranches.gobranches_test.gocommit_status.gomain_test.goprotected_branch.goprotected_branch_list.go
issues
assignees_test.gocomment.gocomment_code.gocomment_list.gocomment_test.gocontent_history.gocontent_history_test.goissue.goissue_index.goissue_label.goissue_label_test.goissue_list.goissue_list_test.goissue_project.goissue_search.goissue_stats.goissue_test.goissue_update.goissue_user.goissue_user_test.goissue_watch.goissue_watch_test.goissue_xref.goissue_xref_test.golabel.golabel_test.gomain_test.gomilestone.gomilestone_list.gomilestone_test.gopull.gopull_list.gopull_test.goreaction.goreaction_test.goreview.goreview_list.goreview_test.gostopwatch.gostopwatch_test.gotracked_time.gotracked_time_test.go
main_test.gomigrate.gomigrate_test.gomigrations
base
fixtures
Test_DeleteOrphanedIssueLabels
Test_RemoveInvalidLabels
Test_StoreWebauthnCredentialIDAsBytes
v1_10
v1_11
v1_12
v117.gov118.gov120.gov121.gov122.gov123.gov124.gov125.gov127.gov131.gov132.gov133.gov135.gov136.gov137.gov138.go
v1_13
v1_14
v155.gov158.gov160.gov161.gov162.gov163.gov164.gov166.gov167.gov170.gov171.gov172.gov173.gov174.gov176.gov177.go
v1_15
v1_16
v1_17
v1_18
v1_19
v1_20
v1_21
main_test.gov260.gov261.gov262.gov263.gov264.gov265.gov266.gov267.gov268.gov269.gov270.gov271.gov272.gov273.gov274.gov275.gov276.gov277.gov278.gov279.go
v1_6
v1_7
v1_8
v1_9
organization
packages
perm
project
repo.gorepo
archiver.goattachment.goattachment_test.gocollaboration.gocollaboration_test.gofork.gogit.gomain_test.gomirror.gopushmirror.gorelease.gorelease_test.gorepo.gorepo_list.gorepo_list_test.gorepo_test.gorepo_unit.gorepo_unit_test.gostar.gostar_test.gotopic.gotopic_test.goupdate.goupload.gowatch.gowatch_test.go
repo_collaboration.gorepo_collaboration_test.gorepo_transfer.gorepo_transfer_test.gosecret
system
unit
unittest
user
avatar.goemail_address.goemail_address_test.gofollow.gofollow_test.golist.gomain_test.goopenid.goopenid_test.goredirect.goredirect_test.gosearch.gosetting.gosetting_test.gouser.gouser_system.gouser_test.go
webhook
modules
actions
activitypub
analyze
assetfs
auth
webauthn
avatar
base
cache
charset
context
api.gobase.gocontext.gocontext_response.gocontext_template.goorg.gopackage.gopermission.goprivate.gorepo.goresponse.goutils.go
doctor
authorizedkeys.godbconsistency.godoctor.gofix16961.gofix8312.golfs.gomisc.gorepository.gousertype.go
emoji
eventsource
generate
git
batch_reader.goblame.goblame_test.gocommand.gocommit.gocommit_test.gogit.golog_name_status.gorepo.gorepo_base_nogogit.gorepo_blame.gorepo_branch_gogit.gorepo_compare.gorepo_compare_test.gorepo_index.gorepo_ref.gosha1.gosignature_nogogit.go
tests
gitgraph
graceful
highlight
hostmatcher
html
httpcache
httplib
indexer
bleve
code
bleve.gobleve_test.goelastic_search.goelastic_search_test.go
elasticsearch
git.goindexer.goindexer_test.gointernal
search.gowrapped.gointernal
issues
bleve.go
bleve
bleve_test.godb.godb
dboptions.goelastic_search.goelasticsearch
indexer.goindexer_test.gointernal
meilisearch.gomeilisearch
util.gostats
lfs
log
markup
metrics
mirror
nosql
notification
packages
process
public
queue
references
regexplru
repository
branch.gocommits.gocommits_test.gocreate.gocreate_test.godelete.gofork.gogenerate.gogenerate_test.gohooks.goinit.golicense.golicense_test.gomain_test.gorepo.go
session
setting
actions.goattachment.goconfig.go
config
config_env.goconfig_env_test.goconfig_provider.goconfig_provider_test.godatabase.godatabase_test.golfs.golog.gooauth2.goqueue.gorepository.gosecurity.goserver.goservice.gosession.gossh.gostorage.gostorage_test.goui.gossh
storage
structs
admin_user.gocommit_status.gocommit_status_test.gohook.goissue_label.goorg.goorg_team.gopackage.gorelease.gorepo.gorepo_commit.gorepo_file.gosecret.gouser.go
svg
templates
test
typesniffer
util
validation
web
options
license
ASWF-Digital-Assets-1.1Asterisk-exceptionAutoconf-exception-generic-3.0BSD-3-Clause-SunBSD-SystemicsBoehm-GCCrosswordDL-DE-ZERO-2.0FBMFerguson-TwofishGNU-compiler-exceptionGPL-3.0-onlyGPL-3.0-or-laterHP-1989Inner-Net-2.0LLGPLLinux-man-pages-copyleft-2-paraLinux-man-pages-copyleft-varLinux-man-pages-one-paraMIT-testregexMMIXwareMPEG-SSGNPL-1.0OPL-UK-3.0SANE-exceptionSLSoundexTTYP0Texinfo-exceptionURT-RLEZeeffcheck-cvsdtoalibpng-2.0pnmstitchstunnel-exception
locale
locale_cs-CZ.inilocale_de-DE.inilocale_el-GR.inilocale_en-US.inilocale_es-ES.inilocale_fa-IR.inilocale_fi-FI.inilocale_fr-FR.inilocale_hu-HU.inilocale_id-ID.inilocale_is-IS.inilocale_it-IT.inilocale_ja-JP.inilocale_ko-KR.inilocale_lv-LV.inilocale_nl-NL.inilocale_pl-PL.inilocale_pt-BR.inilocale_pt-PT.inilocale_ru-RU.inilocale_si-LK.inilocale_sk-SK.inilocale_sv-SE.inilocale_tr-TR.inilocale_uk-UA.inilocale_zh-CN.inilocale_zh-HK.inilocale_zh-TW.ini
public
.well-known
assets
img
svg
octicon-copilot-error.svgocticon-copilot-warning.svgocticon-feed-issue-closed.svgocticon-feed-issue-draft.svgocticon-feed-issue-open.svgocticon-feed-issue-reopen.svgocticon-feed-plus.svgocticon-feed-public.svgocticon-feed-pull-request-closed.svgocticon-feed-pull-request-draft.svgocticon-feed-pull-request-open.svgocticon-file-directory-symlink.svgocticon-filter-remove.svgocticon-pin-slash.svgocticon-repo-clone.svgocticon-repo-pull.svg
img
404.png500.pngapple-touch-icon.pngavatar_default.pngcheckmark.pngdingtalk.icodiscord.png
emoji
failed.pngfavicon.pngfavicon.svgfeishu.pnggitea.svggogs.icoloading.pnglogo.pnglogo.svgmsteams.pngopenid-16x16.pngpackagist.pngrepo_default.pngslack.pngsvg
fontawesome-openid.svgfontawesome-save.svgfontawesome-send.svgfontawesome-windows.svggitea-alpine.svggitea-azuread.svggitea-azureadv2.svggitea-bitbucket.svggitea-cargo.svggitea-chef.svggitea-codebase.svggitea-composer.svggitea-conan.svggitea-conda.svggitea-cran.svggitea-debian.svggitea-discord.svggitea-double-chevron-left.svggitea-double-chevron-right.svggitea-dropbox.svggitea-empty-checkbox.svggitea-exclamation.svggitea-facebook.svggitea-git.svggitea-gitbucket.svggitea-gitea.svggitea-gitlab.svggitea-go.svggitea-gogs.svggitea-google.svggitea-helm.svggitea-join.svggitea-lock-cog.svggitea-lock.svggitea-mastodon.svggitea-matrix.svggitea-maven.svggitea-microsoftonline.svggitea-nextcloud.svggitea-npm.svggitea-nuget.svggitea-onedev.svggitea-openid.svggitea-pub.svggitea-python.svggitea-rpm.svggitea-rubygems.svggitea-split.svggitea-swift.svggitea-twitter.svggitea-unlock.svggitea-vagrant.svggitea-vscode.svggitea-whitespace.svggitea-yandex.svgmaterial-invert-colors.svgmaterial-palette.svgocticon-accessibility-inset.svgocticon-accessibility.svgocticon-alert-fill.svgocticon-alert.svgocticon-apps.svgocticon-archive.svgocticon-arrow-both.svgocticon-arrow-down-left.svgocticon-arrow-down-right.svgocticon-arrow-down.svgocticon-arrow-left.svgocticon-arrow-right.svgocticon-arrow-switch.svgocticon-arrow-up-left.svgocticon-arrow-up-right.svgocticon-arrow-up.svgocticon-beaker.svgocticon-bell-fill.svgocticon-bell-slash.svgocticon-bell.svgocticon-blocked.svgocticon-bold.svgocticon-book.svgocticon-bookmark-slash.svgocticon-bookmark.svgocticon-briefcase.svgocticon-broadcast.svgocticon-browser.svgocticon-bug.svgocticon-cache.svgocticon-calendar.svgocticon-check-circle-fill.svgocticon-check-circle.svgocticon-check.svgocticon-checkbox.svgocticon-checklist.svgocticon-chevron-down.svgocticon-chevron-left.svgocticon-chevron-right.svgocticon-chevron-up.svgocticon-circle-slash.svgocticon-circle.svgocticon-clock-fill.svgocticon-clock.svgocticon-cloud-offline.svgocticon-cloud.svgocticon-code-of-conduct.svgocticon-code-review.svgocticon-code-square.svgocticon-code.svgocticon-codescan-checkmark.svgocticon-codescan.svgocticon-codespaces.svgocticon-columns.svgocticon-command-palette.svgocticon-comment-discussion.svgocticon-comment.svgocticon-container.svgocticon-copilot-error.svgocticon-copilot-warning.svgocticon-copilot.svgocticon-copy.svgocticon-cpu.svgocticon-credit-card.svgocticon-cross-reference.svgocticon-dash.svgocticon-database.svgocticon-dependabot.svgocticon-desktop-download.svgocticon-device-camera-video.svgocticon-device-camera.svgocticon-device-desktop.svgocticon-device-mobile.svgocticon-devices.svgocticon-diamond.svgocticon-diff-added.svgocticon-diff-ignored.svgocticon-diff-modified.svgocticon-diff-removed.svgocticon-diff-renamed.svgocticon-diff.svgocticon-discussion-closed.svgocticon-discussion-duplicate.svgocticon-discussion-outdated.svgocticon-dot-fill.svgocticon-dot.svgocticon-download.svgocticon-duplicate.svgocticon-ellipsis.svgocticon-eye-closed.svgocticon-eye.svgocticon-feed-discussion.svgocticon-feed-forked.svgocticon-feed-heart.svgocticon-feed-merged.svgocticon-feed-person.svgocticon-feed-repo.svgocticon-feed-rocket.svgocticon-feed-star.svgocticon-feed-tag.svgocticon-feed-trophy.svgocticon-file-added.svgocticon-file-badge.svgocticon-file-binary.svgocticon-file-code.svgocticon-file-diff.svgocticon-file-directory-fill.svgocticon-file-directory-open-fill.svgocticon-file-directory.svgocticon-file-moved.svgocticon-file-removed.svgocticon-file-submodule.svgocticon-file-symlink-file.svgocticon-file-zip.svgocticon-file.svgocticon-filter.svgocticon-fiscal-host.svgocticon-flame.svgocticon-fold-down.svgocticon-fold-up.svgocticon-fold.svgocticon-gear.svgocticon-gift.svgocticon-git-branch.svgocticon-git-commit.svgocticon-git-compare.svgocticon-git-merge-queue.svgocticon-git-merge.svgocticon-git-pull-request-closed.svgocticon-git-pull-request-draft.svgocticon-git-pull-request.svgocticon-globe.svgocticon-goal.svgocticon-grabber.svgocticon-graph.svgocticon-hash.svgocticon-heading.svgocticon-heart-fill.svgocticon-heart.svgocticon-history.svgocticon-home.svgocticon-horizontal-rule.svgocticon-hourglass.svgocticon-hubot.svgocticon-id-badge.svgocticon-image.svgocticon-inbox.svgocticon-infinity.svgocticon-info.svgocticon-issue-closed.svgocticon-issue-draft.svgocticon-issue-opened.svgocticon-issue-reopened.svgocticon-issue-tracked-by.svgocticon-issue-tracks.svgocticon-italic.svgocticon-iterations.svgocticon-kebab-horizontal.svgocticon-key-asterisk.svgocticon-key.svgocticon-law.svgocticon-light-bulb.svgocticon-link-external.svgocticon-link.svgocticon-list-ordered.svgocticon-list-unordered.svgocticon-location.svgocticon-lock.svgocticon-log.svgocticon-logo-gist.svgocticon-logo-github.svgocticon-mail.svgocticon-mark-github.svgocticon-markdown.svgocticon-megaphone.svgocticon-mention.svgocticon-meter.svgocticon-milestone.svgocticon-mirror.svgocticon-moon.svgocticon-mortar-board.svgocticon-move-to-bottom.svgocticon-move-to-end.svgocticon-move-to-start.svgocticon-move-to-top.svgocticon-multi-select.svgocticon-mute.svgocticon-no-entry.svgocticon-north-star.svgocticon-note.svgocticon-number.svgocticon-organization.svgocticon-package-dependencies.svgocticon-package-dependents.svgocticon-package.svgocticon-paintbrush.svgocticon-paper-airplane.svgocticon-paperclip.svgocticon-passkey-fill.svgocticon-paste.svgocticon-pencil.svgocticon-people.svgocticon-person-add.svgocticon-person-fill.svgocticon-person.svgocticon-pin-slash.svgocticon-pin.svgocticon-pivot-column.svgocticon-play.svgocticon-plug.svgocticon-plus-circle.svgocticon-plus.svgocticon-project-roadmap.svgocticon-project-symlink.svgocticon-project-template.svgocticon-project.svgocticon-pulse.svgocticon-question.svgocticon-quote.svgocticon-read.svgocticon-redo.svgocticon-rel-file-path.svgocticon-reply.svgocticon-repo-clone.svgocticon-repo-deleted.svgocticon-repo-forked.svgocticon-repo-locked.svgocticon-repo-pull.svgocticon-repo-push.svgocticon-repo-template.svgocticon-repo.svgocticon-report.svgocticon-rocket.svgocticon-rows.svgocticon-rss.svgocticon-ruby.svgocticon-screen-full.svgocticon-screen-normal.svgocticon-search.svgocticon-server.svgocticon-share-android.svgocticon-share.svgocticon-shield-check.svgocticon-shield-lock.svgocticon-shield-slash.svgocticon-shield-x.svgocticon-shield.svgocticon-sidebar-collapse.svgocticon-sidebar-expand.svgocticon-sign-in.svgocticon-sign-out.svgocticon-single-select.svgocticon-skip-fill.svgocticon-skip.svgocticon-sliders.svgocticon-smiley.svgocticon-sort-asc.svgocticon-sort-desc.svgocticon-sparkle-fill.svgocticon-sponsor-tiers.svgocticon-square-fill.svgocticon-square.svgocticon-squirrel.svgocticon-stack.svgocticon-star-fill.svgocticon-star.svgocticon-stop.svgocticon-stopwatch.svgocticon-strikethrough.svgocticon-sun.svgocticon-sync.svgocticon-tab-external.svgocticon-table.svgocticon-tag.svgocticon-tasklist.svgocticon-telescope-fill.svgocticon-telescope.svgocticon-terminal.svgocticon-three-bars.svgocticon-thumbsdown.svgocticon-thumbsup.svgocticon-tools.svgocticon-tracked-by-closed-completed.svgocticon-tracked-by-closed-not-planned.svgocticon-trash.svgocticon-triangle-down.svgocticon-triangle-left.svgocticon-triangle-right.svgocticon-triangle-up.svgocticon-trophy.svgocticon-typography.svgocticon-undo.svgocticon-unfold.svgocticon-unlink.svgocticon-unlock.svgocticon-unmute.svgocticon-unread.svgocticon-unverified.svgocticon-upload.svgocticon-verified.svgocticon-versions.svgocticon-video.svgocticon-webhook.svgocticon-workflow.svgocticon-x-circle-fill.svgocticon-x-circle.svgocticon-x.svgocticon-zap.svgocticon-zoom-in.svgocticon-zoom-out.svg
telegram.pngwechatwork.pngrouters
api
actions
packages
alpine
api.gocargo
chef
composer
conan
conda
container
cran
debian
generic
goproxy
helm
helper
maven
npm
nuget
pub
pypi
rpm
rubygems
swift
vagrant
v1
activitypub
admin
api.goauth.goauth_windows.gomisc
notify
org
packages
repo
action.goavatar.goblob.gobranch.gocollaborators.gofile.gofork.gogit_hook.gohook.gohook_test.goissue.goissue_attachment.goissue_comment.goissue_comment_attachment.goissue_dependency.goissue_label.goissue_pin.goissue_reaction.goissue_stopwatch.goissue_subscription.goissue_tracked_time.gokey.golabel.gomigrate.gomilestone.gomirror.gonotes.gopatch.gopull.gopull_review.gorelease.gorelease_attachment.gorelease_tags.gorepo.gorepo_test.gostar.gostatus.gosubscriber.gotag.goteams.gotopic.gotransfer.gotree.gowiki.go
swagger
user
action.goapp.goavatar.goemail.gofollower.gogpg_key.gohelper.gohook.gokey.gorepo.gostar.gouser.gowatch.go
utils
common
init.goinstall
private
actions.godefault_branch.gohook_pre_receive.gohook_verification.gohook_verification_test.gomain_test.go
tests
repos
repo1_hook_verification
HEADconfig
repo1_hook_verification_dummy_gpg_key.txtinfo
logs
objects
08
0b
13
23
2b
65
72
8b
93
97
9c
a9
ba
bb
cb
d7
e3
e6
e8
info
tmp_objdir-incoming-a21648
08
0b
13
23
8b
93
9c
a9
bb
cb
refs
heads
web
admin
admin.goapplications.goauths.goconfig.goemails.gohooks.gonotice.goorgs.gopackages.goqueue.gorepos.gostacktrace.gousers.gousers_test.go
auth.goauth
auth_windows.gobase.godevtest
explore
feed
githttp.gohealthcheck
home.gomisc
org
home.gomembers.goorg_labels.goprojects.goprojects_test.gosetting.gosetting_oauth2.gosetting_packages.goteams.go
repo
actions
attachment.goblame.gobranch.gocherry_pick.gocommit.gocompare.godownload.goeditor.goeditor_test.gohelper.gohelper_test.gohttp.gohttp_test.goissue.goissue_content_history.goissue_dependency.goissue_label.goissue_label_test.goissue_lock.goissue_pin.goissue_stopwatch.goissue_timetrack.goissue_watch.golfs.gomiddlewares.gomigrate.gomilestone.gopackages.gopatch.goprojects.goprojects_test.gopull.gopull_review.gorelease.gorelease_test.gorepo.gosearch.gosetting.gosetting
avatar.gocollaboration.godefault_branch.godeploy_key.gogit_hooks.gomain_test.gorunners.gosecrets.govariables.go
setting_protected_branch.gosettings_test.gotag.gotopic.goview.gowebhook.gowiki.gowiki_test.goshared
swagger_json.gouser
code.gohome.gohome_test.gonotification.gopackage.goprofile.gosearch.go
web.gowebfinger.gosetting
account.goaccount_test.goadopt.goapplications.gokeys.gooauth2_common.gopackages.goprofile.go
stop_watch.gotask.gosecurity
webhooks.goservices
actions
agit
asymkey
attachment
auth
auth.goauth_test.gobasic.gogroup.gohttpsign.gointerface.gomiddleware.gooauth2.goreverseproxy.gosession.gosignin.go
source
sspi_windows.gosspiauth_posix.gosspiauth_windows.gocontext
convert
attachment.goconvert.gogit_commit.goissue.goissue_comment.gomain_test.gomirror.gonotification.gopackage.gopull_review.gorelease.gorelease_test.gorepository.gosecret.gostatus.gouser.go
cron
externalaccount
forms
gitdiff
indexer
issue
assignee.gocomments.gocommit.gocommit_test.gocontent.goissue.golabel.golabel_test.gomain_test.gomilestone.gostatus.gotemplate.go
lfs
mailer
markup
migrations
dump.goerror.gogitea_downloader.gogitea_uploader.gogitea_uploader_test.gogithub.gogitlab.gomigrate.goupdate.go
mirror
notify
org
packages
pull
check.gocheck_test.gocomment.gocommit_status.gomain_test.gomerge.gopatch.gopull.goreview.gotemp_repo.goupdate.go
release
repository
adopt.go
archiver
branch.gocheck.gocollaboration.gocommit.gocreate.gocreate_test.godelete.godelete_test.gofiles
fork.golfs.golfs_test.gopush.gorepository.gotemplate.gotransfer.gotransfer_test.gosecrets
task
user
webhook
deliver.godeliver_test.godingtalk.godingtalk_test.godiscord.godiscord_test.gofeishu.gofeishu_test.gogeneral.gogeneral_test.gomain_test.gomatrix.gomatrix_test.gomsteams.gomsteams_test.gonotifier.gopackagist.gopackagist_test.gopayloader.goslack.goslack_test.gotelegram.gotelegram_test.gowebhook.gowechatwork.go
wiki
snap
templates
admin
applications
auth
base
config.tmplcron.tmpldashboard.tmplemails
hook_new.tmpllayout_head.tmplnavbar.tmplnotice.tmplorg
packages
queue.tmplqueue_manage.tmplrepo
stacktrace-row.tmplstacktrace.tmplstats.tmpluser
base
footer.tmplfooter_content.tmplhead.tmplhead_navbar.tmplhead_opengraph.tmplhead_script.tmplmodal_actions_confirm.tmplpaginate.tmpl
code
devtest
explore
code.tmplnavbar.tmplorganizations.tmplrepo_list.tmplrepo_search.tmplsearch.tmpluser_list.tmplusers.tmpl
home.tmplinstall.tmplmail
org
create.tmplheader.tmplhome.tmpl
member
menu.tmplprojects
settings
actions.tmplapplications.tmpldelete.tmplhook_new.tmpllabels.tmpllayout_head.tmplnavbar.tmploptions.tmpl
team
package
content
alpine.tmplcargo.tmplchef.tmplcomposer.tmplcomposer_dependencies.tmplconan.tmplconda.tmplcontainer.tmplcran.tmpldebian.tmplgeneric.tmplgo.tmplhelm.tmplmaven.tmplnpm.tmplnpm_dependencies.tmplnuget.tmplpub.tmplpypi.tmplrpm.tmplrubygems.tmplrubygems_dependencies.tmplswift.tmplvagrant.tmpl
metadata
alpine.tmplcargo.tmplchef.tmplcomposer.tmplconan.tmplconda.tmplcontainer.tmplcran.tmpldebian.tmplhelm.tmplmaven.tmplnpm.tmplnuget.tmplpub.tmplpypi.tmplrpm.tmplrubygems.tmplswift.tmplvagrant.tmpl
settings.tmplshared
view.tmplprojects
repo
actions
activity.tmplblame.tmplbranch
branch_dropdown.tmplcite
clone_buttons.tmplcode
commit_load_branches_and_tags.tmplcommit_page.tmplcommit_status.tmplcommit_statuses.tmplcommits.tmplcommits_list.tmplcommits_list_small.tmplcommits_table.tmplcreate.tmplcreate_helper.tmpldiff
blob_excerpt.tmplbox.tmplcomment_form.tmplcomments.tmplcompare.tmplconversation.tmplescape_title.tmplimage_diff.tmplnew_review.tmploptions_dropdown.tmplsection_code.tmplsection_split.tmplsection_unified.tmplstats.tmplwhitespace_dropdown.tmpl
editor
empty.tmplfile_info.tmplfind
forks.tmplgraph.tmplgraph
header.tmplhome.tmplicon.tmplissue
branch_selector_field.tmplcard.tmplchoose.tmplcomment_tab.tmpl
fields
filter_actions.tmplfilters.tmpllabel_precolors.tmpllabels.tmpllabels
edit_delete_label.tmpllabel.tmpllabel_archived.tmpllabel_list.tmpllabel_load_template.tmpllabel_new.tmpllabels_selector_field.tmpllabels_sidebar.tmpl
list.tmplmilestone
milestone_issues.tmplmilestone_new.tmplmilestones.tmplnavbar.tmplnew_form.tmplopenclose.tmplsearch.tmplview_content.tmplview_content
attachments.tmplcomments.tmplcomments_delete_time.tmplcontext_menu.tmplpull.tmplpull_merge_instruction.tmplreactions.tmplreference_issue_dialog.tmplshow_role.tmplsidebar.tmplupdate_branch_by_merge.tmpl
view_title.tmplmigrate
codebase.tmplgit.tmplgitbucket.tmplgitea.tmplgithub.tmplgitlab.tmplgogs.tmplmigrate.tmplmigrating.tmplonedev.tmploptions.tmpl
packages.tmplprojects
pulls
release
release_tag_header.tmplsearch.tmplsettings
actions.tmplbranches.tmplcollaboration.tmpldeploy_keys.tmplgithook_edit.tmplgithooks.tmpllayout_head.tmpllfs.tmpllfs_file.tmpllfs_file_find.tmpllfs_locks.tmpllfs_pointers.tmplnav.tmplnavbar.tmploptions.tmplprotected_branch.tmplpush_mirror_sync_modal.tmpltags.tmpl
shabox_badge.tmplsub_menu.tmplwebhook
tag
unicode_escape_prompt.tmplupload.tmpluser_cards.tmplview_file.tmplview_list.tmplwiki
shared
actions
combomarkdowneditor.tmplissuelist.tmplsearchbottom.tmplsearchinput.tmplsecrets
user
variables
webhook
status
swagger
user
auth
activate.tmplcaptcha.tmplchange_passwd_inner.tmplfinalize_openid.tmplforgot_passwd.tmplgrant.tmplgrant_error.tmpllink_account.tmplprohibit_login.tmplreset_passwd.tmplsignin_inner.tmplsignin_navbar.tmplsignin_openid.tmplsignup.tmplsignup_inner.tmplsignup_openid_connect.tmplsignup_openid_navbar.tmplsignup_openid_register.tmpltwofa.tmpltwofa_scratch.tmplwebauthn.tmplwebauthn_error.tmpl
code.tmpldashboard
heatmap.tmplnotification
overview
profile.tmplsettings
account.tmplactions.tmplappearance.tmplapplications.tmplapplications_oauth2.tmplapplications_oauth2_edit_form.tmplapplications_oauth2_list.tmplgrants_oauth2.tmplhook_new.tmplkeys_gpg.tmplkeys_principal.tmplkeys_ssh.tmpllayout_head.tmplnavbar.tmplorganization.tmplpackages.tmplprofile.tmplrepos.tmpl
security
webhook
tests
e2e
gitea-repositories-meta
org3
repo5.git
user2
commitsonpr.git
HEADconfigdescription
info
logs
objects
0a
0c
10
19
1e
23
28
35
38
3e
4b
4c
52
53
70
74
7e
81
83
87
92
96
97
c5
c7
cb
d1
d2
d6
e1
ec
info
refs
repo2.git
refs
tags
user27
template1.git
objects
2a
3d
83
99
af
b9
c5
e6
refs
heads
user3
repo3.git
repo5.git
integration
actions_trigger_test.goadmin_user_test.goapi_actions_artifact_test.goapi_activitypub_person_test.goapi_admin_test.goapi_branch_test.goapi_comment_attachment_test.goapi_comment_test.goapi_httpsig_test.goapi_issue_config_test.goapi_issue_reaction_test.goapi_issue_test.goapi_keys_test.goapi_nodeinfo_test.goapi_notification_test.goapi_org_avatar_test.goapi_org_test.goapi_packages_chef_test.goapi_packages_generic_test.goapi_packages_nuget_test.goapi_packages_rpm_test.goapi_packages_test.goapi_pull_commits_test.goapi_pull_review_test.goapi_releases_test.goapi_repo_avatar_test.goapi_repo_branch_test.goapi_repo_edit_test.goapi_repo_file_create_test.goapi_repo_file_delete_test.goapi_repo_file_helpers.goapi_repo_file_update_test.goapi_repo_files_change_test.goapi_repo_get_contents_list_test.goapi_repo_get_contents_test.goapi_repo_git_blobs_test.goapi_repo_git_notes_test.goapi_repo_git_trees_test.goapi_repo_secrets_test.goapi_repo_teams_test.goapi_repo_test.goapi_repo_topic_test.goapi_token_test.goapi_twofa_test.goapi_user_avatar_test.goapi_user_info_test.goapi_user_org_perm_test.goapi_user_orgs_test.goapi_user_search_test.goapi_user_secrets_test.goattachment_test.goauth_ldap_test.goavatar.pngbenchmarks_test.gobranches_test.gocmd_keys_test.gocreate_no_session_test.goempty_repo_test.gogit_helper_for_declarative_test.gogpg_git_test.goincoming_email_test.gointegration_test.goissue_test.golinks_test.gomirror_pull_test.gomirror_push_test.goorg_project_test.goorg_team_invite_test.goorg_test.goprivateactivity_test.goproject_test.gopull_create_test.gopull_diff_test.gopull_merge_test.gopull_status_test.gopull_update_test.gorelease_test.gorename_branch_test.gorepo_branch_test.gorepo_commits_test.gorepo_fork_test.gorepo_generate_test.gorepo_test.gorepo_watch_test.gorepofiles_change_test.gosetting_test.gosignout_test.gotimetracking_test.gouser_test.go
mssql.ini.tmplmysql.ini.tmplmysql8.ini.tmplpgsql.ini.tmplsqlite.ini.tmpltest_utils.gotestdata
data
attachments
web_src
css
actions.cssadmin.cssbase.css
chroma
dashboard.csseditor
explore.cssfeatures
form.csshelpers.cssindex.cssmarkup
modules
animations.cssbreadcrumb.cssbutton.csscard.cssdivider.cssflexcontainer.cssmodal.cssnavbar.cssnormalize.cssselect.csstippy.csstoast.css
org.cssrepo.cssrepo
review.cssshared
standalone
themes
user.cssfomantic
js
bootstrap.jsindex.js
components
.eslintrc.yamlActionRunStatus.vueActivityHeatmap.vueContextPopup.vueDashboardRepoList.vueDiffCommitSelector.vueDiffFileList.vueDiffFileTree.vueDiffFileTreeItem.vuePullRequestMergeForm.vueRepoActionView.test.jsRepoActionView.vueRepoActivityTopAuthors.vueRepoBranchTagSelector.vueScopedAccessTokenSelector.vue
features
admin
citation.jsclipboard.jscommon-global.jscommon-issue-list.jscommon-issue-list.test.jscomp
copycontent.jsemoji.jsheatmap.jsimagediff.jsinstall.jspull-view-file.jsrepo-code.jsrepo-code.test.jsrepo-commit.jsrepo-common.jsrepo-diff-commit.jsrepo-diff-commitselect.jsrepo-diff.jsrepo-editor.jsrepo-findfile.test.jsrepo-home.jsrepo-issue-content.jsrepo-issue-list.jsrepo-issue.jsrepo-legacy.jsrepo-migrate.jsrepo-migration.jsrepo-projects.jsrepo-settings.jstribute.jsuser-auth-webauthn.jsmarkup
modules
render
standalone
svg.jssvg.test.jstest
utils.jsutils.test.jsutils
vendor
webcomponents
@ -13,42 +13,46 @@ groups:
|
||||
-
|
||||
name: BREAKING
|
||||
labels:
|
||||
- pr/breaking
|
||||
- kind/breaking
|
||||
-
|
||||
name: SECURITY
|
||||
labels:
|
||||
- topic/security
|
||||
- kind/security
|
||||
-
|
||||
name: FEATURES
|
||||
labels:
|
||||
- type/feature
|
||||
- kind/feature
|
||||
-
|
||||
name: API
|
||||
labels:
|
||||
- modifies/api
|
||||
- kind/api
|
||||
-
|
||||
name: ENHANCEMENTS
|
||||
labels:
|
||||
- type/enhancement
|
||||
- type/refactoring
|
||||
- topic/ui
|
||||
- kind/enhancement
|
||||
- kind/refactor
|
||||
- kind/ui
|
||||
-
|
||||
name: BUGFIXES
|
||||
labels:
|
||||
- type/bug
|
||||
- kind/bug
|
||||
-
|
||||
name: TESTING
|
||||
labels:
|
||||
- type/testing
|
||||
- kind/testing
|
||||
-
|
||||
name: TRANSLATION
|
||||
labels:
|
||||
- kind/translation
|
||||
-
|
||||
name: BUILD
|
||||
labels:
|
||||
- topic/build
|
||||
- topic/code-linting
|
||||
- kind/build
|
||||
- kind/lint
|
||||
-
|
||||
name: DOCS
|
||||
labels:
|
||||
- type/docs
|
||||
- kind/docs
|
||||
-
|
||||
name: MISC
|
||||
default: true
|
||||
|
@ -1,38 +0,0 @@
|
||||
{
|
||||
"name": "Gitea DevContainer",
|
||||
"image": "mcr.microsoft.com/devcontainers/go:1.21-bullseye",
|
||||
"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-contrib/features/poetry:2": {},
|
||||
"ghcr.io/devcontainers/features/python:1": {}
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"settings": {},
|
||||
// same extensions as Gitpod, should match /.gitpod.yml
|
||||
"extensions": [
|
||||
"editorconfig.editorconfig",
|
||||
"dbaeumer.vscode-eslint",
|
||||
"golang.go",
|
||||
"stylelint.vscode-stylelint",
|
||||
"DavidAnson.vscode-markdownlint",
|
||||
"Vue.volar",
|
||||
"ms-azuretools.vscode-docker",
|
||||
"zixuanchen.vitest-explorer",
|
||||
"qwtel.sqlite-viewer",
|
||||
"GitHub.vscode-pull-request-github"
|
||||
]
|
||||
}
|
||||
},
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"label": "Gitea Web",
|
||||
"onAutoForward": "notify"
|
||||
}
|
||||
},
|
||||
"postCreateCommand": "make deps"
|
||||
}
|
@ -75,10 +75,10 @@ cpu.out
|
||||
/yarn.lock
|
||||
/yarn-error.log
|
||||
/npm-debug.log*
|
||||
/public/assets/js
|
||||
/public/assets/css
|
||||
/public/assets/fonts
|
||||
/public/assets/img/webpack
|
||||
/public/js
|
||||
/public/css
|
||||
/public/fonts
|
||||
/public/img/webpack
|
||||
/vendor
|
||||
/web_src/fomantic/node_modules
|
||||
/web_src/fomantic/build/*
|
||||
|
426
.drone.yml
Normal file
426
.drone.yml
Normal file
File diff suppressed because it is too large
Load Diff
@ -11,6 +11,7 @@ parserOptions:
|
||||
plugins:
|
||||
- "@eslint-community/eslint-plugin-eslint-comments"
|
||||
- eslint-plugin-array-func
|
||||
- eslint-plugin-custom-elements
|
||||
- eslint-plugin-import
|
||||
- eslint-plugin-jquery
|
||||
- eslint-plugin-no-jquery
|
||||
@ -18,18 +19,16 @@ plugins:
|
||||
- eslint-plugin-regexp
|
||||
- eslint-plugin-sonarjs
|
||||
- eslint-plugin-unicorn
|
||||
- eslint-plugin-vitest-globals
|
||||
- eslint-plugin-wc
|
||||
|
||||
env:
|
||||
es2024: true
|
||||
es2022: true
|
||||
node: true
|
||||
|
||||
globals:
|
||||
__webpack_public_path__: true
|
||||
|
||||
overrides:
|
||||
- files: ["web_src/**/*"]
|
||||
globals:
|
||||
__webpack_public_path__: true
|
||||
process: false # https://github.com/webpack/webpack/issues/15833
|
||||
- files: ["web_src/**/*", "docs/**/*"]
|
||||
env:
|
||||
browser: true
|
||||
@ -46,12 +45,6 @@ overrides:
|
||||
- files: ["*.config.*"]
|
||||
rules:
|
||||
import/no-unused-modules: [0]
|
||||
- files: ["**/*.test.*", "web_src/js/test/setup.js"]
|
||||
env:
|
||||
vitest-globals/env: true
|
||||
- files: ["web_src/js/modules/fetch.js", "web_src/js/standalone/**/*"]
|
||||
rules:
|
||||
no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement, SequenceExpression]
|
||||
|
||||
rules:
|
||||
"@eslint-community/eslint-comments/disable-enable-pair": [2]
|
||||
@ -91,6 +84,19 @@ rules:
|
||||
consistent-this: [0]
|
||||
constructor-super: [2]
|
||||
curly: [0]
|
||||
custom-elements/expose-class-on-global: [0]
|
||||
custom-elements/extends-correct-class: [2]
|
||||
custom-elements/file-name-matches-element: [2]
|
||||
custom-elements/no-constructor: [2]
|
||||
custom-elements/no-customized-built-in-elements: [2]
|
||||
custom-elements/no-dom-traversal-in-attributechangedcallback: [2]
|
||||
custom-elements/no-dom-traversal-in-connectedcallback: [2]
|
||||
custom-elements/no-exports-with-element: [2]
|
||||
custom-elements/no-method-prefixed-with-on: [2]
|
||||
custom-elements/no-unchecked-define: [0]
|
||||
custom-elements/one-element-per-file: [0]
|
||||
custom-elements/tag-name-matches-class: [2]
|
||||
custom-elements/valid-tag-name: [2]
|
||||
default-case-last: [2]
|
||||
default-case: [0]
|
||||
default-param-last: [0]
|
||||
@ -149,7 +155,7 @@ rules:
|
||||
import/no-restricted-paths: [0]
|
||||
import/no-self-import: [2]
|
||||
import/no-unassigned-import: [0]
|
||||
import/no-unresolved: [2, {commonjs: true, ignore: ["\\?.+$", ^vitest/]}]
|
||||
import/no-unresolved: [2, {commonjs: true, ignore: ["\\?.+$"]}]
|
||||
import/no-unused-modules: [2, {unusedExports: true}]
|
||||
import/no-useless-path-segments: [2, {commonjs: true}]
|
||||
import/no-webpack-loader-syntax: [2]
|
||||
@ -413,8 +419,9 @@ rules:
|
||||
no-restricted-exports: [0]
|
||||
no-restricted-globals: [2, addEventListener, blur, close, closed, confirm, defaultStatus, defaultstatus, error, event, external, find, focus, frameElement, frames, history, innerHeight, innerWidth, isFinite, isNaN, length, location, 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, self, status, statusbar, stop, toolbar, top, __dirname, __filename]
|
||||
no-restricted-imports: [0]
|
||||
no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement, SequenceExpression, {selector: "CallExpression[callee.name='fetch']", message: "use modules/fetch.js instead"}]
|
||||
no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement]
|
||||
no-return-assign: [0]
|
||||
no-return-await: [0]
|
||||
no-script-url: [2]
|
||||
no-self-assign: [2, {props: true}]
|
||||
no-self-compare: [2]
|
||||
@ -476,7 +483,7 @@ rules:
|
||||
prefer-exponentiation-operator: [2]
|
||||
prefer-named-capture-group: [0]
|
||||
prefer-numeric-literals: [2]
|
||||
prefer-object-has-own: [2]
|
||||
prefer-object-has-own: [0]
|
||||
prefer-object-spread: [2]
|
||||
prefer-promise-reject-errors: [2, {allowEmptyReject: false}]
|
||||
prefer-regex-literals: [2]
|
||||
@ -658,6 +665,7 @@ rules:
|
||||
unicorn/no-unnecessary-await: [2]
|
||||
unicorn/no-unreadable-array-destructuring: [0]
|
||||
unicorn/no-unreadable-iife: [2]
|
||||
unicorn/no-unsafe-regex: [0]
|
||||
unicorn/no-unused-properties: [2]
|
||||
unicorn/no-useless-fallback-in-spread: [2]
|
||||
unicorn/no-useless-length-check: [2]
|
||||
@ -684,7 +692,7 @@ rules:
|
||||
unicorn/prefer-dom-node-remove: [2]
|
||||
unicorn/prefer-dom-node-text-content: [2]
|
||||
unicorn/prefer-event-target: [2]
|
||||
unicorn/prefer-export-from: [0]
|
||||
unicorn/prefer-export-from: [2, {ignoreUsedVariables: true}]
|
||||
unicorn/prefer-includes: [2]
|
||||
unicorn/prefer-json-parse-buffer: [0]
|
||||
unicorn/prefer-keyboard-event-key: [2]
|
||||
@ -730,27 +738,14 @@ rules:
|
||||
valid-typeof: [2, {requireStringLiterals: true}]
|
||||
vars-on-top: [0]
|
||||
wc/attach-shadow-constructor: [2]
|
||||
wc/define-tag-after-class-definition: [0]
|
||||
wc/expose-class-on-global: [0]
|
||||
wc/file-name-matches-element: [2]
|
||||
wc/guard-define-call: [0]
|
||||
wc/guard-super-call: [2]
|
||||
wc/max-elements-per-file: [0]
|
||||
wc/no-child-traversal-in-attributechangedcallback: [2]
|
||||
wc/no-child-traversal-in-connectedcallback: [2]
|
||||
wc/no-closed-shadow-root: [2]
|
||||
wc/no-constructor-attributes: [2]
|
||||
wc/no-constructor-params: [2]
|
||||
wc/no-constructor: [2]
|
||||
wc/no-customized-built-in-elements: [2]
|
||||
wc/no-exports-with-element: [2]
|
||||
wc/no-invalid-element-name: [2]
|
||||
wc/no-invalid-extends: [2]
|
||||
wc/no-method-prefixed-with-on: [2]
|
||||
wc/no-invalid-element-name: [0] # covered by custom-elements/valid-tag-name
|
||||
wc/no-self-class: [2]
|
||||
wc/no-typos: [2]
|
||||
wc/require-listener-teardown: [2]
|
||||
wc/tag-name-matches-class: [2]
|
||||
wrap-iife: [2, inside]
|
||||
wrap-regex: [0]
|
||||
yield-star-spacing: [2, after]
|
||||
|
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1,7 +1,7 @@
|
||||
* text=auto eol=lf
|
||||
*.tmpl linguist-language=Handlebars
|
||||
/assets/*.json linguist-generated
|
||||
/public/assets/img/svg/*.svg linguist-generated
|
||||
/public/img/svg/*.svg linguist-generated
|
||||
/templates/swagger/v1_json.tmpl linguist-generated
|
||||
/vendor/** -text -eol linguist-vendored
|
||||
/web_src/fomantic/build/** linguist-generated
|
||||
|
@ -5,7 +5,7 @@
|
||||
2. Please ask questions or configuration/deploy problems on our Discord
|
||||
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
|
||||
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)
|
||||
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq)
|
||||
5. Please give all relevant information below for bug reports, because
|
||||
incomplete details will be handled as an invalid report.
|
||||
-->
|
||||
@ -26,7 +26,7 @@
|
||||
- [ ] No
|
||||
- Log gist:
|
||||
<!-- It really is important to provide pertinent logs -->
|
||||
<!-- Please read https://docs.gitea.com/administration/logging-config#collecting-logs-for-help -->
|
||||
<!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems -->
|
||||
<!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini -->
|
||||
|
||||
## Description
|
||||
|
179
.github/ISSUE_TEMPLATE/bug-report.yaml
vendored
179
.github/ISSUE_TEMPLATE/bug-report.yaml
vendored
@ -1,91 +1,94 @@
|
||||
name: Bug Report
|
||||
description: Found something you weren't expecting? Report it here!
|
||||
labels: ["kind/bug"]
|
||||
labels: kind/bug
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue.
|
||||
- type: markdown
|
||||
attributes:
|
||||
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).
|
||||
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)
|
||||
5. It's really important to provide pertinent details and logs (https://docs.gitea.com/help/support),
|
||||
incomplete details will be handled as an invalid report.
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: |
|
||||
Please provide a description of your issue here, with a URL if you were able to reproduce the issue (see below)
|
||||
If you are using a proxy or a CDN (e.g. Cloudflare) in front of Gitea, please disable the proxy/CDN fully and access Gitea directly to confirm the issue still persists without those services.
|
||||
- type: input
|
||||
id: gitea-ver
|
||||
attributes:
|
||||
label: Gitea Version
|
||||
description: Gitea version (or commit reference) of your instance
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: can-reproduce
|
||||
attributes:
|
||||
label: Can you reproduce the bug on the Gitea demo site?
|
||||
description: |
|
||||
If so, please provide a URL in the Description field
|
||||
URL of Gitea demo: https://try.gitea.io
|
||||
options:
|
||||
- "Yes"
|
||||
- "No"
|
||||
validations:
|
||||
required: true
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
It's really important to provide pertinent logs
|
||||
Please read https://docs.gitea.com/administration/logging-config#collecting-logs-for-help
|
||||
In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini
|
||||
- type: input
|
||||
id: logs
|
||||
attributes:
|
||||
label: Log Gist
|
||||
description: Please provide a gist URL of your logs, with any sensitive information (e.g. API keys) removed/hidden
|
||||
- type: textarea
|
||||
id: screenshots
|
||||
attributes:
|
||||
label: Screenshots
|
||||
description: If this issue involves the Web Interface, please provide one or more screenshots
|
||||
- type: input
|
||||
id: git-ver
|
||||
attributes:
|
||||
label: Git Version
|
||||
description: The version of git running on the server
|
||||
- type: input
|
||||
id: os-ver
|
||||
attributes:
|
||||
label: Operating System
|
||||
description: The operating system you are using to run Gitea
|
||||
- type: textarea
|
||||
id: run-info
|
||||
attributes:
|
||||
label: How are you running Gitea?
|
||||
description: |
|
||||
Please include information on whether you built Gitea yourself, used one of our downloads, are using https://try.gitea.io or are using some other package
|
||||
Please also tell us how you are running Gitea, e.g. if it is being run from docker, a command-line, systemd etc.
|
||||
If you are using a package or systemd tell us what distribution you are using
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: database
|
||||
attributes:
|
||||
label: Database
|
||||
description: What database system are you running?
|
||||
options:
|
||||
- PostgreSQL
|
||||
- MySQL/MariaDB
|
||||
- MSSQL
|
||||
- SQLite
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue.
|
||||
- type: markdown
|
||||
attributes:
|
||||
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).
|
||||
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.io/en-us/faq)
|
||||
5. Please give all relevant information below for bug reports, because
|
||||
incomplete details will be handled as an invalid report.
|
||||
6. In particular it's really important to provide pertinent logs. You must give us DEBUG level logs.
|
||||
Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems
|
||||
In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: |
|
||||
Please provide a description of your issue here, with a URL if you were able to reproduce the issue (see below)
|
||||
If you are using a proxy or a CDN (e.g. Cloudflare) in front of Gitea, please disable the proxy/CDN fully and access Gitea directly to confirm the issue still persists without those services.
|
||||
- type: input
|
||||
id: gitea-ver
|
||||
attributes:
|
||||
label: Gitea Version
|
||||
description: Gitea version (or commit reference) of your instance
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: can-reproduce
|
||||
attributes:
|
||||
label: Can you reproduce the bug on the Gitea demo site?
|
||||
description: |
|
||||
If so, please provide a URL in the Description field
|
||||
URL of Gitea demo: https://try.gitea.io
|
||||
options:
|
||||
- "Yes"
|
||||
- "No"
|
||||
validations:
|
||||
required: true
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
It's really important to provide pertinent logs
|
||||
Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems
|
||||
In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini
|
||||
- type: input
|
||||
id: logs
|
||||
attributes:
|
||||
label: Log Gist
|
||||
description: Please provide a gist URL of your logs, with any sensitive information (e.g. API keys) removed/hidden
|
||||
- type: textarea
|
||||
id: screenshots
|
||||
attributes:
|
||||
label: Screenshots
|
||||
description: If this issue involves the Web Interface, please provide one or more screenshots
|
||||
- type: input
|
||||
id: git-ver
|
||||
attributes:
|
||||
label: Git Version
|
||||
description: The version of git running on the server
|
||||
- type: input
|
||||
id: os-ver
|
||||
attributes:
|
||||
label: Operating System
|
||||
description: The operating system you are using to run Gitea
|
||||
- type: textarea
|
||||
id: run-info
|
||||
attributes:
|
||||
label: How are you running Gitea?
|
||||
description: |
|
||||
Please include information on whether you built Gitea yourself, used one of our downloads, are using https://try.gitea.io or are using some other package
|
||||
Please also tell us how you are running Gitea, e.g. if it is being run from docker, a command-line, systemd etc.
|
||||
If you are using a package or systemd tell us what distribution you are using
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: database
|
||||
attributes:
|
||||
label: Database
|
||||
description: What database system are you running?
|
||||
options:
|
||||
- PostgreSQL
|
||||
- MySQL
|
||||
- MSSQL
|
||||
- SQLite
|
||||
|
4
.github/ISSUE_TEMPLATE/config.yml
vendored
4
.github/ISSUE_TEMPLATE/config.yml
vendored
@ -8,9 +8,9 @@ contact_links:
|
||||
about: Please ask questions and discuss configuration or deployment problems here.
|
||||
- name: Discourse Forum
|
||||
url: https://discourse.gitea.io
|
||||
about: Questions and configuration or deployment problems can also be discussed on our forum.
|
||||
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
|
||||
url: https://docs.gitea.io/en-us/faq
|
||||
about: Please check if your question isn't mentioned here.
|
||||
- name: Crowdin Translations
|
||||
url: https://crowdin.com/project/gitea
|
||||
|
42
.github/ISSUE_TEMPLATE/feature-request.yaml
vendored
42
.github/ISSUE_TEMPLATE/feature-request.yaml
vendored
@ -1,24 +1,24 @@
|
||||
name: Feature Request
|
||||
description: Got an idea for a feature that Gitea doesn't have currently? Submit your idea here!
|
||||
labels: ["kind/proposal"]
|
||||
labels: ["kind/feature", "kind/proposal"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
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).
|
||||
3. Please take a moment to check that your feature hasn't already been suggested.
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Feature Description
|
||||
placeholder: |
|
||||
I think it would be great if Gitea had...
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: screenshots
|
||||
attributes:
|
||||
label: Screenshots
|
||||
description: If you can, provide screenshots of an implementation on another site e.g. GitHub
|
||||
- type: markdown
|
||||
attributes:
|
||||
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).
|
||||
3. Please take a moment to check that your feature hasn't already been suggested.
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Feature Description
|
||||
placeholder: |
|
||||
I think it would be great if Gitea had...
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: screenshots
|
||||
attributes:
|
||||
label: Screenshots
|
||||
description: If you can, provide screenshots of an implementation on another site e.g. GitHub
|
||||
|
124
.github/ISSUE_TEMPLATE/ui.bug-report.yaml
vendored
124
.github/ISSUE_TEMPLATE/ui.bug-report.yaml
vendored
@ -2,65 +2,65 @@ name: Web Interface Bug Report
|
||||
description: Something doesn't look quite as it should? Report it here!
|
||||
labels: ["kind/bug", "kind/ui"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue.
|
||||
- type: markdown
|
||||
attributes:
|
||||
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).
|
||||
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
|
||||
incomplete details will be handled as an invalid report.
|
||||
6. In particular it's really important to provide pertinent logs. If you are certain that this is a javascript
|
||||
error, show us the javascript console. If the error appears to relate to Gitea the server you must also give us
|
||||
DEBUG level logs. (See https://docs.gitea.com/administration/logging-config#collecting-logs-for-help)
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: |
|
||||
Please provide a description of your issue here, with a URL if you were able to reproduce the issue (see below)
|
||||
If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please disable the proxy/CDN fully and connect to gitea directly to confirm the issue still persists without those services.
|
||||
- type: textarea
|
||||
id: screenshots
|
||||
attributes:
|
||||
label: Screenshots
|
||||
description: Please provide at least 1 screenshot showing the issue.
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: gitea-ver
|
||||
attributes:
|
||||
label: Gitea Version
|
||||
description: Gitea version (or commit reference) your instance is running
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: can-reproduce
|
||||
attributes:
|
||||
label: Can you reproduce the bug on the Gitea demo site?
|
||||
description: |
|
||||
If so, please provide a URL in the Description field
|
||||
URL of Gitea demo: https://try.gitea.io
|
||||
options:
|
||||
- "Yes"
|
||||
- "No"
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: os-ver
|
||||
attributes:
|
||||
label: Operating System
|
||||
description: The operating system you are using to access Gitea
|
||||
- type: input
|
||||
id: browser-ver
|
||||
attributes:
|
||||
label: Browser Version
|
||||
description: The browser and version that you are using to access Gitea
|
||||
validations:
|
||||
required: true
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue.
|
||||
- type: markdown
|
||||
attributes:
|
||||
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).
|
||||
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.io/en-us/faq)
|
||||
5. Please give all relevant information below for bug reports, because
|
||||
incomplete details will be handled as an invalid report.
|
||||
6. In particular it's really important to provide pertinent logs. If you are certain that this is a javascript
|
||||
error, show us the javascript console. If the error appears to relate to Gitea the server you must also give us
|
||||
DEBUG level logs. (See https://docs.gitea.io/en-us/logging-configuration/#debugging-problems)
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: |
|
||||
Please provide a description of your issue here, with a URL if you were able to reproduce the issue (see below)
|
||||
If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please disable the proxy/CDN fully and connect to gitea directly to confirm the issue still persists without those services.
|
||||
- type: textarea
|
||||
id: screenshots
|
||||
attributes:
|
||||
label: Screenshots
|
||||
description: Please provide at least 1 screenshot showing the issue.
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: gitea-ver
|
||||
attributes:
|
||||
label: Gitea Version
|
||||
description: Gitea version (or commit reference) your instance is running
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: can-reproduce
|
||||
attributes:
|
||||
label: Can you reproduce the bug on the Gitea demo site?
|
||||
description: |
|
||||
If so, please provide a URL in the Description field
|
||||
URL of Gitea demo: https://try.gitea.io
|
||||
options:
|
||||
- "Yes"
|
||||
- "No"
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: os-ver
|
||||
attributes:
|
||||
label: Operating System
|
||||
description: The operating system you are using to access Gitea
|
||||
- type: input
|
||||
id: browser-ver
|
||||
attributes:
|
||||
label: Browser Version
|
||||
description: The browser and version that you are using to access Gitea
|
||||
validations:
|
||||
required: true
|
||||
|
5
.github/actionlint.yaml
vendored
5
.github/actionlint.yaml
vendored
@ -1,5 +0,0 @@
|
||||
self-hosted-runner:
|
||||
labels:
|
||||
- actuated-4cpu-8gb
|
||||
- actuated-4cpu-16gb
|
||||
- nscloud
|
36
.github/labeler.yml
vendored
36
.github/labeler.yml
vendored
@ -1,36 +0,0 @@
|
||||
modifies/docs:
|
||||
- "**/*.md"
|
||||
- "docs/**"
|
||||
|
||||
modifies/frontend:
|
||||
- "web_src/**/*"
|
||||
|
||||
modifies/templates:
|
||||
- all: ["templates/**", "!templates/swagger/v1_json.tmpl"]
|
||||
|
||||
modifies/api:
|
||||
- "routers/api/**"
|
||||
- "templates/swagger/v1_json.tmpl"
|
||||
|
||||
modifies/cli:
|
||||
- "cmd/**"
|
||||
|
||||
modifies/translation:
|
||||
- "options/locale/*.ini"
|
||||
|
||||
modifies/migrations:
|
||||
- "models/migrations/**/*"
|
||||
|
||||
modifies/internal:
|
||||
- "Makefile"
|
||||
- "Dockerfile"
|
||||
- "Dockerfile.rootless"
|
||||
- "docker/**"
|
||||
- "webpack.config.js"
|
||||
- ".eslintrc.yaml"
|
||||
- ".golangci.yml"
|
||||
- ".markdownlint.yaml"
|
||||
- ".spectral.yaml"
|
||||
- ".stylelintrc.yaml"
|
||||
- ".yamllint.yaml"
|
||||
- ".github/**"
|
6
.github/stale.yml
vendored
6
.github/stale.yml
vendored
@ -9,8 +9,8 @@ daysUntilClose: 14
|
||||
|
||||
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
|
||||
exemptLabels:
|
||||
- status/blocked
|
||||
- kind/security
|
||||
- status/blocked
|
||||
- kind/security
|
||||
- lgtm/done
|
||||
- reviewed/confirmed
|
||||
- priority/critical
|
||||
@ -27,7 +27,7 @@ staleLabel: stale
|
||||
|
||||
# Comment to post when marking as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale because it has not had recent activity.
|
||||
This issue has been automatically marked as stale because it has not had recent activity.
|
||||
I am here to help clear issues left open even if solved or waiting for more insight.
|
||||
This issue will be closed if no further activity occurs during the next 2 weeks.
|
||||
If the issue is still valid just add a comment to keep it alive.
|
||||
|
7
.github/workflows/cron-licenses.yml
vendored
7
.github/workflows/cron-licenses.yml
vendored
@ -10,11 +10,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'go-gitea/gitea'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
check-latest: true
|
||||
go-version: ">=1.20.1"
|
||||
- run: make generate-license generate-gitignore
|
||||
timeout-minutes: 40
|
||||
- name: push translations to repo
|
||||
|
4
.github/workflows/cron-translations.yml
vendored
4
.github/workflows/cron-translations.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'go-gitea/gitea'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- name: download from crowdin
|
||||
uses: docker://jonasfranz/crowdin
|
||||
env:
|
||||
@ -35,7 +35,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'go-gitea/gitea'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- name: push translations to crowdin
|
||||
uses: docker://jonasfranz/crowdin
|
||||
env:
|
||||
|
36
.github/workflows/disk-clean.yml
vendored
36
.github/workflows/disk-clean.yml
vendored
@ -1,36 +0,0 @@
|
||||
name: disk-clean
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
triage:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# FIXME: https://github.com/jlumbroso/free-disk-space/issues/17
|
||||
- name: same as 'large-packages' but without 'google-cloud-sdk'
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get remove -y '^dotnet-.*'
|
||||
sudo apt-get remove -y '^llvm-.*'
|
||||
sudo apt-get remove -y 'php.*'
|
||||
sudo apt-get remove -y '^mongodb-.*'
|
||||
sudo apt-get remove -y '^mysql-.*'
|
||||
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri
|
||||
sudo apt-get autoremove -y
|
||||
sudo apt-get clean
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: false
|
||||
|
||||
# all of these default to true, but feel free to set to
|
||||
# "false" if necessary for your workflow
|
||||
android: true
|
||||
dotnet: true
|
||||
haskell: true
|
||||
large-packages: false
|
||||
docker-images: false
|
||||
swap-storage: true
|
60
.github/workflows/files-changed.yml
vendored
60
.github/workflows/files-changed.yml
vendored
@ -4,94 +4,50 @@ on:
|
||||
workflow_call:
|
||||
outputs:
|
||||
backend:
|
||||
description: "whether backend files changed"
|
||||
value: ${{ jobs.detect.outputs.backend }}
|
||||
frontend:
|
||||
description: "whether frontend files changed"
|
||||
value: ${{ jobs.detect.outputs.frontend }}
|
||||
docs:
|
||||
description: "whether docs files changed"
|
||||
value: ${{ jobs.detect.outputs.docs }}
|
||||
actions:
|
||||
description: "whether actions files changed"
|
||||
value: ${{ jobs.detect.outputs.actions }}
|
||||
templates:
|
||||
value: ${{ jobs.detect.outputs.templates }}
|
||||
docker:
|
||||
value: ${{ jobs.detect.outputs.docker }}
|
||||
swagger:
|
||||
value: ${{ jobs.detect.outputs.swagger }}
|
||||
yaml:
|
||||
value: ${{ jobs.detect.outputs.yaml }}
|
||||
|
||||
jobs:
|
||||
detect:
|
||||
name: detect which files changed
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 3
|
||||
# Map a step output to a job output
|
||||
outputs:
|
||||
backend: ${{ steps.changes.outputs.backend }}
|
||||
frontend: ${{ steps.changes.outputs.frontend }}
|
||||
docs: ${{ steps.changes.outputs.docs }}
|
||||
actions: ${{ steps.changes.outputs.actions }}
|
||||
templates: ${{ steps.changes.outputs.templates }}
|
||||
docker: ${{ steps.changes.outputs.docker }}
|
||||
swagger: ${{ steps.changes.outputs.swagger }}
|
||||
yaml: ${{ steps.changes.outputs.yaml }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: changes
|
||||
with:
|
||||
filters: |
|
||||
backend:
|
||||
- "**/*.go"
|
||||
- "templates/**/*.tmpl"
|
||||
- "assets/emoji.json"
|
||||
- "**/*.tmpl"
|
||||
- "go.mod"
|
||||
- "go.sum"
|
||||
- "Makefile"
|
||||
- ".golangci.yml"
|
||||
- ".editorconfig"
|
||||
|
||||
frontend:
|
||||
- "**/*.js"
|
||||
- "web_src/**"
|
||||
- "assets/emoji.json"
|
||||
- "package.json"
|
||||
- "package-lock.json"
|
||||
- "Makefile"
|
||||
- ".eslintrc.yaml"
|
||||
- ".stylelintrc.yaml"
|
||||
- ".npmrc"
|
||||
|
||||
docs:
|
||||
- "**/*.md"
|
||||
- "docs/**"
|
||||
- ".markdownlint.yaml"
|
||||
- "package.json"
|
||||
- "package-lock.json"
|
||||
|
||||
actions:
|
||||
- ".github/workflows/*"
|
||||
- "Makefile"
|
||||
|
||||
templates:
|
||||
- "templates/**/*.tmpl"
|
||||
- "pyproject.toml"
|
||||
- "poetry.lock"
|
||||
|
||||
docker:
|
||||
- "Dockerfile"
|
||||
- "Dockerfile.rootless"
|
||||
- "docker/**"
|
||||
- "Makefile"
|
||||
|
||||
swagger:
|
||||
- "templates/swagger/v1_json.tmpl"
|
||||
- "Makefile"
|
||||
- "package.json"
|
||||
- "package-lock.json"
|
||||
- ".spectral.yaml"
|
||||
|
||||
yaml:
|
||||
- "**/*.yml"
|
||||
- "**/*.yaml"
|
||||
- ".yamllint.yaml"
|
||||
- "pyproject.toml"
|
||||
- "poetry.lock"
|
||||
|
69
.github/workflows/pull-compliance.yml
vendored
69
.github/workflows/pull-compliance.yml
vendored
@ -16,63 +16,25 @@ jobs:
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
go-version: ">=1.20"
|
||||
check-latest: true
|
||||
- run: make deps-backend deps-tools
|
||||
- run: make lint-backend
|
||||
env:
|
||||
TAGS: bindata sqlite sqlite_unlock_notify
|
||||
|
||||
lint-templates:
|
||||
if: needs.files-changed.outputs.templates == 'true'
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.11"
|
||||
- run: pip install poetry
|
||||
- run: make deps-py
|
||||
- run: make lint-templates
|
||||
|
||||
lint-yaml:
|
||||
if: needs.files-changed.outputs.yaml == 'true'
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.11"
|
||||
- run: pip install poetry
|
||||
- run: make deps-py
|
||||
- run: make lint-yaml
|
||||
|
||||
lint-swagger:
|
||||
if: needs.files-changed.outputs.swagger == 'true'
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
- run: make deps-frontend
|
||||
- run: make lint-swagger
|
||||
|
||||
lint-go-windows:
|
||||
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
go-version: ">=1.20"
|
||||
check-latest: true
|
||||
- run: make deps-backend deps-tools
|
||||
- run: make lint-go-windows lint-go-vet
|
||||
@ -86,10 +48,10 @@ jobs:
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
go-version: ">=1.20"
|
||||
check-latest: true
|
||||
- run: make deps-backend deps-tools
|
||||
- run: make lint-go
|
||||
@ -101,10 +63,10 @@ jobs:
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
go-version: ">=1.20"
|
||||
check-latest: true
|
||||
- run: make deps-backend deps-tools
|
||||
- run: make --always-make checks-backend # ensure the "go-licenses" make target runs
|
||||
@ -114,14 +76,13 @@ jobs:
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
- run: make deps-frontend
|
||||
- run: make lint-frontend
|
||||
- run: make checks-frontend
|
||||
- run: make test-frontend
|
||||
- run: make frontend
|
||||
|
||||
backend:
|
||||
@ -129,14 +90,14 @@ jobs:
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
go-version: ">=1.20"
|
||||
check-latest: true
|
||||
# no frontend build here as backend should be able to build
|
||||
# even without any frontend files
|
||||
- run: make deps-backend
|
||||
- run: make deps-backend deps-tools
|
||||
- run: go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
|
||||
- name: build-backend-arm64
|
||||
run: make backend # test cross compile
|
||||
@ -161,19 +122,19 @@ jobs:
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
- run: make deps-frontend
|
||||
- run: make lint-md
|
||||
- run: make docs
|
||||
- run: make docs # test if build could succeed
|
||||
|
||||
actions:
|
||||
if: needs.files-changed.outputs.actions == 'true' || needs.files-changed.outputs.actions == 'true'
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
- run: make lint-actions
|
||||
|
44
.github/workflows/pull-db-tests.yml
vendored
44
.github/workflows/pull-db-tests.yml
vendored
@ -38,11 +38,10 @@ jobs:
|
||||
ports:
|
||||
- "9000:9000"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
check-latest: true
|
||||
go-version: ">=1.20.0"
|
||||
- name: Add hosts to /etc/hosts
|
||||
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 pgsql ldap minio" | sudo tee -a /etc/hosts'
|
||||
- run: make deps-backend
|
||||
@ -63,11 +62,10 @@ jobs:
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
check-latest: true
|
||||
go-version: ">=1.20.0"
|
||||
- run: make deps-backend
|
||||
- run: make backend
|
||||
env:
|
||||
@ -88,7 +86,7 @@ jobs:
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
env:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: true
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||
MYSQL_DATABASE: test
|
||||
ports:
|
||||
- "3306:3306"
|
||||
@ -98,12 +96,6 @@ jobs:
|
||||
discovery.type: single-node
|
||||
ports:
|
||||
- "9200:9200"
|
||||
meilisearch:
|
||||
image: getmeili/meilisearch:v1.2.0
|
||||
env:
|
||||
MEILI_ENV: development # disable auth
|
||||
ports:
|
||||
- "7700:7700"
|
||||
smtpimap:
|
||||
image: tabascoterrier/docker-imap-devel:latest
|
||||
ports:
|
||||
@ -128,13 +120,12 @@ jobs:
|
||||
ports:
|
||||
- "9000:9000"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
check-latest: true
|
||||
go-version: ">=1.20.0"
|
||||
- name: Add hosts to /etc/hosts
|
||||
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch meilisearch smtpimap" | sudo tee -a /etc/hosts'
|
||||
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch smtpimap" | sudo tee -a /etc/hosts'
|
||||
- run: make deps-backend
|
||||
- run: make backend
|
||||
env:
|
||||
@ -160,7 +151,7 @@ jobs:
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
env:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: true
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||
MYSQL_DATABASE: test
|
||||
ports:
|
||||
- "3306:3306"
|
||||
@ -178,11 +169,10 @@ jobs:
|
||||
- "587:587"
|
||||
- "993:993"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
check-latest: true
|
||||
go-version: ">=1.20.0"
|
||||
- name: Add hosts to /etc/hosts
|
||||
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch smtpimap" | sudo tee -a /etc/hosts'
|
||||
- run: make deps-backend
|
||||
@ -205,16 +195,15 @@ jobs:
|
||||
mysql8:
|
||||
image: mysql:8
|
||||
env:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: true
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||
MYSQL_DATABASE: testgitea
|
||||
ports:
|
||||
- "3306:3306"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
check-latest: true
|
||||
go-version: ">=1.20.0"
|
||||
- name: Add hosts to /etc/hosts
|
||||
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql8" | sudo tee -a /etc/hosts'
|
||||
- run: make deps-backend
|
||||
@ -241,11 +230,10 @@ jobs:
|
||||
ports:
|
||||
- "1433:1433"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
check-latest: true
|
||||
go-version: ">=1.20.0"
|
||||
- name: Add hosts to /etc/hosts
|
||||
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mssql" | sudo tee -a /etc/hosts'
|
||||
- run: make deps-backend
|
||||
|
16
.github/workflows/pull-docker-dryrun.yml
vendored
16
.github/workflows/pull-docker-dryrun.yml
vendored
@ -11,8 +11,8 @@ jobs:
|
||||
files-changed:
|
||||
uses: ./.github/workflows/files-changed.yml
|
||||
|
||||
regular:
|
||||
if: needs.files-changed.outputs.docker == 'true' || needs.files-changed.outputs.actions == 'true'
|
||||
docker-dryrun:
|
||||
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.frontend == 'true' || needs.files-changed.outputs.actions == 'true'
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@ -21,15 +21,3 @@ jobs:
|
||||
with:
|
||||
push: false
|
||||
tags: gitea/gitea:linux-amd64
|
||||
|
||||
rootless:
|
||||
if: needs.files-changed.outputs.docker == 'true' || needs.files-changed.outputs.actions == 'true'
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
- uses: docker/build-push-action@v4
|
||||
with:
|
||||
push: false
|
||||
file: Dockerfile.rootless
|
||||
tags: gitea/gitea:linux-amd64
|
||||
|
4
.github/workflows/pull-e2e-tests.yml
vendored
4
.github/workflows/pull-e2e-tests.yml
vendored
@ -16,10 +16,10 @@ jobs:
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
go-version: ">=1.20"
|
||||
check-latest: true
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
|
21
.github/workflows/pull-labeler.yml
vendored
21
.github/workflows/pull-labeler.yml
vendored
@ -1,21 +0,0 @@
|
||||
name: labeler
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
label:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/labeler@v4
|
||||
with:
|
||||
dot: true
|
||||
sync-labels: true
|
68
.github/workflows/release-nightly.yml
vendored
68
.github/workflows/release-nightly.yml
vendored
@ -1,24 +1,20 @@
|
||||
name: release-nightly
|
||||
name: release-nightly-assets
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, release/v* ]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
nightly-binary:
|
||||
runs-on: nscloud
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
|
||||
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
|
||||
- run: git fetch --unshallow --quiet --tags --force
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
go-version: ">=1.20"
|
||||
check-latest: true
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
@ -46,26 +42,22 @@ jobs:
|
||||
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//')
|
||||
echo "Cleaned name is ${REF_NAME}"
|
||||
echo "branch=${REF_NAME}" >> "$GITHUB_OUTPUT"
|
||||
- name: configure aws
|
||||
uses: aws-actions/configure-aws-credentials@v4
|
||||
with:
|
||||
aws-region: ${{ secrets.AWS_REGION }}
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
- name: upload binaries to s3
|
||||
run: |
|
||||
aws s3 sync dist/release s3://${{ secrets.AWS_S3_BUCKET }}/gitea/${{ steps.clean_name.outputs.branch }} --no-progress
|
||||
nightly-docker-rootful:
|
||||
uses: jakejarvis/s3-sync-action@master
|
||||
env:
|
||||
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
AWS_REGION: ${{ secrets.AWS_REGION }}
|
||||
SOURCE_DIR: dist/release
|
||||
DEST_DIR: gitea/${{ steps.clean_name.outputs.branch }}
|
||||
nightly-docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
|
||||
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
|
||||
- run: git fetch --unshallow --quiet --tags --force
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
check-latest: true
|
||||
- uses: docker/setup-qemu-action@v2
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
- name: Get cleaned branch name
|
||||
@ -83,8 +75,6 @@ jobs:
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: fetch go modules
|
||||
run: make vendor
|
||||
- name: build rootful docker image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
@ -92,36 +82,6 @@ jobs:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: gitea/gitea:${{ steps.clean_name.outputs.branch }}
|
||||
nightly-docker-rootless:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
|
||||
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
|
||||
- run: git fetch --unshallow --quiet --tags --force
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
check-latest: true
|
||||
- uses: docker/setup-qemu-action@v2
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
- name: Get cleaned branch name
|
||||
id: clean_name
|
||||
run: |
|
||||
# if main then say nightly otherwise cleanup name
|
||||
if [ "${{ github.ref }}" = "refs/heads/main" ]; then
|
||||
echo "branch=nightly" >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//')
|
||||
echo "branch=${REF_NAME}-nightly" >> "$GITHUB_OUTPUT"
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: fetch go modules
|
||||
run: make vendor
|
||||
- name: build rootless docker image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
|
132
.github/workflows/release-tag-rc.yml
vendored
132
.github/workflows/release-tag-rc.yml
vendored
@ -1,132 +0,0 @@
|
||||
name: release-tag-rc
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v1*-rc*'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
binary:
|
||||
runs-on: nscloud
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
|
||||
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
|
||||
- run: git fetch --unshallow --quiet --tags --force
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
check-latest: true
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
- run: make deps-frontend deps-backend
|
||||
# xgo build
|
||||
- run: make release
|
||||
env:
|
||||
TAGS: bindata sqlite sqlite_unlock_notify
|
||||
- name: import gpg key
|
||||
id: import_gpg
|
||||
uses: crazy-max/ghaction-import-gpg@v5
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.GPGSIGN_KEY }}
|
||||
passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }}
|
||||
- name: sign binaries
|
||||
run: |
|
||||
for f in dist/release/*; do
|
||||
echo '${{ secrets.GPGSIGN_PASSPHRASE }}' | gpg --pinentry-mode loopback --passphrase-fd 0 --batch --yes --detach-sign -u ${{ steps.import_gpg.outputs.fingerprint }} --output "$f.asc" "$f"
|
||||
done
|
||||
# clean branch name to get the folder name in S3
|
||||
- name: Get cleaned branch name
|
||||
id: clean_name
|
||||
run: |
|
||||
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\/v//' -e 's/release\/v//')
|
||||
echo "Cleaned name is ${REF_NAME}"
|
||||
echo "branch=${REF_NAME}" >> "$GITHUB_OUTPUT"
|
||||
- name: configure aws
|
||||
uses: aws-actions/configure-aws-credentials@v4
|
||||
with:
|
||||
aws-region: ${{ secrets.AWS_REGION }}
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
- name: upload binaries to s3
|
||||
run: |
|
||||
aws s3 sync dist/release s3://${{ secrets.AWS_S3_BUCKET }}/gitea/${{ steps.clean_name.outputs.branch }} --no-progress
|
||||
- name: Install GH CLI
|
||||
uses: dev-hanz-ops/install-gh-cli-action@v0.1.0
|
||||
with:
|
||||
gh-cli-version: 2.39.1
|
||||
- name: create github release
|
||||
run: |
|
||||
gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --draft --notes-from-tag dist/release/*
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
docker-rootful:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
|
||||
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
|
||||
- run: git fetch --unshallow --quiet --tags --force
|
||||
- uses: docker/setup-qemu-action@v2
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
- uses: docker/metadata-action@v5
|
||||
id: meta
|
||||
with:
|
||||
images: gitea/gitea
|
||||
flavor: |
|
||||
latest=false
|
||||
# 1.2.3-rc0
|
||||
tags: |
|
||||
type=semver,pattern={{version}}
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: build rootful docker image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
docker-rootless:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
|
||||
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
|
||||
- run: git fetch --unshallow --quiet --tags --force
|
||||
- uses: docker/setup-qemu-action@v2
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
- uses: docker/metadata-action@v5
|
||||
id: meta
|
||||
with:
|
||||
images: gitea/gitea
|
||||
# each tag below will have the suffix of -rootless
|
||||
flavor: |
|
||||
latest=false
|
||||
suffix=-rootless
|
||||
# 1.2.3-rc0
|
||||
tags: |
|
||||
type=semver,pattern={{version}}
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: build rootless docker image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
file: Dockerfile.rootless
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
143
.github/workflows/release-tag-version.yml
vendored
143
.github/workflows/release-tag-version.yml
vendored
@ -1,143 +0,0 @@
|
||||
name: release-tag-version
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v1.*'
|
||||
- '!v1*-rc*'
|
||||
- '!v1*-dev'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
binary:
|
||||
runs-on: nscloud
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
|
||||
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
|
||||
- run: git fetch --unshallow --quiet --tags --force
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "~1.21"
|
||||
check-latest: true
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
- run: make deps-frontend deps-backend
|
||||
# xgo build
|
||||
- run: make release
|
||||
env:
|
||||
TAGS: bindata sqlite sqlite_unlock_notify
|
||||
- name: import gpg key
|
||||
id: import_gpg
|
||||
uses: crazy-max/ghaction-import-gpg@v5
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.GPGSIGN_KEY }}
|
||||
passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }}
|
||||
- name: sign binaries
|
||||
run: |
|
||||
for f in dist/release/*; do
|
||||
echo '${{ secrets.GPGSIGN_PASSPHRASE }}' | gpg --pinentry-mode loopback --passphrase-fd 0 --batch --yes --detach-sign -u ${{ steps.import_gpg.outputs.fingerprint }} --output "$f.asc" "$f"
|
||||
done
|
||||
# clean branch name to get the folder name in S3
|
||||
- name: Get cleaned branch name
|
||||
id: clean_name
|
||||
run: |
|
||||
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\/v//' -e 's/release\/v//')
|
||||
echo "Cleaned name is ${REF_NAME}"
|
||||
echo "branch=${REF_NAME}" >> "$GITHUB_OUTPUT"
|
||||
- name: configure aws
|
||||
uses: aws-actions/configure-aws-credentials@v4
|
||||
with:
|
||||
aws-region: ${{ secrets.AWS_REGION }}
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
- name: upload binaries to s3
|
||||
run: |
|
||||
aws s3 sync dist/release s3://${{ secrets.AWS_S3_BUCKET }}/gitea/${{ steps.clean_name.outputs.branch }} --no-progress
|
||||
- name: Install GH CLI
|
||||
uses: dev-hanz-ops/install-gh-cli-action@v0.1.0
|
||||
with:
|
||||
gh-cli-version: 2.39.1
|
||||
- name: create github release
|
||||
run: |
|
||||
gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --notes-from-tag dist/release/*
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
docker-rootful:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
|
||||
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
|
||||
- run: git fetch --unshallow --quiet --tags --force
|
||||
- uses: docker/setup-qemu-action@v2
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
- uses: docker/metadata-action@v5
|
||||
id: meta
|
||||
with:
|
||||
images: gitea/gitea
|
||||
# this will generate tags in the following format:
|
||||
# latest
|
||||
# 1
|
||||
# 1.2
|
||||
# 1.2.3
|
||||
tags: |
|
||||
type=semver,pattern={{major}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{version}}
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: build rootful docker image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
docker-rootless:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
|
||||
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
|
||||
- run: git fetch --unshallow --quiet --tags --force
|
||||
- uses: docker/setup-qemu-action@v2
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
- uses: docker/metadata-action@v5
|
||||
id: meta
|
||||
with:
|
||||
images: gitea/gitea
|
||||
# each tag below will have the suffix of -rootless
|
||||
flavor: |
|
||||
suffix=-rootless,onlatest=true
|
||||
# this will generate tags in the following format (with -rootless suffix added):
|
||||
# latest
|
||||
# 1
|
||||
# 1.2
|
||||
# 1.2.3
|
||||
tags: |
|
||||
type=semver,pattern={{major}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{version}}
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: build rootless docker image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
file: Dockerfile.rootless
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
11
.gitignore
vendored
11
.gitignore
vendored
@ -68,15 +68,13 @@ cpu.out
|
||||
/tests/*.ini
|
||||
/tests/**/*.git/**/*.sample
|
||||
/node_modules
|
||||
/.venv
|
||||
/yarn.lock
|
||||
/yarn-error.log
|
||||
/npm-debug.log*
|
||||
/public/assets/js
|
||||
/public/assets/css
|
||||
/public/assets/fonts
|
||||
/public/assets/licenses.txt
|
||||
/public/assets/img/webpack
|
||||
/public/js
|
||||
/public/css
|
||||
/public/fonts
|
||||
/public/img/webpack
|
||||
/vendor
|
||||
/web_src/fomantic/node_modules
|
||||
/web_src/fomantic/build/*
|
||||
@ -95,7 +93,6 @@ cpu.out
|
||||
/.go-licenses
|
||||
|
||||
# Snapcraft
|
||||
/gitea_a*.txt
|
||||
snap/.snapcraft/
|
||||
parts/
|
||||
stage/
|
||||
|
@ -34,8 +34,7 @@ vscode:
|
||||
- Vue.volar
|
||||
- ms-azuretools.vscode-docker
|
||||
- zixuanchen.vitest-explorer
|
||||
- qwtel.sqlite-viewer
|
||||
- GitHub.vscode-pull-request-github
|
||||
- alexcvzz.vscode-sqlite
|
||||
|
||||
ports:
|
||||
- name: Gitea
|
||||
|
@ -29,7 +29,7 @@ linters:
|
||||
fast: false
|
||||
|
||||
run:
|
||||
go: "1.21"
|
||||
go: "1.20"
|
||||
timeout: 10m
|
||||
skip-dirs:
|
||||
- node_modules
|
||||
@ -75,23 +75,18 @@ linters-settings:
|
||||
- name: modifies-value-receiver
|
||||
gofumpt:
|
||||
extra-rules: true
|
||||
lang-version: "1.21"
|
||||
lang-version: "1.20"
|
||||
depguard:
|
||||
rules:
|
||||
main:
|
||||
deny:
|
||||
- pkg: encoding/json
|
||||
desc: use gitea's modules/json instead of encoding/json
|
||||
- pkg: github.com/unknwon/com
|
||||
desc: use gitea's util and replacements
|
||||
- pkg: io/ioutil
|
||||
desc: use os or io instead
|
||||
- pkg: golang.org/x/exp
|
||||
desc: it's experimental and unreliable
|
||||
- pkg: code.gitea.io/gitea/modules/git/internal
|
||||
desc: do not use the internal package, use AddXxx function instead
|
||||
- pkg: gopkg.in/ini.v1
|
||||
desc: do not use the ini package, use gitea's config system instead
|
||||
list-type: denylist
|
||||
# Check the list against standard lib.
|
||||
include-go-root: true
|
||||
packages-with-error-message:
|
||||
- encoding/json: "use gitea's modules/json instead of encoding/json"
|
||||
- github.com/unknwon/com: "use gitea's util and replacements"
|
||||
- io/ioutil: "use os or io instead"
|
||||
- golang.org/x/exp: "it's experimental and unreliable."
|
||||
- code.gitea.io/gitea/modules/git/internal: "do not use the internal package, use AddXxx function instead"
|
||||
- gopkg.in/ini.v1: "do not use the ini package, use gitea's config system instead"
|
||||
|
||||
issues:
|
||||
max-issues-per-linter: 0
|
||||
|
1
.ignore
1
.ignore
@ -5,5 +5,4 @@
|
||||
/modules/public/bindata.go
|
||||
/modules/templates/bindata.go
|
||||
/vendor
|
||||
/public/assets
|
||||
node_modules
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user