summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTING.md4
-rw-r--r--build.go4
-rw-r--r--build/code-batch-process.go3
-rw-r--r--build/codeformat/formatimports.go3
-rw-r--r--build/codeformat/formatimports_test.go3
-rw-r--r--build/generate-bindata.go3
-rw-r--r--build/generate-emoji.go7
-rw-r--r--build/generate-go-licenses.go3
-rw-r--r--build/gocovmerge.go3
-rw-r--r--cmd/admin.go3
-rw-r--r--cmd/admin_auth_ldap.go3
-rw-r--r--cmd/admin_auth_ldap_test.go3
-rw-r--r--cmd/cert.go3
-rw-r--r--cmd/cmd.go3
-rw-r--r--cmd/convert.go3
-rw-r--r--cmd/docs.go3
-rw-r--r--cmd/doctor.go3
-rw-r--r--cmd/dump.go3
-rw-r--r--cmd/dump_repo.go3
-rw-r--r--cmd/embedded.go3
-rw-r--r--cmd/embedded_stub.go3
-rw-r--r--cmd/generate.go3
-rw-r--r--cmd/hook.go3
-rw-r--r--cmd/hook_test.go3
-rw-r--r--cmd/keys.go3
-rw-r--r--cmd/mailer.go3
-rw-r--r--cmd/main_test.go3
-rw-r--r--cmd/manager.go3
-rw-r--r--cmd/manager_logging.go3
-rw-r--r--cmd/migrate.go3
-rw-r--r--cmd/migrate_storage.go3
-rw-r--r--cmd/migrate_storage_test.go3
-rw-r--r--cmd/restore_repo.go3
-rw-r--r--cmd/serv.go3
-rw-r--r--cmd/web.go3
-rw-r--r--cmd/web_acme.go3
-rw-r--r--cmd/web_graceful.go3
-rw-r--r--cmd/web_https.go3
-rw-r--r--contrib/environment-to-ini/environment-to-ini.go3
-rw-r--r--contrib/fixtures/fixture_generation.go3
-rw-r--r--contrib/pr/checkout.go3
-rw-r--r--main.go3
-rw-r--r--models/activities/action.go3
-rw-r--r--models/activities/action_list.go3
-rw-r--r--models/activities/action_test.go3
-rw-r--r--models/activities/main_test.go3
-rw-r--r--models/activities/notification.go3
-rw-r--r--models/activities/notification_test.go3
-rw-r--r--models/activities/repo_activity.go3
-rw-r--r--models/activities/statistic.go3
-rw-r--r--models/activities/user_heatmap.go3
-rw-r--r--models/activities/user_heatmap_test.go3
-rw-r--r--models/admin/task.go3
-rw-r--r--models/asymkey/error.go3
-rw-r--r--models/asymkey/gpg_key.go3
-rw-r--r--models/asymkey/gpg_key_add.go3
-rw-r--r--models/asymkey/gpg_key_commit_verification.go3
-rw-r--r--models/asymkey/gpg_key_common.go3
-rw-r--r--models/asymkey/gpg_key_import.go3
-rw-r--r--models/asymkey/gpg_key_test.go3
-rw-r--r--models/asymkey/gpg_key_verify.go3
-rw-r--r--models/asymkey/main_test.go3
-rw-r--r--models/asymkey/ssh_key.go3
-rw-r--r--models/asymkey/ssh_key_authorized_keys.go3
-rw-r--r--models/asymkey/ssh_key_authorized_principals.go3
-rw-r--r--models/asymkey/ssh_key_commit_verification.go3
-rw-r--r--models/asymkey/ssh_key_deploy.go3
-rw-r--r--models/asymkey/ssh_key_fingerprint.go3
-rw-r--r--models/asymkey/ssh_key_parse.go3
-rw-r--r--models/asymkey/ssh_key_principals.go3
-rw-r--r--models/asymkey/ssh_key_test.go3
-rw-r--r--models/asymkey/ssh_key_verify.go3
-rw-r--r--models/auth/main_test.go3
-rw-r--r--models/auth/oauth2.go3
-rw-r--r--models/auth/oauth2_test.go3
-rw-r--r--models/auth/session.go3
-rw-r--r--models/auth/source.go3
-rw-r--r--models/auth/source_test.go3
-rw-r--r--models/auth/token.go3
-rw-r--r--models/auth/token_test.go3
-rw-r--r--models/auth/twofactor.go3
-rw-r--r--models/auth/webauthn.go3
-rw-r--r--models/auth/webauthn_test.go3
-rw-r--r--models/avatars/avatar.go3
-rw-r--r--models/avatars/avatar_test.go3
-rw-r--r--models/avatars/main_test.go3
-rw-r--r--models/db/common.go3
-rw-r--r--models/db/consistency.go3
-rw-r--r--models/db/context.go3
-rw-r--r--models/db/context_test.go3
-rw-r--r--models/db/convert.go3
-rwxr-xr-xmodels/db/engine.go3
-rw-r--r--models/db/engine_test.go3
-rw-r--r--models/db/error.go3
-rw-r--r--models/db/index.go3
-rw-r--r--models/db/index_test.go3
-rw-r--r--models/db/install/db.go3
-rw-r--r--models/db/iterate.go3
-rw-r--r--models/db/iterate_test.go3
-rw-r--r--models/db/list_options.go3
-rw-r--r--models/db/log.go3
-rw-r--r--models/db/main_test.go3
-rw-r--r--models/db/name.go3
-rw-r--r--models/db/paginator/main_test.go3
-rw-r--r--models/db/paginator/paginator.go3
-rw-r--r--models/db/paginator/paginator_test.go3
-rw-r--r--models/db/search.go3
-rw-r--r--models/db/sequence.go3
-rw-r--r--models/db/sql_postgres_with_schema.go3
-rw-r--r--models/error.go3
-rw-r--r--models/fixture_generation.go3
-rw-r--r--models/fixture_test.go3
-rw-r--r--models/foreignreference/error.go3
-rw-r--r--models/foreignreference/foreignreference.go3
-rw-r--r--models/git/branches.go3
-rw-r--r--models/git/branches_test.go3
-rw-r--r--models/git/commit_status.go3
-rw-r--r--models/git/commit_status_test.go3
-rw-r--r--models/git/lfs.go3
-rw-r--r--models/git/lfs_lock.go3
-rw-r--r--models/git/main_test.go3
-rw-r--r--models/git/protected_tag.go3
-rw-r--r--models/git/protected_tag_test.go3
-rw-r--r--models/issues/assignees.go3
-rw-r--r--models/issues/assignees_test.go3
-rw-r--r--models/issues/comment.go3
-rw-r--r--models/issues/comment_list.go3
-rw-r--r--models/issues/comment_test.go3
-rw-r--r--models/issues/content_history.go3
-rw-r--r--models/issues/content_history_test.go3
-rw-r--r--models/issues/dependency.go3
-rw-r--r--models/issues/dependency_test.go3
-rw-r--r--models/issues/issue.go3
-rw-r--r--models/issues/issue_index.go3
-rw-r--r--models/issues/issue_list.go3
-rw-r--r--models/issues/issue_list_test.go3
-rw-r--r--models/issues/issue_lock.go3
-rw-r--r--models/issues/issue_project.go3
-rw-r--r--models/issues/issue_test.go3
-rw-r--r--models/issues/issue_user.go3
-rw-r--r--models/issues/issue_user_test.go3
-rw-r--r--models/issues/issue_watch.go3
-rw-r--r--models/issues/issue_watch_test.go3
-rw-r--r--models/issues/issue_xref.go3
-rw-r--r--models/issues/issue_xref_test.go3
-rw-r--r--models/issues/label.go3
-rw-r--r--models/issues/label_test.go3
-rw-r--r--models/issues/main_test.go3
-rw-r--r--models/issues/milestone.go3
-rw-r--r--models/issues/milestone_test.go3
-rw-r--r--models/issues/pull.go3
-rw-r--r--models/issues/pull_list.go3
-rw-r--r--models/issues/pull_test.go3
-rw-r--r--models/issues/reaction.go3
-rw-r--r--models/issues/reaction_test.go3
-rw-r--r--models/issues/review.go3
-rw-r--r--models/issues/review_test.go3
-rw-r--r--models/issues/stopwatch.go3
-rw-r--r--models/issues/stopwatch_test.go3
-rw-r--r--models/issues/tracked_time.go3
-rw-r--r--models/issues/tracked_time_test.go3
-rw-r--r--models/main_test.go3
-rw-r--r--models/migrate.go3
-rw-r--r--models/migrate_test.go3
-rw-r--r--models/migrations/base/db.go3
-rw-r--r--models/migrations/base/db_test.go3
-rw-r--r--models/migrations/base/hash.go3
-rw-r--r--models/migrations/base/main_test.go3
-rw-r--r--models/migrations/base/testlogger.go3
-rw-r--r--models/migrations/base/tests.go3
-rw-r--r--models/migrations/migrations.go3
-rw-r--r--models/migrations/v1_10/v100.go3
-rw-r--r--models/migrations/v1_10/v101.go3
-rw-r--r--models/migrations/v1_10/v88.go3
-rw-r--r--models/migrations/v1_10/v89.go3
-rw-r--r--models/migrations/v1_10/v90.go3
-rw-r--r--models/migrations/v1_10/v91.go3
-rw-r--r--models/migrations/v1_10/v92.go3
-rw-r--r--models/migrations/v1_10/v93.go3
-rw-r--r--models/migrations/v1_10/v94.go3
-rw-r--r--models/migrations/v1_10/v95.go3
-rw-r--r--models/migrations/v1_10/v96.go3
-rw-r--r--models/migrations/v1_10/v97.go3
-rw-r--r--models/migrations/v1_10/v98.go3
-rw-r--r--models/migrations/v1_10/v99.go3
-rw-r--r--models/migrations/v1_11/v102.go3
-rw-r--r--models/migrations/v1_11/v103.go3
-rw-r--r--models/migrations/v1_11/v104.go3
-rw-r--r--models/migrations/v1_11/v105.go3
-rw-r--r--models/migrations/v1_11/v106.go3
-rw-r--r--models/migrations/v1_11/v107.go3
-rw-r--r--models/migrations/v1_11/v108.go3
-rw-r--r--models/migrations/v1_11/v109.go3
-rw-r--r--models/migrations/v1_11/v110.go3
-rw-r--r--models/migrations/v1_11/v111.go3
-rw-r--r--models/migrations/v1_11/v112.go3
-rw-r--r--models/migrations/v1_11/v113.go3
-rw-r--r--models/migrations/v1_11/v114.go3
-rw-r--r--models/migrations/v1_11/v115.go3
-rw-r--r--models/migrations/v1_11/v116.go3
-rw-r--r--models/migrations/v1_12/v117.go3
-rw-r--r--models/migrations/v1_12/v118.go3
-rw-r--r--models/migrations/v1_12/v119.go3
-rw-r--r--models/migrations/v1_12/v120.go3
-rw-r--r--models/migrations/v1_12/v121.go3
-rw-r--r--models/migrations/v1_12/v122.go3
-rw-r--r--models/migrations/v1_12/v123.go3
-rw-r--r--models/migrations/v1_12/v124.go3
-rw-r--r--models/migrations/v1_12/v125.go3
-rw-r--r--models/migrations/v1_12/v126.go3
-rw-r--r--models/migrations/v1_12/v127.go3
-rw-r--r--models/migrations/v1_12/v128.go3
-rw-r--r--models/migrations/v1_12/v129.go3
-rw-r--r--models/migrations/v1_12/v130.go3
-rw-r--r--models/migrations/v1_12/v131.go3
-rw-r--r--models/migrations/v1_12/v132.go3
-rw-r--r--models/migrations/v1_12/v133.go3
-rw-r--r--models/migrations/v1_12/v134.go3
-rw-r--r--models/migrations/v1_12/v135.go3
-rw-r--r--models/migrations/v1_12/v136.go3
-rw-r--r--models/migrations/v1_12/v137.go3
-rw-r--r--models/migrations/v1_12/v138.go3
-rw-r--r--models/migrations/v1_12/v139.go3
-rw-r--r--models/migrations/v1_13/v140.go3
-rw-r--r--models/migrations/v1_13/v141.go3
-rw-r--r--models/migrations/v1_13/v142.go3
-rw-r--r--models/migrations/v1_13/v143.go3
-rw-r--r--models/migrations/v1_13/v144.go3
-rw-r--r--models/migrations/v1_13/v145.go3
-rw-r--r--models/migrations/v1_13/v146.go3
-rw-r--r--models/migrations/v1_13/v147.go3
-rw-r--r--models/migrations/v1_13/v148.go3
-rw-r--r--models/migrations/v1_13/v149.go3
-rw-r--r--models/migrations/v1_13/v150.go3
-rw-r--r--models/migrations/v1_13/v151.go3
-rw-r--r--models/migrations/v1_13/v152.go3
-rw-r--r--models/migrations/v1_13/v153.go3
-rw-r--r--models/migrations/v1_13/v154.go3
-rw-r--r--models/migrations/v1_14/main_test.go3
-rw-r--r--models/migrations/v1_14/v155.go3
-rw-r--r--models/migrations/v1_14/v156.go3
-rw-r--r--models/migrations/v1_14/v157.go3
-rw-r--r--models/migrations/v1_14/v158.go3
-rw-r--r--models/migrations/v1_14/v159.go3
-rw-r--r--models/migrations/v1_14/v160.go3
-rw-r--r--models/migrations/v1_14/v161.go3
-rw-r--r--models/migrations/v1_14/v162.go3
-rw-r--r--models/migrations/v1_14/v163.go3
-rw-r--r--models/migrations/v1_14/v164.go3
-rw-r--r--models/migrations/v1_14/v165.go3
-rw-r--r--models/migrations/v1_14/v166.go3
-rw-r--r--models/migrations/v1_14/v167.go3
-rw-r--r--models/migrations/v1_14/v168.go3
-rw-r--r--models/migrations/v1_14/v169.go3
-rw-r--r--models/migrations/v1_14/v170.go3
-rw-r--r--models/migrations/v1_14/v171.go3
-rw-r--r--models/migrations/v1_14/v172.go3
-rw-r--r--models/migrations/v1_14/v173.go3
-rw-r--r--models/migrations/v1_14/v174.go3
-rw-r--r--models/migrations/v1_14/v175.go3
-rw-r--r--models/migrations/v1_14/v176.go3
-rw-r--r--models/migrations/v1_14/v176_test.go3
-rw-r--r--models/migrations/v1_14/v177.go3
-rw-r--r--models/migrations/v1_14/v177_test.go3
-rw-r--r--models/migrations/v1_15/main_test.go3
-rw-r--r--models/migrations/v1_15/v178.go3
-rw-r--r--models/migrations/v1_15/v179.go3
-rw-r--r--models/migrations/v1_15/v180.go3
-rw-r--r--models/migrations/v1_15/v181.go3
-rw-r--r--models/migrations/v1_15/v181_test.go3
-rw-r--r--models/migrations/v1_15/v182.go3
-rw-r--r--models/migrations/v1_15/v182_test.go3
-rw-r--r--models/migrations/v1_15/v183.go3
-rw-r--r--models/migrations/v1_15/v184.go3
-rw-r--r--models/migrations/v1_15/v185.go3
-rw-r--r--models/migrations/v1_15/v186.go3
-rw-r--r--models/migrations/v1_15/v187.go3
-rw-r--r--models/migrations/v1_15/v188.go3
-rw-r--r--models/migrations/v1_16/main_test.go3
-rw-r--r--models/migrations/v1_16/v189.go3
-rw-r--r--models/migrations/v1_16/v189_test.go3
-rw-r--r--models/migrations/v1_16/v190.go3
-rw-r--r--models/migrations/v1_16/v191.go3
-rw-r--r--models/migrations/v1_16/v192.go3
-rw-r--r--models/migrations/v1_16/v193.go3
-rw-r--r--models/migrations/v1_16/v193_test.go3
-rw-r--r--models/migrations/v1_16/v194.go3
-rw-r--r--models/migrations/v1_16/v195.go3
-rw-r--r--models/migrations/v1_16/v195_test.go3
-rw-r--r--models/migrations/v1_16/v196.go3
-rw-r--r--models/migrations/v1_16/v197.go3
-rw-r--r--models/migrations/v1_16/v198.go3
-rw-r--r--models/migrations/v1_16/v199.go3
-rw-r--r--models/migrations/v1_16/v200.go3
-rw-r--r--models/migrations/v1_16/v201.go3
-rw-r--r--models/migrations/v1_16/v202.go3
-rw-r--r--models/migrations/v1_16/v203.go3
-rw-r--r--models/migrations/v1_16/v204.go3
-rw-r--r--models/migrations/v1_16/v205.go3
-rw-r--r--models/migrations/v1_16/v206.go3
-rw-r--r--models/migrations/v1_16/v207.go3
-rw-r--r--models/migrations/v1_16/v208.go3
-rw-r--r--models/migrations/v1_16/v209.go3
-rw-r--r--models/migrations/v1_16/v210.go3
-rw-r--r--models/migrations/v1_16/v210_test.go3
-rw-r--r--models/migrations/v1_17/main_test.go3
-rw-r--r--models/migrations/v1_17/v211.go3
-rw-r--r--models/migrations/v1_17/v212.go3
-rw-r--r--models/migrations/v1_17/v213.go3
-rw-r--r--models/migrations/v1_17/v214.go3
-rw-r--r--models/migrations/v1_17/v215.go3
-rw-r--r--models/migrations/v1_17/v216.go3
-rw-r--r--models/migrations/v1_17/v217.go3
-rw-r--r--models/migrations/v1_17/v218.go3
-rw-r--r--models/migrations/v1_17/v219.go3
-rw-r--r--models/migrations/v1_17/v220.go3
-rw-r--r--models/migrations/v1_17/v221.go3
-rw-r--r--models/migrations/v1_17/v221_test.go3
-rw-r--r--models/migrations/v1_17/v222.go3
-rw-r--r--models/migrations/v1_17/v223.go3
-rw-r--r--models/migrations/v1_18/main_test.go3
-rw-r--r--models/migrations/v1_18/v224.go3
-rw-r--r--models/migrations/v1_18/v225.go3
-rw-r--r--models/migrations/v1_18/v226.go3
-rw-r--r--models/migrations/v1_18/v227.go3
-rw-r--r--models/migrations/v1_18/v228.go3
-rw-r--r--models/migrations/v1_18/v229.go3
-rw-r--r--models/migrations/v1_18/v229_test.go3
-rw-r--r--models/migrations/v1_18/v230.go3
-rw-r--r--models/migrations/v1_18/v230_test.go3
-rw-r--r--models/migrations/v1_19/main_test.go3
-rw-r--r--models/migrations/v1_19/v231.go3
-rw-r--r--models/migrations/v1_19/v232.go3
-rw-r--r--models/migrations/v1_19/v233.go3
-rw-r--r--models/migrations/v1_19/v233_test.go3
-rw-r--r--models/migrations/v1_6/v70.go3
-rw-r--r--models/migrations/v1_6/v71.go3
-rw-r--r--models/migrations/v1_6/v72.go3
-rw-r--r--models/migrations/v1_7/v73.go3
-rw-r--r--models/migrations/v1_7/v74.go3
-rw-r--r--models/migrations/v1_7/v75.go3
-rw-r--r--models/migrations/v1_8/v76.go3
-rw-r--r--models/migrations/v1_8/v77.go3
-rw-r--r--models/migrations/v1_8/v78.go3
-rw-r--r--models/migrations/v1_8/v79.go3
-rw-r--r--models/migrations/v1_8/v80.go3
-rw-r--r--models/migrations/v1_8/v81.go3
-rw-r--r--models/migrations/v1_9/v82.go3
-rw-r--r--models/migrations/v1_9/v83.go3
-rw-r--r--models/migrations/v1_9/v84.go3
-rw-r--r--models/migrations/v1_9/v85.go3
-rw-r--r--models/migrations/v1_9/v86.go3
-rw-r--r--models/migrations/v1_9/v87.go3
-rw-r--r--models/org.go3
-rw-r--r--models/org_team.go3
-rw-r--r--models/org_team_test.go3
-rw-r--r--models/org_test.go3
-rw-r--r--models/organization/main_test.go3
-rw-r--r--models/organization/mini_org.go3
-rw-r--r--models/organization/org.go3
-rw-r--r--models/organization/org_repo.go3
-rw-r--r--models/organization/org_test.go3
-rw-r--r--models/organization/org_user.go3
-rw-r--r--models/organization/org_user_test.go3
-rw-r--r--models/organization/team.go3
-rw-r--r--models/organization/team_invite.go3
-rw-r--r--models/organization/team_invite_test.go3
-rw-r--r--models/organization/team_repo.go3
-rw-r--r--models/organization/team_test.go3
-rw-r--r--models/organization/team_unit.go3
-rw-r--r--models/organization/team_user.go3
-rw-r--r--models/packages/conan/references.go3
-rw-r--r--models/packages/conan/search.go3
-rw-r--r--models/packages/container/const.go3
-rw-r--r--models/packages/container/search.go3
-rw-r--r--models/packages/descriptor.go3
-rw-r--r--models/packages/package.go3
-rw-r--r--models/packages/package_blob.go3
-rw-r--r--models/packages/package_blob_upload.go3
-rw-r--r--models/packages/package_file.go3
-rw-r--r--models/packages/package_property.go3
-rw-r--r--models/packages/package_test.go3
-rw-r--r--models/packages/package_version.go3
-rw-r--r--models/perm/access/access.go3
-rw-r--r--models/perm/access/access_test.go3
-rw-r--r--models/perm/access/main_test.go3
-rw-r--r--models/perm/access/repo_permission.go3
-rw-r--r--models/perm/access_mode.go3
-rw-r--r--models/project/board.go3
-rw-r--r--models/project/issue.go3
-rw-r--r--models/project/main_test.go3
-rw-r--r--models/project/project.go3
-rw-r--r--models/project/project_test.go3
-rw-r--r--models/pull/automerge.go3
-rw-r--r--models/pull/review_state.go4
-rw-r--r--models/repo.go3
-rw-r--r--models/repo/archiver.go3
-rw-r--r--models/repo/attachment.go3
-rw-r--r--models/repo/attachment_test.go3
-rw-r--r--models/repo/avatar.go3
-rw-r--r--models/repo/collaboration.go3
-rw-r--r--models/repo/collaboration_test.go3
-rw-r--r--models/repo/fork.go3
-rw-r--r--models/repo/fork_test.go3
-rw-r--r--models/repo/git.go3
-rw-r--r--models/repo/issue.go3
-rw-r--r--models/repo/language_stats.go3
-rw-r--r--models/repo/main_test.go3
-rw-r--r--models/repo/mirror.go3
-rw-r--r--models/repo/pushmirror.go3
-rw-r--r--models/repo/pushmirror_test.go3
-rw-r--r--models/repo/redirect.go3
-rw-r--r--models/repo/redirect_test.go3
-rw-r--r--models/repo/release.go3
-rw-r--r--models/repo/repo.go3
-rw-r--r--models/repo/repo_indexer.go3
-rw-r--r--models/repo/repo_list.go3
-rw-r--r--models/repo/repo_list_test.go3
-rw-r--r--models/repo/repo_test.go3
-rw-r--r--models/repo/repo_unit.go3
-rw-r--r--models/repo/star.go3
-rw-r--r--models/repo/star_test.go3
-rw-r--r--models/repo/topic.go3
-rw-r--r--models/repo/topic_test.go3
-rw-r--r--models/repo/update.go3
-rw-r--r--models/repo/upload.go3
-rw-r--r--models/repo/user_repo.go3
-rw-r--r--models/repo/user_repo_test.go3
-rw-r--r--models/repo/watch.go3
-rw-r--r--models/repo/watch_test.go3
-rw-r--r--models/repo/wiki.go3
-rw-r--r--models/repo/wiki_test.go3
-rw-r--r--models/repo_collaboration.go3
-rw-r--r--models/repo_collaboration_test.go3
-rw-r--r--models/repo_test.go3
-rw-r--r--models/repo_transfer.go3
-rw-r--r--models/repo_transfer_test.go3
-rw-r--r--models/system/appstate.go3
-rw-r--r--models/system/main_test.go3
-rw-r--r--models/system/notice.go3
-rw-r--r--models/system/notice_test.go3
-rw-r--r--models/system/setting.go3
-rw-r--r--models/system/setting_key.go3
-rw-r--r--models/system/setting_test.go3
-rw-r--r--models/unit/unit.go3
-rw-r--r--models/unittest/consistency.go3
-rw-r--r--models/unittest/fixtures.go3
-rw-r--r--models/unittest/fscopy.go3
-rw-r--r--models/unittest/reflection.go3
-rw-r--r--models/unittest/testdb.go3
-rw-r--r--models/unittest/unit_tests.go3
-rw-r--r--models/user.go3
-rw-r--r--models/user/avatar.go3
-rw-r--r--models/user/badge.go3
-rw-r--r--models/user/email_address.go3
-rw-r--r--models/user/email_address_test.go3
-rw-r--r--models/user/error.go3
-rw-r--r--models/user/external_login_user.go3
-rw-r--r--models/user/follow.go3
-rw-r--r--models/user/follow_test.go3
-rw-r--r--models/user/list.go3
-rw-r--r--models/user/main_test.go3
-rw-r--r--models/user/openid.go3
-rw-r--r--models/user/openid_test.go3
-rw-r--r--models/user/redirect.go3
-rw-r--r--models/user/redirect_test.go3
-rw-r--r--models/user/search.go3
-rw-r--r--models/user/setting.go3
-rw-r--r--models/user/setting_keys.go3
-rw-r--r--models/user/setting_test.go3
-rw-r--r--models/user/user.go3
-rw-r--r--models/user/user_test.go3
-rw-r--r--models/user/user_update.go3
-rw-r--r--models/webhook/hooktask.go3
-rw-r--r--models/webhook/main_test.go3
-rw-r--r--models/webhook/webhook.go3
-rw-r--r--models/webhook/webhook_test.go3
-rw-r--r--modules/activitypub/client.go3
-rw-r--r--modules/activitypub/client_test.go3
-rw-r--r--modules/activitypub/keypair.go3
-rw-r--r--modules/activitypub/keypair_test.go3
-rw-r--r--modules/activitypub/main_test.go3
-rw-r--r--modules/activitypub/user_settings.go3
-rw-r--r--modules/activitypub/user_settings_test.go3
-rw-r--r--modules/analyze/code_langauge.go3
-rw-r--r--modules/analyze/generated.go3
-rw-r--r--modules/analyze/vendor.go3
-rw-r--r--modules/analyze/vendor_test.go3
-rw-r--r--modules/auth/openid/discovery_cache.go3
-rw-r--r--modules/auth/openid/discovery_cache_test.go3
-rw-r--r--modules/auth/openid/openid.go3
-rw-r--r--modules/auth/pam/pam.go3
-rw-r--r--modules/auth/pam/pam_stub.go3
-rw-r--r--modules/auth/pam/pam_test.go3
-rw-r--r--modules/auth/webauthn/webauthn.go3
-rw-r--r--modules/auth/webauthn/webauthn_test.go3
-rw-r--r--modules/avatar/avatar.go3
-rw-r--r--modules/avatar/avatar_test.go3
-rw-r--r--modules/avatar/identicon/block.go3
-rw-r--r--modules/avatar/identicon/colors.go3
-rw-r--r--modules/avatar/identicon/identicon.go3
-rw-r--r--modules/avatar/identicon/identicon_test.go3
-rw-r--r--modules/avatar/identicon/polygon.go3
-rw-r--r--modules/base/base.go3
-rw-r--r--modules/base/natural_sort.go3
-rw-r--r--modules/base/natural_sort_test.go3
-rw-r--r--modules/base/tool.go3
-rw-r--r--modules/base/tool_test.go3
-rw-r--r--modules/cache/cache.go3
-rw-r--r--modules/cache/cache_redis.go3
-rw-r--r--modules/cache/cache_test.go3
-rw-r--r--modules/cache/cache_twoqueue.go3
-rw-r--r--modules/charset/ambiguous.go3
-rw-r--r--modules/charset/ambiguous/generate.go7
-rw-r--r--modules/charset/ambiguous_gen.go3
-rw-r--r--modules/charset/ambiguous_gen_test.go3
-rw-r--r--modules/charset/breakwriter.go3
-rw-r--r--modules/charset/breakwriter_test.go3
-rw-r--r--modules/charset/charset.go3
-rw-r--r--modules/charset/charset_test.go3
-rw-r--r--modules/charset/escape.go3
-rw-r--r--modules/charset/escape_status.go3
-rw-r--r--modules/charset/escape_stream.go3
-rw-r--r--modules/charset/escape_test.go3
-rw-r--r--modules/charset/htmlstream.go3
-rw-r--r--modules/charset/invisible/generate.go7
-rw-r--r--modules/charset/invisible_gen.go3
-rw-r--r--modules/container/set.go3
-rw-r--r--modules/container/set_test.go3
-rw-r--r--modules/context/access_log.go3
-rw-r--r--modules/context/api.go3
-rw-r--r--modules/context/api_org.go3
-rw-r--r--modules/context/api_test.go3
-rw-r--r--modules/context/auth.go3
-rw-r--r--modules/context/captcha.go3
-rw-r--r--modules/context/context.go3
-rw-r--r--modules/context/form.go3
-rw-r--r--modules/context/org.go3
-rw-r--r--modules/context/package.go3
-rw-r--r--modules/context/pagination.go3
-rw-r--r--modules/context/permission.go3
-rw-r--r--modules/context/private.go3
-rw-r--r--modules/context/repo.go3
-rw-r--r--modules/context/response.go3
-rw-r--r--modules/context/utils.go3
-rw-r--r--modules/convert/convert.go3
-rw-r--r--modules/convert/git_commit.go3
-rw-r--r--modules/convert/git_commit_test.go3
-rw-r--r--modules/convert/issue.go3
-rw-r--r--modules/convert/issue_comment.go3
-rw-r--r--modules/convert/issue_test.go3
-rw-r--r--modules/convert/main_test.go3
-rw-r--r--modules/convert/mirror.go3
-rw-r--r--modules/convert/notification.go3
-rw-r--r--modules/convert/package.go3
-rw-r--r--modules/convert/pull.go3
-rw-r--r--modules/convert/pull_review.go3
-rw-r--r--modules/convert/pull_test.go3
-rw-r--r--modules/convert/release.go3
-rw-r--r--modules/convert/repository.go3
-rw-r--r--modules/convert/status.go3
-rw-r--r--modules/convert/user.go3
-rw-r--r--modules/convert/user_test.go3
-rw-r--r--modules/convert/utils.go3
-rw-r--r--modules/convert/utils_test.go3
-rw-r--r--modules/convert/wiki.go3
-rw-r--r--modules/csv/csv.go3
-rw-r--r--modules/csv/csv_test.go3
-rw-r--r--modules/doctor/authorizedkeys.go3
-rw-r--r--modules/doctor/breaking.go3
-rw-r--r--modules/doctor/checkOldArchives.go3
-rw-r--r--modules/doctor/dbconsistency.go3
-rw-r--r--modules/doctor/dbversion.go3
-rw-r--r--modules/doctor/doctor.go3
-rw-r--r--modules/doctor/fix16961.go3
-rw-r--r--modules/doctor/fix16961_test.go3
-rw-r--r--modules/doctor/heads.go3
-rw-r--r--modules/doctor/mergebase.go3
-rw-r--r--modules/doctor/misc.go3
-rw-r--r--modules/doctor/paths.go3
-rw-r--r--modules/doctor/storage.go3
-rw-r--r--modules/doctor/usertype.go3
-rw-r--r--modules/emoji/emoji.go3
-rw-r--r--modules/emoji/emoji_data.go3
-rw-r--r--modules/emoji/emoji_test.go3
-rw-r--r--modules/eventsource/event.go3
-rw-r--r--modules/eventsource/event_test.go3
-rw-r--r--modules/eventsource/manager.go3
-rw-r--r--modules/eventsource/manager_run.go3
-rw-r--r--modules/eventsource/messenger.go3
-rw-r--r--modules/generate/generate.go3
-rw-r--r--modules/git/batch_reader.go3
-rw-r--r--modules/git/blame.go3
-rw-r--r--modules/git/blame_test.go3
-rw-r--r--modules/git/blob.go3
-rw-r--r--modules/git/blob_gogit.go3
-rw-r--r--modules/git/blob_nogogit.go3
-rw-r--r--modules/git/blob_test.go3
-rw-r--r--modules/git/command.go3
-rw-r--r--modules/git/command_race_test.go3
-rw-r--r--modules/git/command_test.go3
-rw-r--r--modules/git/commit.go3
-rw-r--r--modules/git/commit_convert_gogit.go3
-rw-r--r--modules/git/commit_info.go3
-rw-r--r--modules/git/commit_info_gogit.go3
-rw-r--r--modules/git/commit_info_nogogit.go3
-rw-r--r--modules/git/commit_info_test.go3
-rw-r--r--modules/git/commit_reader.go3
-rw-r--r--modules/git/commit_test.go3
-rw-r--r--modules/git/diff.go3
-rw-r--r--modules/git/diff_test.go3
-rw-r--r--modules/git/error.go3
-rw-r--r--modules/git/foreachref/format.go3
-rw-r--r--modules/git/foreachref/format_test.go3
-rw-r--r--modules/git/foreachref/parser.go3
-rw-r--r--modules/git/foreachref/parser_test.go3
-rw-r--r--modules/git/git.go3
-rw-r--r--modules/git/git_test.go3
-rw-r--r--modules/git/hook.go3
-rw-r--r--modules/git/last_commit_cache.go3
-rw-r--r--modules/git/last_commit_cache_gogit.go3
-rw-r--r--modules/git/last_commit_cache_nogogit.go3
-rw-r--r--modules/git/log_name_status.go3
-rw-r--r--modules/git/notes.go3
-rw-r--r--modules/git/notes_gogit.go3
-rw-r--r--modules/git/notes_nogogit.go3
-rw-r--r--modules/git/notes_test.go3
-rw-r--r--modules/git/parse_gogit.go3
-rw-r--r--modules/git/parse_gogit_test.go3
-rw-r--r--modules/git/parse_nogogit.go3
-rw-r--r--modules/git/parse_nogogit_test.go3
-rw-r--r--modules/git/pipeline/catfile.go3
-rw-r--r--modules/git/pipeline/lfs.go3
-rw-r--r--modules/git/pipeline/lfs_nogogit.go3
-rw-r--r--modules/git/pipeline/namerev.go3
-rw-r--r--modules/git/pipeline/revlist.go3
-rw-r--r--modules/git/ref.go3
-rw-r--r--modules/git/remote.go3
-rw-r--r--modules/git/repo.go3
-rw-r--r--modules/git/repo_archive.go3
-rw-r--r--modules/git/repo_attribute.go3
-rw-r--r--modules/git/repo_attribute_test.go3
-rw-r--r--modules/git/repo_base.go3
-rw-r--r--modules/git/repo_base_gogit.go3
-rw-r--r--modules/git/repo_base_nogogit.go3
-rw-r--r--modules/git/repo_blame.go3
-rw-r--r--modules/git/repo_blob.go3
-rw-r--r--modules/git/repo_blob_gogit.go3
-rw-r--r--modules/git/repo_blob_nogogit.go3
-rw-r--r--modules/git/repo_blob_test.go3
-rw-r--r--modules/git/repo_branch.go3
-rw-r--r--modules/git/repo_branch_gogit.go3
-rw-r--r--modules/git/repo_branch_nogogit.go3
-rw-r--r--modules/git/repo_branch_test.go3
-rw-r--r--modules/git/repo_commit.go3
-rw-r--r--modules/git/repo_commit_gogit.go3
-rw-r--r--modules/git/repo_commit_nogogit.go3
-rw-r--r--modules/git/repo_commit_test.go3
-rw-r--r--modules/git/repo_commitgraph.go3
-rw-r--r--modules/git/repo_commitgraph_gogit.go3
-rw-r--r--modules/git/repo_compare.go3
-rw-r--r--modules/git/repo_compare_test.go3
-rw-r--r--modules/git/repo_gpg.go3
-rw-r--r--modules/git/repo_hook.go3
-rw-r--r--modules/git/repo_index.go3
-rw-r--r--modules/git/repo_language_stats.go3
-rw-r--r--modules/git/repo_language_stats_gogit.go3
-rw-r--r--modules/git/repo_language_stats_nogogit.go3
-rw-r--r--modules/git/repo_language_stats_test.go3
-rw-r--r--modules/git/repo_object.go3
-rw-r--r--modules/git/repo_ref.go3
-rw-r--r--modules/git/repo_ref_gogit.go3
-rw-r--r--modules/git/repo_ref_nogogit.go3
-rw-r--r--modules/git/repo_ref_test.go3
-rw-r--r--modules/git/repo_stats.go3
-rw-r--r--modules/git/repo_stats_test.go3
-rw-r--r--modules/git/repo_tag.go3
-rw-r--r--modules/git/repo_tag_gogit.go3
-rw-r--r--modules/git/repo_tag_nogogit.go3
-rw-r--r--modules/git/repo_tag_test.go3
-rw-r--r--modules/git/repo_test.go3
-rw-r--r--modules/git/repo_tree.go3
-rw-r--r--modules/git/repo_tree_gogit.go3
-rw-r--r--modules/git/repo_tree_nogogit.go3
-rw-r--r--modules/git/sha1.go3
-rw-r--r--modules/git/sha1_gogit.go3
-rw-r--r--modules/git/sha1_nogogit.go3
-rw-r--r--modules/git/sha1_test.go3
-rw-r--r--modules/git/signature.go3
-rw-r--r--modules/git/signature_gogit.go3
-rw-r--r--modules/git/signature_nogogit.go3
-rw-r--r--modules/git/submodule.go3
-rw-r--r--modules/git/submodule_test.go3
-rw-r--r--modules/git/tag.go3
-rw-r--r--modules/git/tag_test.go3
-rw-r--r--modules/git/tree.go3
-rw-r--r--modules/git/tree_blob.go3
-rw-r--r--modules/git/tree_blob_gogit.go3
-rw-r--r--modules/git/tree_blob_nogogit.go3
-rw-r--r--modules/git/tree_entry.go3
-rw-r--r--modules/git/tree_entry_gogit.go3
-rw-r--r--modules/git/tree_entry_mode.go3
-rw-r--r--modules/git/tree_entry_nogogit.go3
-rw-r--r--modules/git/tree_entry_test.go3
-rw-r--r--modules/git/tree_gogit.go3
-rw-r--r--modules/git/tree_nogogit.go3
-rw-r--r--modules/git/url/url.go3
-rw-r--r--modules/git/url/url_test.go3
-rw-r--r--modules/git/utils.go3
-rw-r--r--modules/git/utils_test.go3
-rw-r--r--modules/gitgraph/graph.go3
-rw-r--r--modules/gitgraph/graph_models.go3
-rw-r--r--modules/gitgraph/graph_test.go3
-rw-r--r--modules/gitgraph/parser.go3
-rw-r--r--modules/graceful/context.go3
-rw-r--r--modules/graceful/manager.go3
-rw-r--r--modules/graceful/manager_unix.go3
-rw-r--r--modules/graceful/manager_windows.go3
-rw-r--r--modules/graceful/net_unix.go4
-rw-r--r--modules/graceful/net_windows.go4
-rw-r--r--modules/graceful/restart_unix.go4
-rw-r--r--modules/graceful/server.go4
-rw-r--r--modules/graceful/server_hooks.go3
-rw-r--r--modules/graceful/server_http.go3
-rw-r--r--modules/hcaptcha/hcaptcha.go3
-rw-r--r--modules/highlight/highlight.go3
-rw-r--r--modules/highlight/highlight_test.go3
-rw-r--r--modules/hostmatcher/hostmatcher.go3
-rw-r--r--modules/hostmatcher/hostmatcher_test.go3
-rw-r--r--modules/hostmatcher/http.go3
-rw-r--r--modules/html/html.go3
-rw-r--r--modules/httpcache/httpcache.go3
-rw-r--r--modules/httpcache/httpcache_test.go3
-rw-r--r--modules/httplib/httplib.go3
-rw-r--r--modules/indexer/bleve/batch.go3
-rw-r--r--modules/indexer/code/bleve.go3
-rw-r--r--modules/indexer/code/bleve_test.go3
-rw-r--r--modules/indexer/code/elastic_search.go3
-rw-r--r--modules/indexer/code/elastic_search_test.go3
-rw-r--r--modules/indexer/code/git.go3
-rw-r--r--modules/indexer/code/indexer.go3
-rw-r--r--modules/indexer/code/indexer_test.go3
-rw-r--r--modules/indexer/code/search.go3
-rw-r--r--modules/indexer/code/wrapped.go3
-rw-r--r--modules/indexer/issues/bleve.go3
-rw-r--r--modules/indexer/issues/bleve_test.go3
-rw-r--r--modules/indexer/issues/db.go3
-rw-r--r--modules/indexer/issues/elastic_search.go3
-rw-r--r--modules/indexer/issues/indexer.go3
-rw-r--r--modules/indexer/issues/indexer_test.go3
-rw-r--r--modules/indexer/stats/db.go3
-rw-r--r--modules/indexer/stats/indexer.go3
-rw-r--r--modules/indexer/stats/indexer_test.go3
-rw-r--r--modules/indexer/stats/queue.go3
-rw-r--r--modules/issue/template/template.go3
-rw-r--r--modules/issue/template/template_test.go3
-rw-r--r--modules/issue/template/unmarshal.go3
-rw-r--r--modules/json/json.go1
-rw-r--r--modules/lfs/client.go3
-rw-r--r--modules/lfs/client_test.go3
-rw-r--r--modules/lfs/content_store.go3
-rw-r--r--modules/lfs/endpoint.go3
-rw-r--r--modules/lfs/endpoint_test.go3
-rw-r--r--modules/lfs/filesystem_client.go3
-rw-r--r--modules/lfs/http_client.go3
-rw-r--r--modules/lfs/http_client_test.go3
-rw-r--r--modules/lfs/pointer.go3
-rw-r--r--modules/lfs/pointer_scanner_gogit.go3
-rw-r--r--modules/lfs/pointer_scanner_nogogit.go3
-rw-r--r--modules/lfs/pointer_test.go3
-rw-r--r--modules/lfs/shared.go3
-rw-r--r--modules/lfs/transferadapter.go3
-rw-r--r--modules/lfs/transferadapter_test.go3
-rw-r--r--modules/log/buffer.go3
-rw-r--r--modules/log/buffer_test.go3
-rw-r--r--modules/log/colors.go3
-rw-r--r--modules/log/colors_router.go3
-rw-r--r--modules/log/conn.go3
-rw-r--r--modules/log/conn_test.go3
-rw-r--r--modules/log/console.go3
-rw-r--r--modules/log/console_other.go3
-rw-r--r--modules/log/console_test.go3
-rw-r--r--modules/log/console_windows.go3
-rw-r--r--modules/log/errors.go3
-rw-r--r--modules/log/event.go3
-rw-r--r--modules/log/file.go3
-rw-r--r--modules/log/file_test.go3
-rw-r--r--modules/log/flags.go3
-rw-r--r--modules/log/groutinelabel.go3
-rw-r--r--modules/log/groutinelabel_test.go3
-rw-r--r--modules/log/level.go3
-rw-r--r--modules/log/level_test.go3
-rw-r--r--modules/log/log.go3
-rw-r--r--modules/log/log_test.go3
-rw-r--r--modules/log/logger.go3
-rw-r--r--modules/log/multichannel.go3
-rw-r--r--modules/log/provider.go3
-rw-r--r--modules/log/smtp.go3
-rw-r--r--modules/log/smtp_test.go3
-rw-r--r--modules/log/stack.go3
-rw-r--r--modules/log/writer.go3
-rw-r--r--modules/log/writer_test.go3
-rw-r--r--modules/markup/camo.go3
-rw-r--r--modules/markup/camo_test.go3
-rw-r--r--modules/markup/common/footnote.go3
-rw-r--r--modules/markup/common/html.go3
-rw-r--r--modules/markup/common/linkify.go3
-rw-r--r--modules/markup/console/console.go3
-rw-r--r--modules/markup/console/console_test.go3
-rw-r--r--modules/markup/csv/csv.go3
-rw-r--r--modules/markup/csv/csv_test.go3
-rw-r--r--modules/markup/external/external.go3
-rw-r--r--modules/markup/html.go3
-rw-r--r--modules/markup/html_internal_test.go4
-rw-r--r--modules/markup/html_test.go3
-rw-r--r--modules/markup/markdown/ast.go3
-rw-r--r--modules/markup/markdown/convertyaml.go3
-rw-r--r--modules/markup/markdown/goldmark.go3
-rw-r--r--modules/markup/markdown/markdown.go3
-rw-r--r--modules/markup/markdown/markdown_test.go3
-rw-r--r--modules/markup/markdown/math/block_node.go3
-rw-r--r--modules/markup/markdown/math/block_parser.go3
-rw-r--r--modules/markup/markdown/math/block_renderer.go3
-rw-r--r--modules/markup/markdown/math/inline_node.go3
-rw-r--r--modules/markup/markdown/math/inline_parser.go3
-rw-r--r--modules/markup/markdown/math/inline_renderer.go3
-rw-r--r--modules/markup/markdown/math/math.go3
-rw-r--r--modules/markup/markdown/meta.go3
-rw-r--r--modules/markup/markdown/meta_test.go3
-rw-r--r--modules/markup/markdown/renderconfig.go3
-rw-r--r--modules/markup/markdown/renderconfig_test.go3
-rw-r--r--modules/markup/markdown/toc.go3
-rw-r--r--modules/markup/mdstripper/mdstripper.go3
-rw-r--r--modules/markup/mdstripper/mdstripper_test.go3
-rw-r--r--modules/markup/orgmode/orgmode.go3
-rw-r--r--modules/markup/orgmode/orgmode_test.go3
-rw-r--r--modules/markup/renderer.go3
-rw-r--r--modules/markup/renderer_test.go3
-rw-r--r--modules/markup/sanitizer.go3
-rw-r--r--modules/markup/sanitizer_test.go3
-rw-r--r--modules/mcaptcha/mcaptcha.go3
-rwxr-xr-xmodules/metrics/collector.go3
-rw-r--r--modules/migration/comment.go3
-rw-r--r--modules/migration/downloader.go3
-rw-r--r--modules/migration/error.go3
-rw-r--r--modules/migration/file_format.go3
-rw-r--r--modules/migration/file_format_test.go3
-rw-r--r--modules/migration/issue.go3
-rw-r--r--modules/migration/label.go3
-rw-r--r--modules/migration/messenger.go3
-rw-r--r--modules/migration/milestone.go3
-rw-r--r--modules/migration/null_downloader.go3
-rw-r--r--modules/migration/options.go3
-rw-r--r--modules/migration/pullrequest.go3
-rw-r--r--modules/migration/reaction.go3
-rw-r--r--modules/migration/release.go3
-rw-r--r--modules/migration/repo.go3
-rw-r--r--modules/migration/retry_downloader.go3
-rw-r--r--modules/migration/review.go3
-rw-r--r--modules/migration/schemas_bindata.go3
-rw-r--r--modules/migration/schemas_dynamic.go3
-rw-r--r--modules/migration/schemas_static.go3
-rw-r--r--modules/migration/uploader.go3
-rw-r--r--modules/mirror/mirror.go3
-rw-r--r--modules/nosql/leveldb.go3
-rw-r--r--modules/nosql/manager.go3
-rw-r--r--modules/nosql/manager_leveldb.go3
-rw-r--r--modules/nosql/manager_redis.go3
-rw-r--r--modules/nosql/manager_redis_test.go3
-rw-r--r--modules/nosql/redis.go3
-rw-r--r--modules/nosql/redis_test.go3
-rw-r--r--modules/notification/action/action.go3
-rw-r--r--modules/notification/action/action_test.go3
-rw-r--r--modules/notification/base/notifier.go3
-rw-r--r--modules/notification/base/null.go3
-rw-r--r--modules/notification/indexer/indexer.go3
-rw-r--r--modules/notification/mail/mail.go3
-rw-r--r--modules/notification/mirror/mirror.go3
-rw-r--r--modules/notification/notification.go3
-rw-r--r--modules/notification/ui/ui.go3
-rw-r--r--modules/notification/webhook/webhook.go3
-rw-r--r--modules/options/base.go3
-rw-r--r--modules/options/dynamic.go3
-rw-r--r--modules/options/options.go3
-rw-r--r--modules/options/options_bindata.go3
-rw-r--r--modules/options/static.go3
-rw-r--r--modules/packages/composer/metadata.go3
-rw-r--r--modules/packages/composer/metadata_test.go3
-rw-r--r--modules/packages/conan/conanfile_parser.go3
-rw-r--r--modules/packages/conan/conanfile_parser_test.go3
-rw-r--r--modules/packages/conan/conaninfo_parser.go3
-rw-r--r--modules/packages/conan/conaninfo_parser_test.go3
-rw-r--r--modules/packages/conan/metadata.go3
-rw-r--r--modules/packages/conan/reference.go3
-rw-r--r--modules/packages/conan/reference_test.go3
-rw-r--r--modules/packages/container/helm/helm.go3
-rw-r--r--modules/packages/container/metadata.go3
-rw-r--r--modules/packages/container/metadata_test.go3
-rw-r--r--modules/packages/container/oci/digest.go3
-rw-r--r--modules/packages/container/oci/mediatype.go3
-rw-r--r--modules/packages/container/oci/oci.go3
-rw-r--r--modules/packages/container/oci/reference.go3
-rw-r--r--modules/packages/content_store.go3
-rw-r--r--modules/packages/hashed_buffer.go3
-rw-r--r--modules/packages/hashed_buffer_test.go3
-rw-r--r--modules/packages/helm/metadata.go3
-rw-r--r--modules/packages/maven/metadata.go3
-rw-r--r--modules/packages/maven/metadata_test.go3
-rw-r--r--modules/packages/multi_hasher.go3
-rw-r--r--modules/packages/multi_hasher_test.go3
-rw-r--r--modules/packages/npm/creator.go3
-rw-r--r--modules/packages/npm/creator_test.go3
-rw-r--r--modules/packages/npm/metadata.go3
-rw-r--r--modules/packages/nuget/metadata.go3
-rw-r--r--modules/packages/nuget/metadata_test.go3
-rw-r--r--modules/packages/nuget/symbol_extractor.go3
-rw-r--r--modules/packages/nuget/symbol_extractor_test.go3
-rw-r--r--modules/packages/pub/metadata.go3
-rw-r--r--modules/packages/pub/metadata_test.go3
-rw-r--r--modules/packages/pypi/metadata.go3
-rw-r--r--modules/packages/rubygems/marshal.go3
-rw-r--r--modules/packages/rubygems/marshal_test.go3
-rw-r--r--modules/packages/rubygems/metadata.go3
-rw-r--r--modules/packages/rubygems/metadata_test.go3
-rw-r--r--modules/packages/vagrant/metadata.go3
-rw-r--r--modules/packages/vagrant/metadata_test.go3
-rw-r--r--modules/password/password.go3
-rw-r--r--modules/password/password_test.go3
-rw-r--r--modules/password/pwn.go3
-rw-r--r--modules/pprof/pprof.go3
-rw-r--r--modules/private/hook.go3
-rw-r--r--modules/private/internal.go3
-rw-r--r--modules/private/key.go3
-rw-r--r--modules/private/mail.go3
-rw-r--r--modules/private/manager.go3
-rw-r--r--modules/private/restore_repo.go3
-rw-r--r--modules/private/serv.go3
-rw-r--r--modules/process/context.go3
-rw-r--r--modules/process/error.go3
-rw-r--r--modules/process/manager.go3
-rw-r--r--modules/process/manager_exec.go3
-rw-r--r--modules/process/manager_stacktraces.go3
-rw-r--r--modules/process/manager_test.go3
-rw-r--r--modules/process/manager_unix.go3
-rw-r--r--modules/process/manager_windows.go3
-rw-r--r--modules/process/process.go3
-rw-r--r--modules/proxy/proxy.go3
-rw-r--r--modules/proxyprotocol/conn.go3
-rw-r--r--modules/proxyprotocol/errors.go3
-rw-r--r--modules/proxyprotocol/listener.go3
-rw-r--r--modules/proxyprotocol/util.go3
-rw-r--r--modules/public/mime_types.go3
-rw-r--r--modules/public/public.go3
-rw-r--r--modules/public/public_bindata.go3
-rw-r--r--modules/public/public_test.go3
-rw-r--r--modules/public/serve_dynamic.go3
-rw-r--r--modules/public/serve_static.go3
-rw-r--r--modules/queue/bytefifo.go3
-rw-r--r--modules/queue/helper.go3
-rw-r--r--modules/queue/manager.go3
-rw-r--r--modules/queue/queue.go3
-rw-r--r--modules/queue/queue_bytefifo.go3
-rw-r--r--modules/queue/queue_channel.go3
-rw-r--r--modules/queue/queue_channel_test.go3
-rw-r--r--modules/queue/queue_disk.go3
-rw-r--r--modules/queue/queue_disk_channel.go3
-rw-r--r--modules/queue/queue_disk_channel_test.go3
-rw-r--r--modules/queue/queue_disk_test.go3
-rw-r--r--modules/queue/queue_redis.go3
-rw-r--r--modules/queue/queue_test.go3
-rw-r--r--modules/queue/queue_wrapped.go3
-rw-r--r--modules/queue/setting.go3
-rw-r--r--modules/queue/unique_queue.go3
-rw-r--r--modules/queue/unique_queue_channel.go3
-rw-r--r--modules/queue/unique_queue_channel_test.go3
-rw-r--r--modules/queue/unique_queue_disk.go3
-rw-r--r--modules/queue/unique_queue_disk_channel.go3
-rw-r--r--modules/queue/unique_queue_redis.go3
-rw-r--r--modules/queue/unique_queue_wrapped.go3
-rw-r--r--modules/queue/workerpool.go3
-rw-r--r--modules/recaptcha/recaptcha.go3
-rw-r--r--modules/references/references.go3
-rw-r--r--modules/references/references_test.go3
-rw-r--r--modules/regexplru/regexplru.go3
-rw-r--r--modules/regexplru/regexplru_test.go3
-rw-r--r--modules/repository/collaborator.go3
-rw-r--r--modules/repository/collaborator_test.go3
-rw-r--r--modules/repository/commits.go3
-rw-r--r--modules/repository/commits_test.go3
-rw-r--r--modules/repository/create.go3
-rw-r--r--modules/repository/create_test.go3
-rw-r--r--modules/repository/delete.go3
-rw-r--r--modules/repository/env.go3
-rw-r--r--modules/repository/fork.go3
-rw-r--r--modules/repository/generate.go3
-rw-r--r--modules/repository/generate_test.go3
-rw-r--r--modules/repository/hooks.go3
-rw-r--r--modules/repository/init.go3
-rw-r--r--modules/repository/main_test.go3
-rw-r--r--modules/repository/push.go3
-rw-r--r--modules/repository/repo.go3
-rw-r--r--modules/repository/temp.go3
-rw-r--r--modules/secret/secret.go3
-rw-r--r--modules/secret/secret_test.go3
-rw-r--r--modules/session/db.go3
-rw-r--r--modules/session/store.go3
-rw-r--r--modules/session/virtual.go3
-rw-r--r--modules/setting/attachment.go3
-rw-r--r--modules/setting/cache.go3
-rw-r--r--modules/setting/cors.go3
-rw-r--r--modules/setting/cron.go3
-rw-r--r--modules/setting/cron_test.go3
-rw-r--r--modules/setting/database.go3
-rw-r--r--modules/setting/database_sqlite.go3
-rw-r--r--modules/setting/database_test.go3
-rw-r--r--modules/setting/directory.go3
-rw-r--r--modules/setting/federation.go3
-rw-r--r--modules/setting/git.go3
-rw-r--r--modules/setting/i18n.go3
-rw-r--r--modules/setting/indexer.go3
-rw-r--r--modules/setting/indexer_test.go3
-rw-r--r--modules/setting/lfs.go3
-rw-r--r--modules/setting/log.go3
-rw-r--r--modules/setting/mailer.go3
-rw-r--r--modules/setting/markup.go3
-rw-r--r--modules/setting/migrations.go3
-rw-r--r--modules/setting/mime_type_map.go3
-rw-r--r--modules/setting/mirror.go3
-rw-r--r--modules/setting/oauth2_client.go3
-rw-r--r--modules/setting/packages.go3
-rw-r--r--modules/setting/packages_test.go3
-rw-r--r--modules/setting/picture.go3
-rw-r--r--modules/setting/project.go3
-rw-r--r--modules/setting/proxy.go3
-rw-r--r--modules/setting/queue.go3
-rw-r--r--modules/setting/repository.go3
-rw-r--r--modules/setting/service.go3
-rw-r--r--modules/setting/session.go3
-rw-r--r--modules/setting/setting.go3
-rw-r--r--modules/setting/setting_test.go3
-rw-r--r--modules/setting/storage.go3
-rw-r--r--modules/setting/storage_test.go3
-rw-r--r--modules/setting/task.go3
-rw-r--r--modules/setting/webhook.go3
-rw-r--r--modules/sitemap/sitemap.go3
-rw-r--r--modules/sitemap/sitemap_test.go3
-rw-r--r--modules/ssh/init.go3
-rw-r--r--modules/ssh/ssh.go3
-rw-r--r--modules/ssh/ssh_graceful.go3
-rw-r--r--modules/storage/helper.go3
-rw-r--r--modules/storage/local.go3
-rw-r--r--modules/storage/local_test.go3
-rw-r--r--modules/storage/minio.go3
-rw-r--r--modules/storage/storage.go3
-rw-r--r--modules/structs/activitypub.go3
-rw-r--r--modules/structs/admin_user.go3
-rw-r--r--modules/structs/attachment.go3
-rw-r--r--modules/structs/commit_status.go3
-rw-r--r--modules/structs/cron.go3
-rw-r--r--modules/structs/doc.go3
-rw-r--r--modules/structs/fork.go3
-rw-r--r--modules/structs/git_blob.go3
-rw-r--r--modules/structs/git_hook.go3
-rw-r--r--modules/structs/hook.go3
-rw-r--r--modules/structs/issue.go3
-rw-r--r--modules/structs/issue_comment.go3
-rw-r--r--modules/structs/issue_label.go3
-rw-r--r--modules/structs/issue_milestone.go3
-rw-r--r--modules/structs/issue_reaction.go3
-rw-r--r--modules/structs/issue_stopwatch.go3
-rw-r--r--modules/structs/issue_test.go3
-rw-r--r--modules/structs/issue_tracked_time.go3
-rw-r--r--modules/structs/lfs_lock.go3
-rw-r--r--modules/structs/mirror.go3
-rw-r--r--modules/structs/miscellaneous.go3
-rw-r--r--modules/structs/nodeinfo.go3
-rw-r--r--modules/structs/notifications.go3
-rw-r--r--modules/structs/org.go3
-rw-r--r--modules/structs/org_member.go3
-rw-r--r--modules/structs/org_team.go3
-rw-r--r--modules/structs/org_type.go3
-rw-r--r--modules/structs/package.go3
-rw-r--r--modules/structs/pull.go3
-rw-r--r--modules/structs/pull_review.go3
-rw-r--r--modules/structs/release.go3
-rw-r--r--modules/structs/repo.go3
-rw-r--r--modules/structs/repo_branch.go3
-rw-r--r--modules/structs/repo_collaborator.go3
-rw-r--r--modules/structs/repo_commit.go3
-rw-r--r--modules/structs/repo_file.go3
-rw-r--r--modules/structs/repo_key.go3
-rw-r--r--modules/structs/repo_note.go3
-rw-r--r--modules/structs/repo_refs.go3
-rw-r--r--modules/structs/repo_tag.go3
-rw-r--r--modules/structs/repo_topic.go3
-rw-r--r--modules/structs/repo_tree.go3
-rw-r--r--modules/structs/repo_watch.go3
-rw-r--r--modules/structs/repo_wiki.go3
-rw-r--r--modules/structs/settings.go3
-rw-r--r--modules/structs/status.go3
-rw-r--r--modules/structs/task.go3
-rw-r--r--modules/structs/user.go3
-rw-r--r--modules/structs/user_app.go3
-rw-r--r--modules/structs/user_email.go3
-rw-r--r--modules/structs/user_gpgkey.go3
-rw-r--r--modules/structs/user_key.go3
-rw-r--r--modules/svg/discover_bindata.go3
-rw-r--r--modules/svg/discover_nobindata.go3
-rw-r--r--modules/svg/svg.go3
-rw-r--r--modules/sync/exclusive_pool.go3
-rw-r--r--modules/sync/status_pool.go3
-rw-r--r--modules/sync/status_pool_test.go3
-rw-r--r--modules/system/appstate.go3
-rw-r--r--modules/system/appstate_test.go3
-rw-r--r--modules/system/db.go3
-rw-r--r--modules/system/item_runtime.go3
-rw-r--r--modules/templates/base.go3
-rw-r--r--modules/templates/dynamic.go3
-rw-r--r--modules/templates/helper.go3
-rw-r--r--modules/templates/helper_test.go3
-rw-r--r--modules/templates/htmlrenderer.go3
-rw-r--r--modules/templates/mailer.go3
-rw-r--r--modules/templates/static.go3
-rw-r--r--modules/templates/templates_bindata.go3
-rw-r--r--modules/templates/vars/vars.go3
-rw-r--r--modules/templates/vars/vars_test.go3
-rw-r--r--modules/test/context_tests.go3
-rw-r--r--modules/test/utils.go3
-rw-r--r--modules/timeutil/executable.go3
-rw-r--r--modules/timeutil/language.go3
-rw-r--r--modules/timeutil/since.go3
-rw-r--r--modules/timeutil/since_test.go3
-rw-r--r--modules/timeutil/timestamp.go3
-rw-r--r--modules/translation/i18n/errors.go3
-rw-r--r--modules/translation/i18n/format.go3
-rw-r--r--modules/translation/i18n/i18n.go3
-rw-r--r--modules/translation/i18n/i18n_test.go3
-rw-r--r--modules/translation/i18n/localestore.go3
-rw-r--r--modules/translation/translation.go3
-rw-r--r--modules/typesniffer/typesniffer.go3
-rw-r--r--modules/typesniffer/typesniffer_test.go3
-rw-r--r--modules/updatechecker/update_checker.go3
-rw-r--r--modules/upload/upload.go3
-rw-r--r--modules/upload/upload_test.go3
-rw-r--r--modules/uri/uri.go3
-rw-r--r--modules/uri/uri_test.go3
-rw-r--r--modules/user/user.go3
-rw-r--r--modules/user/user_test.go3
-rw-r--r--modules/util/compare.go3
-rw-r--r--modules/util/error.go3
-rw-r--r--modules/util/file_unix.go3
-rw-r--r--modules/util/file_unix_test.go3
-rw-r--r--modules/util/file_windows.go3
-rw-r--r--modules/util/filebuffer/file_backed_buffer.go3
-rw-r--r--modules/util/filebuffer/file_backed_buffer_test.go3
-rw-r--r--modules/util/io.go3
-rw-r--r--modules/util/legacy.go3
-rw-r--r--modules/util/legacy_test.go3
-rw-r--r--modules/util/paginate.go3
-rw-r--r--modules/util/paginate_test.go3
-rw-r--r--modules/util/path.go3
-rw-r--r--modules/util/path_test.go3
-rw-r--r--modules/util/remove.go3
-rw-r--r--modules/util/sanitize.go3
-rw-r--r--modules/util/sanitize_test.go3
-rw-r--r--modules/util/sec_to_time.go3
-rw-r--r--modules/util/sec_to_time_test.go3
-rw-r--r--modules/util/shellquote.go3
-rw-r--r--modules/util/shellquote_test.go3
-rw-r--r--modules/util/slice.go3
-rw-r--r--modules/util/string.go3
-rw-r--r--modules/util/string_test.go3
-rw-r--r--modules/util/timer.go3
-rw-r--r--modules/util/truncate.go3
-rw-r--r--modules/util/truncate_test.go3
-rw-r--r--modules/util/url.go3
-rw-r--r--modules/util/util.go3
-rw-r--r--modules/util/util_test.go3
-rw-r--r--modules/validation/binding.go3
-rw-r--r--modules/validation/binding_test.go3
-rw-r--r--modules/validation/glob_pattern_test.go3
-rw-r--r--modules/validation/helpers.go3
-rw-r--r--modules/validation/helpers_test.go3
-rw-r--r--modules/validation/refname_test.go3
-rw-r--r--modules/validation/regex_pattern_test.go3
-rw-r--r--modules/validation/validurl_test.go3
-rw-r--r--modules/watcher/watcher.go3
-rw-r--r--modules/web/middleware/binding.go3
-rw-r--r--modules/web/middleware/cookie.go3
-rw-r--r--modules/web/middleware/data.go3
-rw-r--r--modules/web/middleware/flash.go3
-rw-r--r--modules/web/middleware/locale.go3
-rw-r--r--modules/web/middleware/request.go3
-rw-r--r--modules/web/route.go3
-rw-r--r--modules/web/route_test.go3
-rw-r--r--modules/web/routing/context.go3
-rw-r--r--modules/web/routing/funcinfo.go3
-rw-r--r--modules/web/routing/funcinfo_test.go3
-rw-r--r--modules/web/routing/logger.go3
-rw-r--r--modules/web/routing/logger_manager.go3
-rw-r--r--modules/web/routing/requestrecord.go3
-rw-r--r--modules/web/wrap.go3
-rw-r--r--modules/web/wrap_convert.go3
-rw-r--r--routers/api/packages/api.go3
-rw-r--r--routers/api/packages/composer/api.go3
-rw-r--r--routers/api/packages/composer/composer.go3
-rw-r--r--routers/api/packages/conan/auth.go3
-rw-r--r--routers/api/packages/conan/conan.go3
-rw-r--r--routers/api/packages/conan/search.go3
-rw-r--r--routers/api/packages/container/auth.go3
-rw-r--r--routers/api/packages/container/blob.go3
-rw-r--r--routers/api/packages/container/container.go3
-rw-r--r--routers/api/packages/container/errors.go3
-rw-r--r--routers/api/packages/container/manifest.go3
-rw-r--r--routers/api/packages/generic/generic.go3
-rw-r--r--routers/api/packages/helm/helm.go3
-rw-r--r--routers/api/packages/helper/helper.go3
-rw-r--r--routers/api/packages/maven/api.go3
-rw-r--r--routers/api/packages/maven/maven.go3
-rw-r--r--routers/api/packages/npm/api.go3
-rw-r--r--routers/api/packages/npm/npm.go3
-rw-r--r--routers/api/packages/nuget/api_v2.go3
-rw-r--r--routers/api/packages/nuget/api_v3.go3
-rw-r--r--routers/api/packages/nuget/auth.go3
-rw-r--r--routers/api/packages/nuget/links.go3
-rw-r--r--routers/api/packages/nuget/nuget.go3
-rw-r--r--routers/api/packages/pub/pub.go3
-rw-r--r--routers/api/packages/pypi/pypi.go3
-rw-r--r--routers/api/packages/pypi/pypi_test.go3
-rw-r--r--routers/api/packages/rubygems/rubygems.go3
-rw-r--r--routers/api/packages/vagrant/vagrant.go3
-rw-r--r--routers/api/v1/activitypub/person.go3
-rw-r--r--routers/api/v1/activitypub/reqsignature.go3
-rw-r--r--routers/api/v1/admin/adopt.go3
-rw-r--r--routers/api/v1/admin/cron.go3
-rw-r--r--routers/api/v1/admin/org.go3
-rw-r--r--routers/api/v1/admin/repo.go3
-rw-r--r--routers/api/v1/admin/user.go3
-rw-r--r--routers/api/v1/api.go3
-rw-r--r--routers/api/v1/auth.go3
-rw-r--r--routers/api/v1/auth_windows.go3
-rw-r--r--routers/api/v1/misc/markdown.go3
-rw-r--r--routers/api/v1/misc/markdown_test.go3
-rw-r--r--routers/api/v1/misc/nodeinfo.go3
-rw-r--r--routers/api/v1/misc/signing.go3
-rw-r--r--routers/api/v1/misc/version.go3
-rw-r--r--routers/api/v1/notify/notifications.go3
-rw-r--r--routers/api/v1/notify/repo.go3
-rw-r--r--routers/api/v1/notify/threads.go3
-rw-r--r--routers/api/v1/notify/user.go3
-rw-r--r--routers/api/v1/org/hook.go3
-rw-r--r--routers/api/v1/org/label.go3
-rw-r--r--routers/api/v1/org/member.go3
-rw-r--r--routers/api/v1/org/org.go3
-rw-r--r--routers/api/v1/org/team.go3
-rw-r--r--routers/api/v1/packages/package.go3
-rw-r--r--routers/api/v1/repo/blob.go3
-rw-r--r--routers/api/v1/repo/branch.go3
-rw-r--r--routers/api/v1/repo/collaborators.go3
-rw-r--r--routers/api/v1/repo/commits.go3
-rw-r--r--routers/api/v1/repo/file.go3
-rw-r--r--routers/api/v1/repo/fork.go3
-rw-r--r--routers/api/v1/repo/git_hook.go3
-rw-r--r--routers/api/v1/repo/git_ref.go3
-rw-r--r--routers/api/v1/repo/hook.go3
-rw-r--r--routers/api/v1/repo/hook_test.go3
-rw-r--r--routers/api/v1/repo/issue.go3
-rw-r--r--routers/api/v1/repo/issue_comment.go3
-rw-r--r--routers/api/v1/repo/issue_label.go3
-rw-r--r--routers/api/v1/repo/issue_reaction.go3
-rw-r--r--routers/api/v1/repo/issue_stopwatch.go3
-rw-r--r--routers/api/v1/repo/issue_subscription.go3
-rw-r--r--routers/api/v1/repo/issue_tracked_time.go3
-rw-r--r--routers/api/v1/repo/key.go3
-rw-r--r--routers/api/v1/repo/label.go3
-rw-r--r--routers/api/v1/repo/language.go3
-rw-r--r--routers/api/v1/repo/main_test.go3
-rw-r--r--routers/api/v1/repo/migrate.go3
-rw-r--r--routers/api/v1/repo/milestone.go3
-rw-r--r--routers/api/v1/repo/mirror.go3
-rw-r--r--routers/api/v1/repo/notes.go3
-rw-r--r--routers/api/v1/repo/patch.go3
-rw-r--r--routers/api/v1/repo/pull.go3
-rw-r--r--routers/api/v1/repo/pull_review.go3
-rw-r--r--routers/api/v1/repo/release.go3
-rw-r--r--routers/api/v1/repo/release_attachment.go3
-rw-r--r--routers/api/v1/repo/release_tags.go3
-rw-r--r--routers/api/v1/repo/repo.go3
-rw-r--r--routers/api/v1/repo/repo_test.go3
-rw-r--r--routers/api/v1/repo/star.go3
-rw-r--r--routers/api/v1/repo/status.go3
-rw-r--r--routers/api/v1/repo/subscriber.go3
-rw-r--r--routers/api/v1/repo/tag.go3
-rw-r--r--routers/api/v1/repo/teams.go3
-rw-r--r--routers/api/v1/repo/topic.go3
-rw-r--r--routers/api/v1/repo/transfer.go3
-rw-r--r--routers/api/v1/repo/tree.go3
-rw-r--r--routers/api/v1/repo/wiki.go3
-rw-r--r--routers/api/v1/settings/settings.go3
-rw-r--r--routers/api/v1/swagger/activitypub.go3
-rw-r--r--routers/api/v1/swagger/app.go3
-rw-r--r--routers/api/v1/swagger/cron.go3
-rw-r--r--routers/api/v1/swagger/issue.go3
-rw-r--r--routers/api/v1/swagger/key.go3
-rw-r--r--routers/api/v1/swagger/misc.go3
-rw-r--r--routers/api/v1/swagger/nodeinfo.go3
-rw-r--r--routers/api/v1/swagger/notify.go3
-rw-r--r--routers/api/v1/swagger/options.go3
-rw-r--r--routers/api/v1/swagger/org.go3
-rw-r--r--routers/api/v1/swagger/package.go3
-rw-r--r--routers/api/v1/swagger/repo.go3
-rw-r--r--routers/api/v1/swagger/settings.go3
-rw-r--r--routers/api/v1/swagger/user.go3
-rw-r--r--routers/api/v1/user/app.go3
-rw-r--r--routers/api/v1/user/email.go3
-rw-r--r--routers/api/v1/user/follower.go3
-rw-r--r--routers/api/v1/user/gpg_key.go3
-rw-r--r--routers/api/v1/user/helper.go3
-rw-r--r--routers/api/v1/user/key.go3
-rw-r--r--routers/api/v1/user/repo.go3
-rw-r--r--routers/api/v1/user/settings.go3
-rw-r--r--routers/api/v1/user/star.go3
-rw-r--r--routers/api/v1/user/user.go3
-rw-r--r--routers/api/v1/user/watch.go3
-rw-r--r--routers/api/v1/utils/git.go3
-rw-r--r--routers/api/v1/utils/hook.go3
-rw-r--r--routers/api/v1/utils/page.go3
-rw-r--r--routers/common/db.go3
-rw-r--r--routers/common/middleware.go3
-rw-r--r--routers/common/repo.go3
-rw-r--r--routers/init.go3
-rw-r--r--routers/install/install.go3
-rw-r--r--routers/install/routes.go3
-rw-r--r--routers/install/routes_test.go3
-rw-r--r--routers/install/setting.go3
-rw-r--r--routers/private/default_branch.go3
-rw-r--r--routers/private/hook_post_receive.go3
-rw-r--r--routers/private/hook_pre_receive.go3
-rw-r--r--routers/private/hook_proc_receive.go3
-rw-r--r--routers/private/hook_verification.go3
-rw-r--r--routers/private/internal.go3
-rw-r--r--routers/private/internal_repo.go3
-rw-r--r--routers/private/key.go3
-rw-r--r--routers/private/mail.go3
-rw-r--r--routers/private/manager.go3
-rw-r--r--routers/private/manager_process.go3
-rw-r--r--routers/private/manager_unix.go3
-rw-r--r--routers/private/manager_windows.go3
-rw-r--r--routers/private/restore_repo.go3
-rw-r--r--routers/private/serv.go3
-rw-r--r--routers/private/ssh_log.go3
-rw-r--r--routers/utils/utils.go3
-rw-r--r--routers/utils/utils_test.go3
-rw-r--r--routers/web/admin/admin.go3
-rw-r--r--routers/web/admin/admin_test.go3
-rw-r--r--routers/web/admin/applications.go3
-rw-r--r--routers/web/admin/auths.go3
-rw-r--r--routers/web/admin/config.go3
-rw-r--r--routers/web/admin/emails.go3
-rw-r--r--routers/web/admin/hooks.go3
-rw-r--r--routers/web/admin/main_test.go3
-rw-r--r--routers/web/admin/notice.go3
-rw-r--r--routers/web/admin/orgs.go3
-rw-r--r--routers/web/admin/packages.go3
-rw-r--r--routers/web/admin/repos.go3
-rw-r--r--routers/web/admin/users.go3
-rw-r--r--routers/web/admin/users_test.go3
-rw-r--r--routers/web/auth.go3
-rw-r--r--routers/web/auth/2fa.go3
-rw-r--r--routers/web/auth/auth.go3
-rw-r--r--routers/web/auth/linkaccount.go3
-rw-r--r--routers/web/auth/main_test.go3
-rw-r--r--routers/web/auth/oauth.go3
-rw-r--r--routers/web/auth/oauth_test.go3
-rw-r--r--routers/web/auth/openid.go3
-rw-r--r--routers/web/auth/password.go3
-rw-r--r--routers/web/auth/webauthn.go3
-rw-r--r--routers/web/auth_windows.go3
-rw-r--r--routers/web/base.go3
-rw-r--r--routers/web/events/events.go3
-rw-r--r--routers/web/explore/code.go3
-rw-r--r--routers/web/explore/org.go3
-rw-r--r--routers/web/explore/repo.go3
-rw-r--r--routers/web/explore/topic.go3
-rw-r--r--routers/web/explore/user.go3
-rw-r--r--routers/web/feed/convert.go3
-rw-r--r--routers/web/feed/profile.go3
-rw-r--r--routers/web/feed/repo.go3
-rw-r--r--routers/web/goget.go3
-rw-r--r--routers/web/healthcheck/check.go3
-rw-r--r--routers/web/home.go3
-rw-r--r--routers/web/metrics.go3
-rw-r--r--routers/web/misc/markdown.go3
-rw-r--r--routers/web/misc/swagger.go3
-rw-r--r--routers/web/nodeinfo.go3
-rw-r--r--routers/web/org/home.go3
-rw-r--r--routers/web/org/members.go3
-rw-r--r--routers/web/org/org.go3
-rw-r--r--routers/web/org/org_labels.go3
-rw-r--r--routers/web/org/setting.go3
-rw-r--r--routers/web/org/setting_oauth2.go3
-rw-r--r--routers/web/org/teams.go3
-rw-r--r--routers/web/repo/activity.go3
-rw-r--r--routers/web/repo/attachment.go3
-rw-r--r--routers/web/repo/blame.go3
-rw-r--r--routers/web/repo/branch.go3
-rw-r--r--routers/web/repo/cherry_pick.go3
-rw-r--r--routers/web/repo/commit.go3
-rw-r--r--routers/web/repo/compare.go3
-rw-r--r--routers/web/repo/download.go3
-rw-r--r--routers/web/repo/editor.go3
-rw-r--r--routers/web/repo/editor_test.go3
-rw-r--r--routers/web/repo/find.go3
-rw-r--r--routers/web/repo/http.go3
-rw-r--r--routers/web/repo/http_test.go3
-rw-r--r--routers/web/repo/issue.go3
-rw-r--r--routers/web/repo/issue_content_history.go3
-rw-r--r--routers/web/repo/issue_dependency.go3
-rw-r--r--routers/web/repo/issue_label.go3
-rw-r--r--routers/web/repo/issue_label_test.go3
-rw-r--r--routers/web/repo/issue_lock.go3
-rw-r--r--routers/web/repo/issue_stopwatch.go3
-rw-r--r--routers/web/repo/issue_test.go3
-rw-r--r--routers/web/repo/issue_timetrack.go3
-rw-r--r--routers/web/repo/issue_watch.go3
-rw-r--r--routers/web/repo/lfs.go3
-rw-r--r--routers/web/repo/main_test.go3
-rw-r--r--routers/web/repo/middlewares.go3
-rw-r--r--routers/web/repo/migrate.go3
-rw-r--r--routers/web/repo/milestone.go3
-rw-r--r--routers/web/repo/packages.go3
-rw-r--r--routers/web/repo/patch.go3
-rw-r--r--routers/web/repo/projects.go3
-rw-r--r--routers/web/repo/projects_test.go3
-rw-r--r--routers/web/repo/pull.go3
-rw-r--r--routers/web/repo/pull_review.go3
-rw-r--r--routers/web/repo/release.go3
-rw-r--r--routers/web/repo/release_test.go3
-rw-r--r--routers/web/repo/render.go3
-rw-r--r--routers/web/repo/repo.go3
-rw-r--r--routers/web/repo/search.go3
-rw-r--r--routers/web/repo/setting.go3
-rw-r--r--routers/web/repo/setting_protected_branch.go3
-rw-r--r--routers/web/repo/settings_test.go3
-rw-r--r--routers/web/repo/tag.go3
-rw-r--r--routers/web/repo/topic.go3
-rw-r--r--routers/web/repo/treelist.go3
-rw-r--r--routers/web/repo/view.go3
-rw-r--r--routers/web/repo/view_test.go3
-rw-r--r--routers/web/repo/webhook.go3
-rw-r--r--routers/web/repo/wiki.go3
-rw-r--r--routers/web/repo/wiki_test.go3
-rw-r--r--routers/web/swagger_json.go3
-rw-r--r--routers/web/user/avatar.go3
-rw-r--r--routers/web/user/code.go3
-rw-r--r--routers/web/user/home.go3
-rw-r--r--routers/web/user/home_test.go3
-rw-r--r--routers/web/user/main_test.go3
-rw-r--r--routers/web/user/notification.go3
-rw-r--r--routers/web/user/package.go3
-rw-r--r--routers/web/user/profile.go3
-rw-r--r--routers/web/user/search.go3
-rw-r--r--routers/web/user/setting/account.go3
-rw-r--r--routers/web/user/setting/account_test.go3
-rw-r--r--routers/web/user/setting/adopt.go3
-rw-r--r--routers/web/user/setting/applications.go3
-rw-r--r--routers/web/user/setting/keys.go3
-rw-r--r--routers/web/user/setting/main_test.go3
-rw-r--r--routers/web/user/setting/oauth2.go3
-rw-r--r--routers/web/user/setting/oauth2_common.go3
-rw-r--r--routers/web/user/setting/profile.go3
-rw-r--r--routers/web/user/setting/security/2fa.go3
-rw-r--r--routers/web/user/setting/security/openid.go3
-rw-r--r--routers/web/user/setting/security/security.go3
-rw-r--r--routers/web/user/setting/security/webauthn.go3
-rw-r--r--routers/web/user/stop_watch.go3
-rw-r--r--routers/web/user/task.go3
-rw-r--r--routers/web/web.go3
-rw-r--r--routers/web/webfinger.go3
-rw-r--r--services/agit/agit.go3
-rw-r--r--services/asymkey/deploy_key.go3
-rw-r--r--services/asymkey/main_test.go3
-rw-r--r--services/asymkey/sign.go3
-rw-r--r--services/asymkey/ssh_key.go3
-rw-r--r--services/asymkey/ssh_key_test.go3
-rw-r--r--services/attachment/attachment.go3
-rw-r--r--services/attachment/attachment_test.go3
-rw-r--r--services/auth/auth.go3
-rw-r--r--services/auth/auth_test.go3
-rw-r--r--services/auth/basic.go3
-rw-r--r--services/auth/group.go3
-rw-r--r--services/auth/httpsign.go3
-rw-r--r--services/auth/interface.go3
-rw-r--r--services/auth/oauth2.go3
-rw-r--r--services/auth/reverseproxy.go3
-rw-r--r--services/auth/session.go3
-rw-r--r--services/auth/signin.go3
-rw-r--r--services/auth/source.go3
-rw-r--r--services/auth/source/db/assert_interface_test.go3
-rw-r--r--services/auth/source/db/authenticate.go3
-rw-r--r--services/auth/source/db/source.go3
-rw-r--r--services/auth/source/ldap/assert_interface_test.go3
-rw-r--r--services/auth/source/ldap/security_protocol.go3
-rw-r--r--services/auth/source/ldap/source.go3
-rw-r--r--services/auth/source/ldap/source_authenticate.go3
-rw-r--r--services/auth/source/ldap/source_group_sync.go3
-rw-r--r--services/auth/source/ldap/source_search.go3
-rw-r--r--services/auth/source/ldap/source_sync.go3
-rw-r--r--services/auth/source/ldap/util.go3
-rw-r--r--services/auth/source/oauth2/assert_interface_test.go3
-rw-r--r--services/auth/source/oauth2/init.go3
-rw-r--r--services/auth/source/oauth2/jwtsigningkey.go3
-rw-r--r--services/auth/source/oauth2/providers.go3
-rw-r--r--services/auth/source/oauth2/providers_base.go3
-rw-r--r--services/auth/source/oauth2/providers_custom.go3
-rw-r--r--services/auth/source/oauth2/providers_openid.go3
-rw-r--r--services/auth/source/oauth2/providers_simple.go3
-rw-r--r--services/auth/source/oauth2/source.go3
-rw-r--r--services/auth/source/oauth2/source_authenticate.go3
-rw-r--r--services/auth/source/oauth2/source_callout.go3
-rw-r--r--services/auth/source/oauth2/source_name.go3
-rw-r--r--services/auth/source/oauth2/source_register.go3
-rw-r--r--services/auth/source/oauth2/store.go3
-rw-r--r--services/auth/source/oauth2/token.go3
-rw-r--r--services/auth/source/oauth2/urlmapping.go3
-rw-r--r--services/auth/source/pam/assert_interface_test.go3
-rw-r--r--services/auth/source/pam/source.go3
-rw-r--r--services/auth/source/pam/source_authenticate.go3
-rw-r--r--services/auth/source/smtp/assert_interface_test.go3
-rw-r--r--services/auth/source/smtp/auth.go3
-rw-r--r--services/auth/source/smtp/source.go3
-rw-r--r--services/auth/source/smtp/source_authenticate.go3
-rw-r--r--services/auth/source/sspi/assert_interface_test.go3
-rw-r--r--services/auth/source/sspi/source.go3
-rw-r--r--services/auth/sspi_windows.go3
-rw-r--r--services/auth/sync.go3
-rw-r--r--services/automerge/automerge.go3
-rw-r--r--services/comments/comments.go3
-rw-r--r--services/context/user.go3
-rw-r--r--services/cron/cron.go3
-rw-r--r--services/cron/setting.go3
-rw-r--r--services/cron/tasks.go3
-rw-r--r--services/cron/tasks_basic.go3
-rw-r--r--services/cron/tasks_extended.go3
-rw-r--r--services/externalaccount/link.go3
-rw-r--r--services/externalaccount/user.go3
-rw-r--r--services/forms/admin.go3
-rw-r--r--services/forms/auth_form.go3
-rw-r--r--services/forms/org.go3
-rw-r--r--services/forms/repo_branch_form.go3
-rw-r--r--services/forms/repo_form.go3
-rw-r--r--services/forms/repo_form_test.go3
-rw-r--r--services/forms/repo_tag_form.go3
-rw-r--r--services/forms/user_form.go3
-rw-r--r--services/forms/user_form_auth_openid.go3
-rw-r--r--services/forms/user_form_hidden_comments.go3
-rw-r--r--services/forms/user_form_test.go3
-rw-r--r--services/gitdiff/csv.go3
-rw-r--r--services/gitdiff/csv_test.go3
-rw-r--r--services/gitdiff/gitdiff.go3
-rw-r--r--services/gitdiff/gitdiff_test.go3
-rw-r--r--services/gitdiff/highlightdiff.go3
-rw-r--r--services/gitdiff/highlightdiff_test.go3
-rw-r--r--services/gitdiff/main_test.go3
-rw-r--r--services/issue/assignee.go3
-rw-r--r--services/issue/assignee_test.go3
-rw-r--r--services/issue/commit.go3
-rw-r--r--services/issue/commit_test.go3
-rw-r--r--services/issue/content.go3
-rw-r--r--services/issue/issue.go3
-rw-r--r--services/issue/issue_test.go3
-rw-r--r--services/issue/label.go3
-rw-r--r--services/issue/label_test.go3
-rw-r--r--services/issue/main_test.go3
-rw-r--r--services/issue/milestone.go3
-rw-r--r--services/issue/milestone_test.go3
-rw-r--r--services/issue/status.go3
-rw-r--r--services/lfs/locks.go3
-rw-r--r--services/lfs/server.go3
-rw-r--r--services/mailer/mail.go3
-rw-r--r--services/mailer/mail_comment.go3
-rw-r--r--services/mailer/mail_issue.go3
-rw-r--r--services/mailer/mail_release.go3
-rw-r--r--services/mailer/mail_repo.go3
-rw-r--r--services/mailer/mail_team_invite.go3
-rw-r--r--services/mailer/mail_test.go3
-rw-r--r--services/mailer/mailer.go3
-rw-r--r--services/mailer/mailer_test.go3
-rw-r--r--services/mailer/main_test.go3
-rw-r--r--services/markup/main_test.go3
-rw-r--r--services/markup/processorhelper.go3
-rw-r--r--services/markup/processorhelper_test.go3
-rw-r--r--services/migrations/codebase.go3
-rw-r--r--services/migrations/codebase_test.go3
-rw-r--r--services/migrations/common.go3
-rw-r--r--services/migrations/dump.go3
-rw-r--r--services/migrations/error.go3
-rw-r--r--services/migrations/git.go3
-rw-r--r--services/migrations/gitbucket.go3
-rw-r--r--services/migrations/gitea_downloader.go3
-rw-r--r--services/migrations/gitea_downloader_test.go3
-rw-r--r--services/migrations/gitea_uploader.go3
-rw-r--r--services/migrations/gitea_uploader_test.go3
-rw-r--r--services/migrations/github.go3
-rw-r--r--services/migrations/github_test.go3
-rw-r--r--services/migrations/gitlab.go3
-rw-r--r--services/migrations/gitlab_test.go3
-rw-r--r--services/migrations/gogs.go3
-rw-r--r--services/migrations/gogs_test.go3
-rw-r--r--services/migrations/http_client.go3
-rw-r--r--services/migrations/main_test.go3
-rw-r--r--services/migrations/migrate.go3
-rw-r--r--services/migrations/migrate_test.go3
-rw-r--r--services/migrations/onedev.go3
-rw-r--r--services/migrations/onedev_test.go3
-rw-r--r--services/migrations/restore.go3
-rw-r--r--services/migrations/update.go3
-rw-r--r--services/mirror/mirror.go3
-rw-r--r--services/mirror/mirror_pull.go3
-rw-r--r--services/mirror/mirror_push.go3
-rw-r--r--services/org/org.go3
-rw-r--r--services/org/org_test.go3
-rw-r--r--services/org/repo.go3
-rw-r--r--services/org/repo_test.go3
-rw-r--r--services/org/team_invite.go3
-rw-r--r--services/packages/auth.go3
-rw-r--r--services/packages/container/blob_uploader.go3
-rw-r--r--services/packages/container/cleanup.go3
-rw-r--r--services/packages/packages.go3
-rw-r--r--services/pull/check.go3
-rw-r--r--services/pull/check_test.go3
-rw-r--r--services/pull/commit_status.go3
-rw-r--r--services/pull/edits.go3
-rw-r--r--services/pull/lfs.go3
-rw-r--r--services/pull/main_test.go3
-rw-r--r--services/pull/merge.go3
-rw-r--r--services/pull/patch.go3
-rw-r--r--services/pull/patch_unmerged.go3
-rw-r--r--services/pull/pull.go3
-rw-r--r--services/pull/pull_test.go3
-rw-r--r--services/pull/review.go3
-rw-r--r--services/pull/temp_repo.go3
-rw-r--r--services/pull/update.go3
-rw-r--r--services/release/release.go3
-rw-r--r--services/release/release_test.go3
-rw-r--r--services/repository/adopt.go3
-rw-r--r--services/repository/adopt_test.go3
-rw-r--r--services/repository/archiver/archiver.go3
-rw-r--r--services/repository/archiver/archiver_test.go3
-rw-r--r--services/repository/avatar.go3
-rw-r--r--services/repository/avatar_test.go3
-rw-r--r--services/repository/branch.go3
-rw-r--r--services/repository/cache.go3
-rw-r--r--services/repository/check.go3
-rw-r--r--services/repository/files/cherry_pick.go3
-rw-r--r--services/repository/files/commit.go3
-rw-r--r--services/repository/files/content.go3
-rw-r--r--services/repository/files/content_test.go3
-rw-r--r--services/repository/files/delete.go3
-rw-r--r--services/repository/files/diff.go3
-rw-r--r--services/repository/files/diff_test.go3
-rw-r--r--services/repository/files/file.go3
-rw-r--r--services/repository/files/file_test.go3
-rw-r--r--services/repository/files/patch.go3
-rw-r--r--services/repository/files/temp_repo.go3
-rw-r--r--services/repository/files/tree.go3
-rw-r--r--services/repository/files/tree_test.go3
-rw-r--r--services/repository/files/update.go3
-rw-r--r--services/repository/files/upload.go3
-rw-r--r--services/repository/fork.go3
-rw-r--r--services/repository/fork_test.go3
-rw-r--r--services/repository/hooks.go3
-rw-r--r--services/repository/main_test.go3
-rw-r--r--services/repository/push.go3
-rw-r--r--services/repository/repository.go3
-rw-r--r--services/repository/repository_test.go3
-rw-r--r--services/repository/review.go3
-rw-r--r--services/repository/review_test.go3
-rw-r--r--services/repository/template.go3
-rw-r--r--services/repository/transfer.go3
-rw-r--r--services/repository/transfer_test.go3
-rw-r--r--services/task/migrate.go3
-rw-r--r--services/task/task.go3
-rw-r--r--services/user/user.go3
-rw-r--r--services/user/user_test.go3
-rw-r--r--services/webhook/deliver.go3
-rw-r--r--services/webhook/deliver_test.go3
-rw-r--r--services/webhook/dingtalk.go3
-rw-r--r--services/webhook/dingtalk_test.go3
-rw-r--r--services/webhook/discord.go3
-rw-r--r--services/webhook/discord_test.go3
-rw-r--r--services/webhook/feishu.go3
-rw-r--r--services/webhook/feishu_test.go3
-rw-r--r--services/webhook/general.go3
-rw-r--r--services/webhook/general_test.go3
-rw-r--r--services/webhook/main_test.go3
-rw-r--r--services/webhook/matrix.go3
-rw-r--r--services/webhook/matrix_test.go3
-rw-r--r--services/webhook/msteams.go3
-rw-r--r--services/webhook/msteams_test.go3
-rw-r--r--services/webhook/packagist.go3
-rw-r--r--services/webhook/packagist_test.go3
-rw-r--r--services/webhook/payloader.go3
-rw-r--r--services/webhook/slack.go3
-rw-r--r--services/webhook/slack_test.go3
-rw-r--r--services/webhook/telegram.go3
-rw-r--r--services/webhook/telegram_test.go3
-rw-r--r--services/webhook/webhook.go3
-rw-r--r--services/webhook/webhook_test.go3
-rw-r--r--services/webhook/wechatwork.go3
-rw-r--r--services/wiki/wiki.go3
-rw-r--r--services/wiki/wiki_test.go3
-rw-r--r--tests/e2e/e2e_test.go3
-rw-r--r--tests/e2e/utils_e2e_test.go3
-rw-r--r--tests/integration/admin_user_test.go3
-rw-r--r--tests/integration/api_activitypub_person_test.go3
-rw-r--r--tests/integration/api_admin_org_test.go3
-rw-r--r--tests/integration/api_admin_test.go3
-rw-r--r--tests/integration/api_branch_test.go3
-rw-r--r--tests/integration/api_comment_test.go3
-rw-r--r--tests/integration/api_feed_user_test.go3
-rw-r--r--tests/integration/api_fork_test.go3
-rw-r--r--tests/integration/api_gpg_keys_test.go3
-rw-r--r--tests/integration/api_helper_for_declarative_test.go3
-rw-r--r--tests/integration/api_httpsig_test.go3
-rw-r--r--tests/integration/api_issue_label_test.go3
-rw-r--r--tests/integration/api_issue_milestone_test.go3
-rw-r--r--tests/integration/api_issue_reaction_test.go3
-rw-r--r--tests/integration/api_issue_stopwatch_test.go3
-rw-r--r--tests/integration/api_issue_subscription_test.go3
-rw-r--r--tests/integration/api_issue_test.go3
-rw-r--r--tests/integration/api_issue_tracked_time_test.go3
-rw-r--r--tests/integration/api_keys_test.go3
-rw-r--r--tests/integration/api_nodeinfo_test.go3
-rw-r--r--tests/integration/api_notification_test.go3
-rw-r--r--tests/integration/api_oauth2_apps_test.go3
-rw-r--r--tests/integration/api_org_test.go3
-rw-r--r--tests/integration/api_packages_composer_test.go3
-rw-r--r--tests/integration/api_packages_conan_test.go3
-rw-r--r--tests/integration/api_packages_container_test.go3
-rw-r--r--tests/integration/api_packages_generic_test.go3
-rw-r--r--tests/integration/api_packages_helm_test.go3
-rw-r--r--tests/integration/api_packages_maven_test.go3
-rw-r--r--tests/integration/api_packages_npm_test.go3
-rw-r--r--tests/integration/api_packages_nuget_test.go3
-rw-r--r--tests/integration/api_packages_pub_test.go3
-rw-r--r--tests/integration/api_packages_pypi_test.go3
-rw-r--r--tests/integration/api_packages_rubygems_test.go3
-rw-r--r--tests/integration/api_packages_test.go3
-rw-r--r--tests/integration/api_packages_vagrant_test.go3
-rw-r--r--tests/integration/api_private_serv_test.go3
-rw-r--r--tests/integration/api_pull_commits_test.go3
-rw-r--r--tests/integration/api_pull_review_test.go3
-rw-r--r--tests/integration/api_pull_test.go3
-rw-r--r--tests/integration/api_releases_test.go3
-rw-r--r--tests/integration/api_repo_archive_test.go3
-rw-r--r--tests/integration/api_repo_collaborator_test.go3
-rw-r--r--tests/integration/api_repo_edit_test.go3
-rw-r--r--tests/integration/api_repo_file_create_test.go3
-rw-r--r--tests/integration/api_repo_file_delete_test.go3
-rw-r--r--tests/integration/api_repo_file_get_test.go3
-rw-r--r--tests/integration/api_repo_file_helpers.go3
-rw-r--r--tests/integration/api_repo_file_update_test.go3
-rw-r--r--tests/integration/api_repo_get_contents_list_test.go3
-rw-r--r--tests/integration/api_repo_get_contents_test.go3
-rw-r--r--tests/integration/api_repo_git_blobs_test.go3
-rw-r--r--tests/integration/api_repo_git_commits_test.go3
-rw-r--r--tests/integration/api_repo_git_hook_test.go3
-rw-r--r--tests/integration/api_repo_git_notes_test.go3
-rw-r--r--tests/integration/api_repo_git_ref_test.go3
-rw-r--r--tests/integration/api_repo_git_tags_test.go3
-rw-r--r--tests/integration/api_repo_git_trees_test.go3
-rw-r--r--tests/integration/api_repo_hook_test.go3
-rw-r--r--tests/integration/api_repo_languages_test.go3
-rw-r--r--tests/integration/api_repo_lfs_locks_test.go3
-rw-r--r--tests/integration/api_repo_lfs_migrate_test.go3
-rw-r--r--tests/integration/api_repo_lfs_test.go3
-rw-r--r--tests/integration/api_repo_raw_test.go3
-rw-r--r--tests/integration/api_repo_tags_test.go3
-rw-r--r--tests/integration/api_repo_teams_test.go3
-rw-r--r--tests/integration/api_repo_test.go3
-rw-r--r--tests/integration/api_repo_topic_test.go3
-rw-r--r--tests/integration/api_settings_test.go3
-rw-r--r--tests/integration/api_team_test.go3
-rw-r--r--tests/integration/api_team_user_test.go3
-rw-r--r--tests/integration/api_token_test.go3
-rw-r--r--tests/integration/api_user_email_test.go3
-rw-r--r--tests/integration/api_user_follow_test.go3
-rw-r--r--tests/integration/api_user_heatmap_test.go3
-rw-r--r--tests/integration/api_user_info_test.go3
-rw-r--r--tests/integration/api_user_org_perm_test.go3
-rw-r--r--tests/integration/api_user_orgs_test.go3
-rw-r--r--tests/integration/api_user_search_test.go3
-rw-r--r--tests/integration/api_user_star_test.go3
-rw-r--r--tests/integration/api_user_watch_test.go3
-rw-r--r--tests/integration/api_wiki_test.go3
-rw-r--r--tests/integration/attachment_test.go3
-rw-r--r--tests/integration/auth_ldap_test.go3
-rw-r--r--tests/integration/benchmarks_test.go3
-rw-r--r--tests/integration/branches_test.go3
-rw-r--r--tests/integration/change_default_branch_test.go3
-rw-r--r--tests/integration/cmd_keys_test.go3
-rw-r--r--tests/integration/compare_test.go3
-rw-r--r--tests/integration/cors_test.go3
-rw-r--r--tests/integration/create_no_session_test.go3
-rw-r--r--tests/integration/csrf_test.go3
-rw-r--r--tests/integration/delete_user_test.go3
-rw-r--r--tests/integration/download_test.go3
-rw-r--r--tests/integration/dump_restore_test.go3
-rw-r--r--tests/integration/editor_test.go3
-rw-r--r--tests/integration/empty_repo_test.go3
-rw-r--r--tests/integration/eventsource_test.go3
-rw-r--r--tests/integration/explore_repos_test.go3
-rw-r--r--tests/integration/git_clone_wiki_test.go3
-rw-r--r--tests/integration/git_helper_for_declarative_test.go3
-rw-r--r--tests/integration/git_smart_http_test.go3
-rw-r--r--tests/integration/git_test.go3
-rw-r--r--tests/integration/goget_test.go3
-rw-r--r--tests/integration/gpg_git_test.go3
-rw-r--r--tests/integration/html_helper.go3
-rw-r--r--tests/integration/integration_test.go3
-rw-r--r--tests/integration/issue_test.go3
-rw-r--r--tests/integration/lfs_getobject_test.go3
-rw-r--r--tests/integration/lfs_local_endpoint_test.go3
-rw-r--r--tests/integration/links_test.go3
-rw-r--r--tests/integration/migrate_test.go3
-rw-r--r--tests/integration/migration-test/migration_test.go3
-rw-r--r--tests/integration/mirror_pull_test.go3
-rw-r--r--tests/integration/mirror_push_test.go3
-rw-r--r--tests/integration/nonascii_branches_test.go3
-rw-r--r--tests/integration/oauth_test.go3
-rw-r--r--tests/integration/org_count_test.go3
-rw-r--r--tests/integration/org_team_invite_test.go3
-rw-r--r--tests/integration/org_test.go3
-rw-r--r--tests/integration/privateactivity_test.go3
-rw-r--r--tests/integration/pull_compare_test.go3
-rw-r--r--tests/integration/pull_create_test.go3
-rw-r--r--tests/integration/pull_merge_test.go3
-rw-r--r--tests/integration/pull_review_test.go4
-rw-r--r--tests/integration/pull_status_test.go4
-rw-r--r--tests/integration/pull_update_test.go3
-rw-r--r--tests/integration/release_test.go3
-rw-r--r--tests/integration/rename_branch_test.go3
-rw-r--r--tests/integration/repo_activity_test.go3
-rw-r--r--tests/integration/repo_branch_test.go3
-rw-r--r--tests/integration/repo_commits_search_test.go3
-rw-r--r--tests/integration/repo_commits_test.go3
-rw-r--r--tests/integration/repo_fork_test.go3
-rw-r--r--tests/integration/repo_generate_test.go3
-rw-r--r--tests/integration/repo_migrate_test.go3
-rw-r--r--tests/integration/repo_search_test.go3
-rw-r--r--tests/integration/repo_tag_test.go3
-rw-r--r--tests/integration/repo_test.go3
-rw-r--r--tests/integration/repo_topic_test.go3
-rw-r--r--tests/integration/repo_watch_test.go3
-rw-r--r--tests/integration/repofiles_delete_test.go3
-rw-r--r--tests/integration/repofiles_update_test.go3
-rw-r--r--tests/integration/setting_test.go3
-rw-r--r--tests/integration/signin_test.go3
-rw-r--r--tests/integration/signout_test.go3
-rw-r--r--tests/integration/signup_test.go3
-rw-r--r--tests/integration/ssh_key_test.go3
-rw-r--r--tests/integration/timetracking_test.go3
-rw-r--r--tests/integration/user_avatar_test.go3
-rw-r--r--tests/integration/user_test.go3
-rw-r--r--tests/integration/version_test.go3
-rw-r--r--tests/integration/view_test.go3
-rw-r--r--tests/integration/webfinger_test.go3
-rw-r--r--tests/integration/xss_test.go3
-rw-r--r--tests/test_utils.go3
-rw-r--r--tests/testlogger.go3
-rw-r--r--tools/fuzz.go3
1872 files changed, 1887 insertions, 3749 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index dbe418c356..69363c415e 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -440,8 +440,8 @@ Code that you contribute should use the standard copyright header:
```
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
```
Files in the repository contain copyright from the year they are added
diff --git a/build.go b/build.go
index d379745c6d..d2e724a7f7 100644
--- a/build.go
+++ b/build.go
@@ -1,6 +1,6 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
//go:build vendor
diff --git a/build/code-batch-process.go b/build/code-batch-process.go
index b6c4171ede..9cc47442b2 100644
--- a/build/code-batch-process.go
+++ b/build/code-batch-process.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build ignore
diff --git a/build/codeformat/formatimports.go b/build/codeformat/formatimports.go
index 1076e3a0d1..c9fc2a27b4 100644
--- a/build/codeformat/formatimports.go
+++ b/build/codeformat/formatimports.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package codeformat
diff --git a/build/codeformat/formatimports_test.go b/build/codeformat/formatimports_test.go
index 3db90cad7b..c66181d351 100644
--- a/build/codeformat/formatimports_test.go
+++ b/build/codeformat/formatimports_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package codeformat
diff --git a/build/generate-bindata.go b/build/generate-bindata.go
index ab81dd8938..ecd5d5047c 100644
--- a/build/generate-bindata.go
+++ b/build/generate-bindata.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build ignore
diff --git a/build/generate-emoji.go b/build/generate-emoji.go
index 4ad6649b2e..35c23aaf9e 100644
--- a/build/generate-emoji.go
+++ b/build/generate-emoji.go
@@ -1,7 +1,6 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Copyright 2015 Kenneth Shaw
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build ignore
@@ -209,8 +208,8 @@ func generate() ([]byte, error) {
const hdr = `
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
package emoji
diff --git a/build/generate-go-licenses.go b/build/generate-go-licenses.go
index 87c773ed8b..ec8fc82a71 100644
--- a/build/generate-go-licenses.go
+++ b/build/generate-go-licenses.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build ignore
diff --git a/build/gocovmerge.go b/build/gocovmerge.go
index dfe70efdad..c6f74ed85c 100644
--- a/build/gocovmerge.go
+++ b/build/gocovmerge.go
@@ -1,7 +1,6 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Copyright (c) 2015, Wade Simmons
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// gocovmerge takes the results from multiple `go test -coverprofile` runs and
// merges them into one profile
diff --git a/cmd/admin.go b/cmd/admin.go
index 80b5d4853c..a47d9ca109 100644
--- a/cmd/admin.go
+++ b/cmd/admin.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/admin_auth_ldap.go b/cmd/admin_auth_ldap.go
index 9040def822..91276f221f 100644
--- a/cmd/admin_auth_ldap.go
+++ b/cmd/admin_auth_ldap.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/admin_auth_ldap_test.go b/cmd/admin_auth_ldap_test.go
index 2180b24be5..65f53aaf4e 100644
--- a/cmd/admin_auth_ldap_test.go
+++ b/cmd/admin_auth_ldap_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/cert.go b/cmd/cert.go
index 162c4171bf..816659023c 100644
--- a/cmd/cert.go
+++ b/cmd/cert.go
@@ -1,8 +1,7 @@
// Copyright 2009 The Go Authors. All rights reserved.
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/cmd.go b/cmd/cmd.go
index f20a936325..493519e135 100644
--- a/cmd/cmd.go
+++ b/cmd/cmd.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package cmd provides subcommands to the gitea binary - such as "web" or
// "admin".
diff --git a/cmd/convert.go b/cmd/convert.go
index 6d4d99a255..b9ed9f1627 100644
--- a/cmd/convert.go
+++ b/cmd/convert.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/docs.go b/cmd/docs.go
index 073c574973..901d0abd1c 100644
--- a/cmd/docs.go
+++ b/cmd/docs.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/doctor.go b/cmd/doctor.go
index d05a0a98d7..ceb6e3fbab 100644
--- a/cmd/doctor.go
+++ b/cmd/doctor.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/dump.go b/cmd/dump.go
index 6569fb6e36..672a8cdc9c 100644
--- a/cmd/dump.go
+++ b/cmd/dump.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/dump_repo.go b/cmd/dump_repo.go
index 5f41ab69a9..2e78877afe 100644
--- a/cmd/dump_repo.go
+++ b/cmd/dump_repo.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/embedded.go b/cmd/embedded.go
index b71ee6dfe7..118781895e 100644
--- a/cmd/embedded.go
+++ b/cmd/embedded.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/cmd/embedded_stub.go b/cmd/embedded_stub.go
index 26228256f2..874df06f9d 100644
--- a/cmd/embedded_stub.go
+++ b/cmd/embedded_stub.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !bindata
diff --git a/cmd/generate.go b/cmd/generate.go
index 35c77a815b..f72ee16390 100644
--- a/cmd/generate.go
+++ b/cmd/generate.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/hook.go b/cmd/hook.go
index 83fcd93915..228b79f7f0 100644
--- a/cmd/hook.go
+++ b/cmd/hook.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/hook_test.go b/cmd/hook_test.go
index 92c7e82a9a..fe1f072a6f 100644
--- a/cmd/hook_test.go
+++ b/cmd/hook_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/keys.go b/cmd/keys.go
index 684aca64e2..74dc1cc68c 100644
--- a/cmd/keys.go
+++ b/cmd/keys.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/mailer.go b/cmd/mailer.go
index 35fcb302f8..af6613f159 100644
--- a/cmd/mailer.go
+++ b/cmd/mailer.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/main_test.go b/cmd/main_test.go
index 9cce0ef036..9aacdf7bba 100644
--- a/cmd/main_test.go
+++ b/cmd/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/manager.go b/cmd/manager.go
index 8fbfd1093c..cdfe509075 100644
--- a/cmd/manager.go
+++ b/cmd/manager.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/manager_logging.go b/cmd/manager_logging.go
index 761edf654c..d49675ce87 100644
--- a/cmd/manager_logging.go
+++ b/cmd/manager_logging.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/migrate.go b/cmd/migrate.go
index 49a13adeb5..2546fca21d 100644
--- a/cmd/migrate.go
+++ b/cmd/migrate.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/migrate_storage.go b/cmd/migrate_storage.go
index b6af5b96e8..0b8ebe7c8d 100644
--- a/cmd/migrate_storage.go
+++ b/cmd/migrate_storage.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/migrate_storage_test.go b/cmd/migrate_storage_test.go
index 7051591ad6..aae366c0cf 100644
--- a/cmd/migrate_storage_test.go
+++ b/cmd/migrate_storage_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/restore_repo.go b/cmd/restore_repo.go
index 2256cc61ab..23932f821c 100644
--- a/cmd/restore_repo.go
+++ b/cmd/restore_repo.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/serv.go b/cmd/serv.go
index 06561f348a..346c918b18 100644
--- a/cmd/serv.go
+++ b/cmd/serv.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/web.go b/cmd/web.go
index 1b9f7e420a..49a0335615 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/web_acme.go b/cmd/web_acme.go
index d8e550b321..90e4a02764 100644
--- a/cmd/web_acme.go
+++ b/cmd/web_acme.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/web_graceful.go b/cmd/web_graceful.go
index ba88cc59c2..996537be3b 100644
--- a/cmd/web_graceful.go
+++ b/cmd/web_graceful.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/cmd/web_https.go b/cmd/web_https.go
index aac11517a6..70d35cd40d 100644
--- a/cmd/web_https.go
+++ b/cmd/web_https.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cmd
diff --git a/contrib/environment-to-ini/environment-to-ini.go b/contrib/environment-to-ini/environment-to-ini.go
index ccda03fa92..b502c15cec 100644
--- a/contrib/environment-to-ini/environment-to-ini.go
+++ b/contrib/environment-to-ini/environment-to-ini.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package main
diff --git a/contrib/fixtures/fixture_generation.go b/contrib/fixtures/fixture_generation.go
index 66ff5c54e3..210e0aae06 100644
--- a/contrib/fixtures/fixture_generation.go
+++ b/contrib/fixtures/fixture_generation.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package main
diff --git a/contrib/pr/checkout.go b/contrib/pr/checkout.go
index 686a3ddffa..b31a4a8c68 100644
--- a/contrib/pr/checkout.go
+++ b/contrib/pr/checkout.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package main
diff --git a/main.go b/main.go
index 0e550f05eb..070e9857d0 100644
--- a/main.go
+++ b/main.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Gitea (git with a cup of tea) is a painless self-hosted Git Service.
package main // import "code.gitea.io/gitea"
diff --git a/models/activities/action.go b/models/activities/action.go
index bbb6073265..80c117dc95 100644
--- a/models/activities/action.go
+++ b/models/activities/action.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activities
diff --git a/models/activities/action_list.go b/models/activities/action_list.go
index 86aa8689e2..0979434f76 100644
--- a/models/activities/action_list.go
+++ b/models/activities/action_list.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activities
diff --git a/models/activities/action_test.go b/models/activities/action_test.go
index b79eb0d08d..29312bd482 100644
--- a/models/activities/action_test.go
+++ b/models/activities/action_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activities_test
diff --git a/models/activities/main_test.go b/models/activities/main_test.go
index 0a87f47600..a8740f53c4 100644
--- a/models/activities/main_test.go
+++ b/models/activities/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activities_test
diff --git a/models/activities/notification.go b/models/activities/notification.go
index 10b3a76713..9aa4b87628 100644
--- a/models/activities/notification.go
+++ b/models/activities/notification.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activities
diff --git a/models/activities/notification_test.go b/models/activities/notification_test.go
index d871891001..36b63b266b 100644
--- a/models/activities/notification_test.go
+++ b/models/activities/notification_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activities_test
diff --git a/models/activities/repo_activity.go b/models/activities/repo_activity.go
index 4c8aa7e81d..9018276c3a 100644
--- a/models/activities/repo_activity.go
+++ b/models/activities/repo_activity.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activities
diff --git a/models/activities/statistic.go b/models/activities/statistic.go
index ea785a3ee2..138f4d8fe9 100644
--- a/models/activities/statistic.go
+++ b/models/activities/statistic.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activities
diff --git a/models/activities/user_heatmap.go b/models/activities/user_heatmap.go
index 6e76be6c6b..3370103a55 100644
--- a/models/activities/user_heatmap.go
+++ b/models/activities/user_heatmap.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.package models
+// SPDX-License-Identifier: MIT
package activities
diff --git a/models/activities/user_heatmap_test.go b/models/activities/user_heatmap_test.go
index a8a240f790..34715ab6dd 100644
--- a/models/activities/user_heatmap_test.go
+++ b/models/activities/user_heatmap_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.package models
+// SPDX-License-Identifier: MIT
package activities_test
diff --git a/models/admin/task.go b/models/admin/task.go
index 4fa0f10394..9e661b9997 100644
--- a/models/admin/task.go
+++ b/models/admin/task.go
@@ -1,6 +1,5 @@
// Copyright 2019 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/models/asymkey/error.go b/models/asymkey/error.go
index 3ddeb0498a..1d486082f4 100644
--- a/models/asymkey/error.go
+++ b/models/asymkey/error.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/gpg_key.go b/models/asymkey/gpg_key.go
index 30f5ecc949..ecd9041e65 100644
--- a/models/asymkey/gpg_key.go
+++ b/models/asymkey/gpg_key.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/gpg_key_add.go b/models/asymkey/gpg_key_add.go
index e7be19073a..eb4027b3a4 100644
--- a/models/asymkey/gpg_key_add.go
+++ b/models/asymkey/gpg_key_add.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/gpg_key_commit_verification.go b/models/asymkey/gpg_key_commit_verification.go
index d5b06f83fd..1cdd748e35 100644
--- a/models/asymkey/gpg_key_commit_verification.go
+++ b/models/asymkey/gpg_key_commit_verification.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/gpg_key_common.go b/models/asymkey/gpg_key_common.go
index 1ea510c45f..5ceeee9aac 100644
--- a/models/asymkey/gpg_key_common.go
+++ b/models/asymkey/gpg_key_common.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/gpg_key_import.go b/models/asymkey/gpg_key_import.go
index 210c4b835b..5b5ef4faba 100644
--- a/models/asymkey/gpg_key_import.go
+++ b/models/asymkey/gpg_key_import.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/gpg_key_test.go b/models/asymkey/gpg_key_test.go
index 2cee45d98f..6a0f9c6144 100644
--- a/models/asymkey/gpg_key_test.go
+++ b/models/asymkey/gpg_key_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/gpg_key_verify.go b/models/asymkey/gpg_key_verify.go
index 4e9d04f576..cb5eb7c853 100644
--- a/models/asymkey/gpg_key_verify.go
+++ b/models/asymkey/gpg_key_verify.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/main_test.go b/models/asymkey/main_test.go
index 9f53e335fe..82a408ece0 100644
--- a/models/asymkey/main_test.go
+++ b/models/asymkey/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/ssh_key.go b/models/asymkey/ssh_key.go
index 811f563c8d..4d6ae8103c 100644
--- a/models/asymkey/ssh_key.go
+++ b/models/asymkey/ssh_key.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/ssh_key_authorized_keys.go b/models/asymkey/ssh_key_authorized_keys.go
index ce3b0248ce..e138182d68 100644
--- a/models/asymkey/ssh_key_authorized_keys.go
+++ b/models/asymkey/ssh_key_authorized_keys.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/ssh_key_authorized_principals.go b/models/asymkey/ssh_key_authorized_principals.go
index 4b08d0dfe7..092839611f 100644
--- a/models/asymkey/ssh_key_authorized_principals.go
+++ b/models/asymkey/ssh_key_authorized_principals.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/ssh_key_commit_verification.go b/models/asymkey/ssh_key_commit_verification.go
index 65bae0f393..af73637c4a 100644
--- a/models/asymkey/ssh_key_commit_verification.go
+++ b/models/asymkey/ssh_key_commit_verification.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/ssh_key_deploy.go b/models/asymkey/ssh_key_deploy.go
index 601e5c32e5..cc84392117 100644
--- a/models/asymkey/ssh_key_deploy.go
+++ b/models/asymkey/ssh_key_deploy.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/ssh_key_fingerprint.go b/models/asymkey/ssh_key_fingerprint.go
index 788d58dbab..ca0334cc0b 100644
--- a/models/asymkey/ssh_key_fingerprint.go
+++ b/models/asymkey/ssh_key_fingerprint.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/ssh_key_parse.go b/models/asymkey/ssh_key_parse.go
index 2462310ed9..b3eecb2c9b 100644
--- a/models/asymkey/ssh_key_parse.go
+++ b/models/asymkey/ssh_key_parse.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/ssh_key_principals.go b/models/asymkey/ssh_key_principals.go
index 7a769fd84d..f00c3f3e9e 100644
--- a/models/asymkey/ssh_key_principals.go
+++ b/models/asymkey/ssh_key_principals.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/ssh_key_test.go b/models/asymkey/ssh_key_test.go
index adffedd0b6..afd79ae6de 100644
--- a/models/asymkey/ssh_key_test.go
+++ b/models/asymkey/ssh_key_test.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/asymkey/ssh_key_verify.go b/models/asymkey/ssh_key_verify.go
index 6931df9e88..d6c16eb467 100644
--- a/models/asymkey/ssh_key_verify.go
+++ b/models/asymkey/ssh_key_verify.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/models/auth/main_test.go b/models/auth/main_test.go
index 5d52e963b8..3205d8816f 100644
--- a/models/auth/main_test.go
+++ b/models/auth/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth_test
diff --git a/models/auth/oauth2.go b/models/auth/oauth2.go
index 2ff1066288..8e5a003d19 100644
--- a/models/auth/oauth2.go
+++ b/models/auth/oauth2.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/models/auth/oauth2_test.go b/models/auth/oauth2_test.go
index 7a4df6b9ac..80d0e9baa4 100644
--- a/models/auth/oauth2_test.go
+++ b/models/auth/oauth2_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth_test
diff --git a/models/auth/session.go b/models/auth/session.go
index b5e4712bde..b60e6a903b 100644
--- a/models/auth/session.go
+++ b/models/auth/session.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/models/auth/source.go b/models/auth/source.go
index f8be5398ae..bade2fecf0 100644
--- a/models/auth/source.go
+++ b/models/auth/source.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/models/auth/source_test.go b/models/auth/source_test.go
index 67e96ee19e..31216cca8e 100644
--- a/models/auth/source_test.go
+++ b/models/auth/source_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth_test
diff --git a/models/auth/token.go b/models/auth/token.go
index 9902b80b78..763174f08f 100644
--- a/models/auth/token.go
+++ b/models/auth/token.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/models/auth/token_test.go b/models/auth/token_test.go
index b27ff13406..8a1e664950 100644
--- a/models/auth/token_test.go
+++ b/models/auth/token_test.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth_test
diff --git a/models/auth/twofactor.go b/models/auth/twofactor.go
index 736d4c340c..179d315364 100644
--- a/models/auth/twofactor.go
+++ b/models/auth/twofactor.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/models/auth/webauthn.go b/models/auth/webauthn.go
index 1575b6cbab..d5b2ceafd3 100644
--- a/models/auth/webauthn.go
+++ b/models/auth/webauthn.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/models/auth/webauthn_test.go b/models/auth/webauthn_test.go
index 29344376cc..8ba900bf89 100644
--- a/models/auth/webauthn_test.go
+++ b/models/auth/webauthn_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth_test
diff --git a/models/avatars/avatar.go b/models/avatars/avatar.go
index dec264cea4..7ccb782fa6 100644
--- a/models/avatars/avatar.go
+++ b/models/avatars/avatar.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package avatars
diff --git a/models/avatars/avatar_test.go b/models/avatars/avatar_test.go
index ace5445fc0..29be2ea346 100644
--- a/models/avatars/avatar_test.go
+++ b/models/avatars/avatar_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package avatars_test
diff --git a/models/avatars/main_test.go b/models/avatars/main_test.go
index 0e98d8f64d..6507632717 100644
--- a/models/avatars/main_test.go
+++ b/models/avatars/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package avatars_test
diff --git a/models/db/common.go b/models/db/common.go
index 1a59a8b5c6..76c7c119f4 100644
--- a/models/db/common.go
+++ b/models/db/common.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/consistency.go b/models/db/consistency.go
index 5a7878c74d..d19732cf80 100644
--- a/models/db/consistency.go
+++ b/models/db/consistency.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/context.go b/models/db/context.go
index 8c81469ebc..fb95e94c93 100644
--- a/models/db/context.go
+++ b/models/db/context.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/context_test.go b/models/db/context_test.go
index f00e7834ed..e7518a50d8 100644
--- a/models/db/context_test.go
+++ b/models/db/context_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db_test
diff --git a/models/db/convert.go b/models/db/convert.go
index 039a681040..b17e68c87e 100644
--- a/models/db/convert.go
+++ b/models/db/convert.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/engine.go b/models/db/engine.go
index 41949eb6f6..07ee6ca580 100755
--- a/models/db/engine.go
+++ b/models/db/engine.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/engine_test.go b/models/db/engine_test.go
index c2ba9614aa..fa1ac08a17 100644
--- a/models/db/engine_test.go
+++ b/models/db/engine_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db_test
diff --git a/models/db/error.go b/models/db/error.go
index 85cba5c4e9..5860cb4a07 100644
--- a/models/db/error.go
+++ b/models/db/error.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/index.go b/models/db/index.go
index 58a976ad52..46be74e91e 100644
--- a/models/db/index.go
+++ b/models/db/index.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/index_test.go b/models/db/index_test.go
index cf777b9d38..5fce0a6012 100644
--- a/models/db/index_test.go
+++ b/models/db/index_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db_test
diff --git a/models/db/install/db.go b/models/db/install/db.go
index 363a8c8679..d4c1139637 100644
--- a/models/db/install/db.go
+++ b/models/db/install/db.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package install
diff --git a/models/db/iterate.go b/models/db/iterate.go
index cbd2feed28..fc8c78d83e 100644
--- a/models/db/iterate.go
+++ b/models/db/iterate.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/iterate_test.go b/models/db/iterate_test.go
index 5d03a6e9ce..b0ea8b53ef 100644
--- a/models/db/iterate_test.go
+++ b/models/db/iterate_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db_test
diff --git a/models/db/list_options.go b/models/db/list_options.go
index 54f6d945c8..b9ee360b1b 100644
--- a/models/db/list_options.go
+++ b/models/db/list_options.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/log.go b/models/db/log.go
index 4c497fdfd7..fec2ea3c3d 100644
--- a/models/db/log.go
+++ b/models/db/log.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/main_test.go b/models/db/main_test.go
index b774dce4d8..ce48502918 100644
--- a/models/db/main_test.go
+++ b/models/db/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db_test
diff --git a/models/db/name.go b/models/db/name.go
index a05d1a789b..51be33a8bc 100644
--- a/models/db/name.go
+++ b/models/db/name.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/paginator/main_test.go b/models/db/paginator/main_test.go
index 1127987e53..b0557bc5a4 100644
--- a/models/db/paginator/main_test.go
+++ b/models/db/paginator/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package paginator
diff --git a/models/db/paginator/paginator.go b/models/db/paginator/paginator.go
index 747539f30e..bcda47d978 100644
--- a/models/db/paginator/paginator.go
+++ b/models/db/paginator/paginator.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package paginator
diff --git a/models/db/paginator/paginator_test.go b/models/db/paginator/paginator_test.go
index fdb8eee441..a1117fc7a4 100644
--- a/models/db/paginator/paginator_test.go
+++ b/models/db/paginator/paginator_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package paginator
diff --git a/models/db/search.go b/models/db/search.go
index 704a48ed1e..f5273cb6f6 100644
--- a/models/db/search.go
+++ b/models/db/search.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/sequence.go b/models/db/sequence.go
index 0daacee70c..6d801d022f 100644
--- a/models/db/sequence.go
+++ b/models/db/sequence.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/db/sql_postgres_with_schema.go b/models/db/sql_postgres_with_schema.go
index 4bbd12bdeb..ec63447f6f 100644
--- a/models/db/sql_postgres_with_schema.go
+++ b/models/db/sql_postgres_with_schema.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/models/error.go b/models/error.go
index f4c4bc8f67..8223f23585 100644
--- a/models/error.go
+++ b/models/error.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/fixture_generation.go b/models/fixture_generation.go
index 50b983fa82..abf880ee8e 100644
--- a/models/fixture_generation.go
+++ b/models/fixture_generation.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/fixture_test.go b/models/fixture_test.go
index 0857341e44..8a28db8164 100644
--- a/models/fixture_test.go
+++ b/models/fixture_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/foreignreference/error.go b/models/foreignreference/error.go
index a1db773cd2..07ed1052a6 100644
--- a/models/foreignreference/error.go
+++ b/models/foreignreference/error.go
@@ -1,6 +1,5 @@
// Copyright 2022 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package foreignreference
diff --git a/models/foreignreference/foreignreference.go b/models/foreignreference/foreignreference.go
index cc657a0fbe..2d2ad04c5a 100644
--- a/models/foreignreference/foreignreference.go
+++ b/models/foreignreference/foreignreference.go
@@ -1,6 +1,5 @@
// Copyright 2022 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package foreignreference
diff --git a/models/git/branches.go b/models/git/branches.go
index 328f6f0f0d..87246ed149 100644
--- a/models/git/branches.go
+++ b/models/git/branches.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/models/git/branches_test.go b/models/git/branches_test.go
index 754c5a4e66..038a4f6686 100644
--- a/models/git/branches_test.go
+++ b/models/git/branches_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git_test
diff --git a/models/git/commit_status.go b/models/git/commit_status.go
index df6f5ae7ea..411fbbe536 100644
--- a/models/git/commit_status.go
+++ b/models/git/commit_status.go
@@ -1,6 +1,5 @@
// Copyright 2017 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/models/git/commit_status_test.go b/models/git/commit_status_test.go
index 7b81b1549c..c829673014 100644
--- a/models/git/commit_status_test.go
+++ b/models/git/commit_status_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git_test
diff --git a/models/git/lfs.go b/models/git/lfs.go
index 87e07d7a5e..a86e84c050 100644
--- a/models/git/lfs.go
+++ b/models/git/lfs.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/models/git/lfs_lock.go b/models/git/lfs_lock.go
index c5a8cc245e..3d765ea22b 100644
--- a/models/git/lfs_lock.go
+++ b/models/git/lfs_lock.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/models/git/main_test.go b/models/git/main_test.go
index 41e6ac4704..5ef9cde607 100644
--- a/models/git/main_test.go
+++ b/models/git/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git_test
diff --git a/models/git/protected_tag.go b/models/git/protected_tag.go
index 4640a77b20..1d32b11366 100644
--- a/models/git/protected_tag.go
+++ b/models/git/protected_tag.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/models/git/protected_tag_test.go b/models/git/protected_tag_test.go
index 352eed0060..164c33e28f 100644
--- a/models/git/protected_tag_test.go
+++ b/models/git/protected_tag_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git_test
diff --git a/models/issues/assignees.go b/models/issues/assignees.go
index 19480fa1e1..25ecd4b05c 100644
--- a/models/issues/assignees.go
+++ b/models/issues/assignees.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/assignees_test.go b/models/issues/assignees_test.go
index 4286bdd7ee..7f18569d49 100644
--- a/models/issues/assignees_test.go
+++ b/models/issues/assignees_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/comment.go b/models/issues/comment.go
index 9483814a19..0aaa870b46 100644
--- a/models/issues/comment.go
+++ b/models/issues/comment.go
@@ -1,8 +1,7 @@
// Copyright 2018 The Gitea Authors.
// Copyright 2016 The Gogs Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/comment_list.go b/models/issues/comment_list.go
index e42b8605f9..2b55bc212f 100644
--- a/models/issues/comment_list.go
+++ b/models/issues/comment_list.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/comment_test.go b/models/issues/comment_test.go
index f12da0177f..6a647474dc 100644
--- a/models/issues/comment_test.go
+++ b/models/issues/comment_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/content_history.go b/models/issues/content_history.go
index f5cfa65b8f..cc06b184d7 100644
--- a/models/issues/content_history.go
+++ b/models/issues/content_history.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/content_history_test.go b/models/issues/content_history_test.go
index 1218d871d0..7d52f1bcc6 100644
--- a/models/issues/content_history_test.go
+++ b/models/issues/content_history_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/dependency.go b/models/issues/dependency.go
index a02280d8a6..bd39824369 100644
--- a/models/issues/dependency.go
+++ b/models/issues/dependency.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/dependency_test.go b/models/issues/dependency_test.go
index 3ea0b4ff5c..7af30b2019 100644
--- a/models/issues/dependency_test.go
+++ b/models/issues/dependency_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/issue.go b/models/issues/issue.go
index 69d6657d46..488a17609e 100644
--- a/models/issues/issue.go
+++ b/models/issues/issue.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/issue_index.go b/models/issues/issue_index.go
index 1fa79f494a..b480cc683f 100644
--- a/models/issues/issue_index.go
+++ b/models/issues/issue_index.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/issue_list.go b/models/issues/issue_list.go
index d9dff4cb4d..35a0c1f0e3 100644
--- a/models/issues/issue_list.go
+++ b/models/issues/issue_list.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/issue_list_test.go b/models/issues/issue_list_test.go
index c38a405e02..954a20ffe4 100644
--- a/models/issues/issue_list_test.go
+++ b/models/issues/issue_list_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/issue_lock.go b/models/issues/issue_lock.go
index 608b5fd140..1376ffcada 100644
--- a/models/issues/issue_lock.go
+++ b/models/issues/issue_lock.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/issue_project.go b/models/issues/issue_project.go
index 39a27abd3e..a366a92fad 100644
--- a/models/issues/issue_project.go
+++ b/models/issues/issue_project.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/issue_test.go b/models/issues/issue_test.go
index 2c8728e71a..6764a9e626 100644
--- a/models/issues/issue_test.go
+++ b/models/issues/issue_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/issue_user.go b/models/issues/issue_user.go
index c1a68c96e8..4a537752a2 100644
--- a/models/issues/issue_user.go
+++ b/models/issues/issue_user.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/issue_user_test.go b/models/issues/issue_user_test.go
index 7dd84ed68c..0daace6c9b 100644
--- a/models/issues/issue_user_test.go
+++ b/models/issues/issue_user_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/issue_watch.go b/models/issues/issue_watch.go
index cb9d7e7125..1efc0ea687 100644
--- a/models/issues/issue_watch.go
+++ b/models/issues/issue_watch.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/issue_watch_test.go b/models/issues/issue_watch_test.go
index 7aaf9f7f5d..4f44487f56 100644
--- a/models/issues/issue_watch_test.go
+++ b/models/issues/issue_watch_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/issue_xref.go b/models/issues/issue_xref.go
index 4c6601a0a2..a965cf7340 100644
--- a/models/issues/issue_xref.go
+++ b/models/issues/issue_xref.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/issue_xref_test.go b/models/issues/issue_xref_test.go
index d6d88db894..6d96c398d0 100644
--- a/models/issues/issue_xref_test.go
+++ b/models/issues/issue_xref_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/label.go b/models/issues/label.go
index dc7058d643..e5583ff00f 100644
--- a/models/issues/label.go
+++ b/models/issues/label.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/label_test.go b/models/issues/label_test.go
index 077e0eeb67..239e328d47 100644
--- a/models/issues/label_test.go
+++ b/models/issues/label_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/main_test.go b/models/issues/main_test.go
index 89f9e1c999..93e05f33f6 100644
--- a/models/issues/main_test.go
+++ b/models/issues/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/milestone.go b/models/issues/milestone.go
index 9d1778f732..7c2ce407e6 100644
--- a/models/issues/milestone.go
+++ b/models/issues/milestone.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/milestone_test.go b/models/issues/milestone_test.go
index f04a2b2b3b..5db5655906 100644
--- a/models/issues/milestone_test.go
+++ b/models/issues/milestone_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/pull.go b/models/issues/pull.go
index 993a1ba8bd..9105dd4d3a 100644
--- a/models/issues/pull.go
+++ b/models/issues/pull.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/pull_list.go b/models/issues/pull_list.go
index 6110ba77fa..432e848e97 100644
--- a/models/issues/pull_list.go
+++ b/models/issues/pull_list.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/pull_test.go b/models/issues/pull_test.go
index d88f9d4f54..8ce8eecc4a 100644
--- a/models/issues/pull_test.go
+++ b/models/issues/pull_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/reaction.go b/models/issues/reaction.go
index 5cb63795d1..381881ff61 100644
--- a/models/issues/reaction.go
+++ b/models/issues/reaction.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/reaction_test.go b/models/issues/reaction_test.go
index 835a667619..ddd0e2d04c 100644
--- a/models/issues/reaction_test.go
+++ b/models/issues/reaction_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/review.go b/models/issues/review.go
index 5cf7d4c3da..0b50763fdc 100644
--- a/models/issues/review.go
+++ b/models/issues/review.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/review_test.go b/models/issues/review_test.go
index 39ad14c65f..cc4c13f9e2 100644
--- a/models/issues/review_test.go
+++ b/models/issues/review_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/stopwatch.go b/models/issues/stopwatch.go
index d1d985b746..8a8fdca339 100644
--- a/models/issues/stopwatch.go
+++ b/models/issues/stopwatch.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/stopwatch_test.go b/models/issues/stopwatch_test.go
index a5e33f1cf6..7745bc513c 100644
--- a/models/issues/stopwatch_test.go
+++ b/models/issues/stopwatch_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/issues/tracked_time.go b/models/issues/tracked_time.go
index e1da0f32b0..6d25975459 100644
--- a/models/issues/tracked_time.go
+++ b/models/issues/tracked_time.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/models/issues/tracked_time_test.go b/models/issues/tracked_time_test.go
index ba8b242d99..b3174c7c82 100644
--- a/models/issues/tracked_time_test.go
+++ b/models/issues/tracked_time_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues_test
diff --git a/models/main_test.go b/models/main_test.go
index 3584001569..cc4eebfe76 100644
--- a/models/main_test.go
+++ b/models/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/migrate.go b/models/migrate.go
index 2a79640b07..b1b5568126 100644
--- a/models/migrate.go
+++ b/models/migrate.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/migrate_test.go b/models/migrate_test.go
index bc7729673a..48cd905e4c 100644
--- a/models/migrate_test.go
+++ b/models/migrate_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/migrations/base/db.go b/models/migrations/base/db.go
index 5466b76220..dcf99c96ae 100644
--- a/models/migrations/base/db.go
+++ b/models/migrations/base/db.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/models/migrations/base/db_test.go b/models/migrations/base/db_test.go
index ee227b7978..5145e19e86 100644
--- a/models/migrations/base/db_test.go
+++ b/models/migrations/base/db_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/models/migrations/base/hash.go b/models/migrations/base/hash.go
index 0f078dd70f..164f826b45 100644
--- a/models/migrations/base/hash.go
+++ b/models/migrations/base/hash.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/models/migrations/base/main_test.go b/models/migrations/base/main_test.go
index 290d87214a..c1c789150f 100644
--- a/models/migrations/base/main_test.go
+++ b/models/migrations/base/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/models/migrations/base/testlogger.go b/models/migrations/base/testlogger.go
index 0f35a078ec..7cbf4602be 100644
--- a/models/migrations/base/testlogger.go
+++ b/models/migrations/base/testlogger.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/models/migrations/base/tests.go b/models/migrations/base/tests.go
index dafc0df2f2..a9bcd20f67 100644
--- a/models/migrations/base/tests.go
+++ b/models/migrations/base/tests.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go
index a48c837e8b..e718355f83 100644
--- a/models/migrations/migrations.go
+++ b/models/migrations/migrations.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/models/migrations/v1_10/v100.go b/models/migrations/v1_10/v100.go
index af58b4b21d..bd11790b98 100644
--- a/models/migrations/v1_10/v100.go
+++ b/models/migrations/v1_10/v100.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_10 //nolint
diff --git a/models/migrations/v1_10/v101.go b/models/migrations/v1_10/v101.go
index 350e537a97..79b419e9d9 100644
--- a/models/migrations/v1_10/v101.go
+++ b/models/migrations/v1_10/v101.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_10 //nolint
diff --git a/models/migrations/v1_10/v88.go b/models/migrations/v1_10/v88.go
index 32659006ea..e6376af62e 100644
--- a/models/migrations/v1_10/v88.go
+++ b/models/migrations/v1_10/v88.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_10 //nolint
diff --git a/models/migrations/v1_10/v89.go b/models/migrations/v1_10/v89.go
index 4b21ef20ff..937068292c 100644
--- a/models/migrations/v1_10/v89.go
+++ b/models/migrations/v1_10/v89.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_10 //nolint
diff --git a/models/migrations/v1_10/v90.go b/models/migrations/v1_10/v90.go
index aa08ac36bc..c9a69a6dfe 100644
--- a/models/migrations/v1_10/v90.go
+++ b/models/migrations/v1_10/v90.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_10 //nolint
diff --git a/models/migrations/v1_10/v91.go b/models/migrations/v1_10/v91.go
index b8c083f8d4..9b5fefb1d0 100644
--- a/models/migrations/v1_10/v91.go
+++ b/models/migrations/v1_10/v91.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_10 //nolint
diff --git a/models/migrations/v1_10/v92.go b/models/migrations/v1_10/v92.go
index c0552aaab5..9080108594 100644
--- a/models/migrations/v1_10/v92.go
+++ b/models/migrations/v1_10/v92.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_10 //nolint
diff --git a/models/migrations/v1_10/v93.go b/models/migrations/v1_10/v93.go
index 6ce89f0d49..5b59065171 100644
--- a/models/migrations/v1_10/v93.go
+++ b/models/migrations/v1_10/v93.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_10 //nolint
diff --git a/models/migrations/v1_10/v94.go b/models/migrations/v1_10/v94.go
index 542e45c139..fe3804aee4 100644
--- a/models/migrations/v1_10/v94.go
+++ b/models/migrations/v1_10/v94.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_10 //nolint
diff --git a/models/migrations/v1_10/v95.go b/models/migrations/v1_10/v95.go
index 48a0c4ea7f..1b60eefb42 100644
--- a/models/migrations/v1_10/v95.go
+++ b/models/migrations/v1_10/v95.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_10 //nolint
diff --git a/models/migrations/v1_10/v96.go b/models/migrations/v1_10/v96.go
index 372ca9e65a..2abd260be4 100644
--- a/models/migrations/v1_10/v96.go
+++ b/models/migrations/v1_10/v96.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_10 //nolint
diff --git a/models/migrations/v1_10/v97.go b/models/migrations/v1_10/v97.go
index 4438a9ed50..8a1a4426ab 100644
--- a/models/migrations/v1_10/v97.go
+++ b/models/migrations/v1_10/v97.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_10 //nolint
diff --git a/models/migrations/v1_10/v98.go b/models/migrations/v1_10/v98.go
index 8e9ebb7d97..cab9a63065 100644
--- a/models/migrations/v1_10/v98.go
+++ b/models/migrations/v1_10/v98.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_10 //nolint
diff --git a/models/migrations/v1_10/v99.go b/models/migrations/v1_10/v99.go
index 21554f6eff..170a30631f 100644
--- a/models/migrations/v1_10/v99.go
+++ b/models/migrations/v1_10/v99.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_10 //nolint
diff --git a/models/migrations/v1_11/v102.go b/models/migrations/v1_11/v102.go
index 49d9d3ae71..9358e4cef3 100644
--- a/models/migrations/v1_11/v102.go
+++ b/models/migrations/v1_11/v102.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_11/v103.go b/models/migrations/v1_11/v103.go
index e9114adeef..e4e16a054e 100644
--- a/models/migrations/v1_11/v103.go
+++ b/models/migrations/v1_11/v103.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_11/v104.go b/models/migrations/v1_11/v104.go
index 0ab3682f6e..c76554cf59 100644
--- a/models/migrations/v1_11/v104.go
+++ b/models/migrations/v1_11/v104.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_11/v105.go b/models/migrations/v1_11/v105.go
index 07aeedcd62..df261c992c 100644
--- a/models/migrations/v1_11/v105.go
+++ b/models/migrations/v1_11/v105.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_11/v106.go b/models/migrations/v1_11/v106.go
index af77508667..3e06309a8d 100644
--- a/models/migrations/v1_11/v106.go
+++ b/models/migrations/v1_11/v106.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_11/v107.go b/models/migrations/v1_11/v107.go
index 5cc0d5282d..1ffbd35dd7 100644
--- a/models/migrations/v1_11/v107.go
+++ b/models/migrations/v1_11/v107.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_11/v108.go b/models/migrations/v1_11/v108.go
index 06ff1b16e3..28132c377d 100644
--- a/models/migrations/v1_11/v108.go
+++ b/models/migrations/v1_11/v108.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_11/v109.go b/models/migrations/v1_11/v109.go
index 2bfd2536bf..d2ee9a6aaa 100644
--- a/models/migrations/v1_11/v109.go
+++ b/models/migrations/v1_11/v109.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_11/v110.go b/models/migrations/v1_11/v110.go
index 813a753e0c..81afa1331d 100644
--- a/models/migrations/v1_11/v110.go
+++ b/models/migrations/v1_11/v110.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_11/v111.go b/models/migrations/v1_11/v111.go
index f1f1d7cb0f..5b15c32163 100644
--- a/models/migrations/v1_11/v111.go
+++ b/models/migrations/v1_11/v111.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_11/v112.go b/models/migrations/v1_11/v112.go
index f8e84cf752..3478ffe449 100644
--- a/models/migrations/v1_11/v112.go
+++ b/models/migrations/v1_11/v112.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_11/v113.go b/models/migrations/v1_11/v113.go
index 36ab1bd9c4..dc9adb60b0 100644
--- a/models/migrations/v1_11/v113.go
+++ b/models/migrations/v1_11/v113.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_11/v114.go b/models/migrations/v1_11/v114.go
index 688dd06d42..95adcee989 100644
--- a/models/migrations/v1_11/v114.go
+++ b/models/migrations/v1_11/v114.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_11/v115.go b/models/migrations/v1_11/v115.go
index 1fbf0c4f25..da935f6514 100644
--- a/models/migrations/v1_11/v115.go
+++ b/models/migrations/v1_11/v115.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_11/v116.go b/models/migrations/v1_11/v116.go
index 6b6d91777b..73fddd1039 100644
--- a/models/migrations/v1_11/v116.go
+++ b/models/migrations/v1_11/v116.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_11 //nolint
diff --git a/models/migrations/v1_12/v117.go b/models/migrations/v1_12/v117.go
index 6a102e0df7..bc768f3f0b 100644
--- a/models/migrations/v1_12/v117.go
+++ b/models/migrations/v1_12/v117.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v118.go b/models/migrations/v1_12/v118.go
index 227daffc45..9b893e2992 100644
--- a/models/migrations/v1_12/v118.go
+++ b/models/migrations/v1_12/v118.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v119.go b/models/migrations/v1_12/v119.go
index 998ca004d2..60bfe6a57d 100644
--- a/models/migrations/v1_12/v119.go
+++ b/models/migrations/v1_12/v119.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v120.go b/models/migrations/v1_12/v120.go
index cc35ce5f3e..f4e61215eb 100644
--- a/models/migrations/v1_12/v120.go
+++ b/models/migrations/v1_12/v120.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v121.go b/models/migrations/v1_12/v121.go
index 19864658d1..ac656b2d42 100644
--- a/models/migrations/v1_12/v121.go
+++ b/models/migrations/v1_12/v121.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v122.go b/models/migrations/v1_12/v122.go
index b0edae93bd..67ac9411fa 100644
--- a/models/migrations/v1_12/v122.go
+++ b/models/migrations/v1_12/v122.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v123.go b/models/migrations/v1_12/v123.go
index 1ecfdce736..ec56161afa 100644
--- a/models/migrations/v1_12/v123.go
+++ b/models/migrations/v1_12/v123.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v124.go b/models/migrations/v1_12/v124.go
index 0fc86378db..311690c039 100644
--- a/models/migrations/v1_12/v124.go
+++ b/models/migrations/v1_12/v124.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v125.go b/models/migrations/v1_12/v125.go
index d74f888e90..5540dfd626 100644
--- a/models/migrations/v1_12/v125.go
+++ b/models/migrations/v1_12/v125.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v126.go b/models/migrations/v1_12/v126.go
index 51dfb51673..ca9ec3aa3f 100644
--- a/models/migrations/v1_12/v126.go
+++ b/models/migrations/v1_12/v126.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v127.go b/models/migrations/v1_12/v127.go
index 5849b82566..b248eb4c06 100644
--- a/models/migrations/v1_12/v127.go
+++ b/models/migrations/v1_12/v127.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v128.go b/models/migrations/v1_12/v128.go
index 71e8e32077..44d44a26c5 100644
--- a/models/migrations/v1_12/v128.go
+++ b/models/migrations/v1_12/v128.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v129.go b/models/migrations/v1_12/v129.go
index 28bc5f604f..cf228242b9 100644
--- a/models/migrations/v1_12/v129.go
+++ b/models/migrations/v1_12/v129.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v130.go b/models/migrations/v1_12/v130.go
index ca3765be7b..391810c7ca 100644
--- a/models/migrations/v1_12/v130.go
+++ b/models/migrations/v1_12/v130.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v131.go b/models/migrations/v1_12/v131.go
index 14d954b4ba..a734d9fbf8 100644
--- a/models/migrations/v1_12/v131.go
+++ b/models/migrations/v1_12/v131.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v132.go b/models/migrations/v1_12/v132.go
index 8d93460f76..1708a57a7e 100644
--- a/models/migrations/v1_12/v132.go
+++ b/models/migrations/v1_12/v132.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v133.go b/models/migrations/v1_12/v133.go
index 1d69c47b9f..e1c392459b 100644
--- a/models/migrations/v1_12/v133.go
+++ b/models/migrations/v1_12/v133.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v134.go b/models/migrations/v1_12/v134.go
index 297db37a08..3d1c82f09e 100644
--- a/models/migrations/v1_12/v134.go
+++ b/models/migrations/v1_12/v134.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v135.go b/models/migrations/v1_12/v135.go
index 9453ecdd58..5a87d9911b 100644
--- a/models/migrations/v1_12/v135.go
+++ b/models/migrations/v1_12/v135.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v136.go b/models/migrations/v1_12/v136.go
index b114ddf508..0cecba7be9 100644
--- a/models/migrations/v1_12/v136.go
+++ b/models/migrations/v1_12/v136.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v137.go b/models/migrations/v1_12/v137.go
index 6eb6b1ebb3..371b1a3fdb 100644
--- a/models/migrations/v1_12/v137.go
+++ b/models/migrations/v1_12/v137.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v138.go b/models/migrations/v1_12/v138.go
index c101c6e4cd..a2bfdb59a8 100644
--- a/models/migrations/v1_12/v138.go
+++ b/models/migrations/v1_12/v138.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_12/v139.go b/models/migrations/v1_12/v139.go
index 69daa94f98..725b8fa305 100644
--- a/models/migrations/v1_12/v139.go
+++ b/models/migrations/v1_12/v139.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_12 //nolint
diff --git a/models/migrations/v1_13/v140.go b/models/migrations/v1_13/v140.go
index 37aeeaeb6b..3de9eaaf7c 100644
--- a/models/migrations/v1_13/v140.go
+++ b/models/migrations/v1_13/v140.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_13/v141.go b/models/migrations/v1_13/v141.go
index 7dd1cc5d67..80796e6db9 100644
--- a/models/migrations/v1_13/v141.go
+++ b/models/migrations/v1_13/v141.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_13/v142.go b/models/migrations/v1_13/v142.go
index 3a2206b6c6..7c7c01ad47 100644
--- a/models/migrations/v1_13/v142.go
+++ b/models/migrations/v1_13/v142.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_13/v143.go b/models/migrations/v1_13/v143.go
index eee66c0a0d..ad1a8c66a5 100644
--- a/models/migrations/v1_13/v143.go
+++ b/models/migrations/v1_13/v143.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_13/v144.go b/models/migrations/v1_13/v144.go
index 0b8b91268b..f5a0bc5751 100644
--- a/models/migrations/v1_13/v144.go
+++ b/models/migrations/v1_13/v144.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_13/v145.go b/models/migrations/v1_13/v145.go
index b12da3c675..c96e79f8a0 100644
--- a/models/migrations/v1_13/v145.go
+++ b/models/migrations/v1_13/v145.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_13/v146.go b/models/migrations/v1_13/v146.go
index 7afd325371..5db8b0a437 100644
--- a/models/migrations/v1_13/v146.go
+++ b/models/migrations/v1_13/v146.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_13/v147.go b/models/migrations/v1_13/v147.go
index 1518b8dd24..d9c51145c4 100644
--- a/models/migrations/v1_13/v147.go
+++ b/models/migrations/v1_13/v147.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_13/v148.go b/models/migrations/v1_13/v148.go
index 40ede7174c..7bb8ab700b 100644
--- a/models/migrations/v1_13/v148.go
+++ b/models/migrations/v1_13/v148.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_13/v149.go b/models/migrations/v1_13/v149.go
index f0054b752d..e093b4f9db 100644
--- a/models/migrations/v1_13/v149.go
+++ b/models/migrations/v1_13/v149.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_13/v150.go b/models/migrations/v1_13/v150.go
index 99e6ddf685..d5ba489566 100644
--- a/models/migrations/v1_13/v150.go
+++ b/models/migrations/v1_13/v150.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_13/v151.go b/models/migrations/v1_13/v151.go
index 9efda93645..9490c1778c 100644
--- a/models/migrations/v1_13/v151.go
+++ b/models/migrations/v1_13/v151.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_13/v152.go b/models/migrations/v1_13/v152.go
index ec49a2fb97..7f7c414de8 100644
--- a/models/migrations/v1_13/v152.go
+++ b/models/migrations/v1_13/v152.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_13/v153.go b/models/migrations/v1_13/v153.go
index 1428edd3c1..4146d83387 100644
--- a/models/migrations/v1_13/v153.go
+++ b/models/migrations/v1_13/v153.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_13/v154.go b/models/migrations/v1_13/v154.go
index 8976db675c..8b4498be84 100644
--- a/models/migrations/v1_13/v154.go
+++ b/models/migrations/v1_13/v154.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_13 //nolint
diff --git a/models/migrations/v1_14/main_test.go b/models/migrations/v1_14/main_test.go
index 859f7520ee..7a091b9b9a 100644
--- a/models/migrations/v1_14/main_test.go
+++ b/models/migrations/v1_14/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v155.go b/models/migrations/v1_14/v155.go
index 630eb94f1a..7c5dc5fbe2 100644
--- a/models/migrations/v1_14/v155.go
+++ b/models/migrations/v1_14/v155.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v156.go b/models/migrations/v1_14/v156.go
index 698c1c942b..2cf4954a15 100644
--- a/models/migrations/v1_14/v156.go
+++ b/models/migrations/v1_14/v156.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v157.go b/models/migrations/v1_14/v157.go
index 12f0876d61..b9d8225af8 100644
--- a/models/migrations/v1_14/v157.go
+++ b/models/migrations/v1_14/v157.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v158.go b/models/migrations/v1_14/v158.go
index e6c9e629f7..7ea80a659e 100644
--- a/models/migrations/v1_14/v158.go
+++ b/models/migrations/v1_14/v158.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v159.go b/models/migrations/v1_14/v159.go
index 60be2b12bd..149ae0f6a8 100644
--- a/models/migrations/v1_14/v159.go
+++ b/models/migrations/v1_14/v159.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v160.go b/models/migrations/v1_14/v160.go
index 5bdf180ef9..b9b7e7fbdd 100644
--- a/models/migrations/v1_14/v160.go
+++ b/models/migrations/v1_14/v160.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v161.go b/models/migrations/v1_14/v161.go
index cf661caa37..ef3c14d595 100644
--- a/models/migrations/v1_14/v161.go
+++ b/models/migrations/v1_14/v161.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v162.go b/models/migrations/v1_14/v162.go
index bfaa824fa2..972f771fd7 100644
--- a/models/migrations/v1_14/v162.go
+++ b/models/migrations/v1_14/v162.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v163.go b/models/migrations/v1_14/v163.go
index 8044dd4035..22f55f48d1 100644
--- a/models/migrations/v1_14/v163.go
+++ b/models/migrations/v1_14/v163.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v164.go b/models/migrations/v1_14/v164.go
index 0a14248503..a6791b16e0 100644
--- a/models/migrations/v1_14/v164.go
+++ b/models/migrations/v1_14/v164.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v165.go b/models/migrations/v1_14/v165.go
index d42dea96a5..a784832e1c 100644
--- a/models/migrations/v1_14/v165.go
+++ b/models/migrations/v1_14/v165.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v166.go b/models/migrations/v1_14/v166.go
index bdb18ffa64..1eb7263347 100644
--- a/models/migrations/v1_14/v166.go
+++ b/models/migrations/v1_14/v166.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v167.go b/models/migrations/v1_14/v167.go
index 8098a76213..fb6b3b474a 100644
--- a/models/migrations/v1_14/v167.go
+++ b/models/migrations/v1_14/v167.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v168.go b/models/migrations/v1_14/v168.go
index e62ab909a0..a30a8859f7 100644
--- a/models/migrations/v1_14/v168.go
+++ b/models/migrations/v1_14/v168.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v169.go b/models/migrations/v1_14/v169.go
index f5fe332d97..5b81bb58b1 100644
--- a/models/migrations/v1_14/v169.go
+++ b/models/migrations/v1_14/v169.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v170.go b/models/migrations/v1_14/v170.go
index cb0f927a2f..adb28cae5e 100644
--- a/models/migrations/v1_14/v170.go
+++ b/models/migrations/v1_14/v170.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v171.go b/models/migrations/v1_14/v171.go
index 0c94fd4f93..35769342e8 100644
--- a/models/migrations/v1_14/v171.go
+++ b/models/migrations/v1_14/v171.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v172.go b/models/migrations/v1_14/v172.go
index 6518c03174..76519b9457 100644
--- a/models/migrations/v1_14/v172.go
+++ b/models/migrations/v1_14/v172.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v173.go b/models/migrations/v1_14/v173.go
index c8c9c39c69..3b7ecb8f9d 100644
--- a/models/migrations/v1_14/v173.go
+++ b/models/migrations/v1_14/v173.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v174.go b/models/migrations/v1_14/v174.go
index 9a139764c3..766d3a4208 100644
--- a/models/migrations/v1_14/v174.go
+++ b/models/migrations/v1_14/v174.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v175.go b/models/migrations/v1_14/v175.go
index e66871f5ee..f1b9b974c6 100644
--- a/models/migrations/v1_14/v175.go
+++ b/models/migrations/v1_14/v175.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v176.go b/models/migrations/v1_14/v176.go
index 4a343159ec..bd2484e49d 100644
--- a/models/migrations/v1_14/v176.go
+++ b/models/migrations/v1_14/v176.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v176_test.go b/models/migrations/v1_14/v176_test.go
index c088af9066..ea3e750d7f 100644
--- a/models/migrations/v1_14/v176_test.go
+++ b/models/migrations/v1_14/v176_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v177.go b/models/migrations/v1_14/v177.go
index c3086cd8e9..e72a9e53a9 100644
--- a/models/migrations/v1_14/v177.go
+++ b/models/migrations/v1_14/v177.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_14/v177_test.go b/models/migrations/v1_14/v177_test.go
index 4e061316d3..5568a18fec 100644
--- a/models/migrations/v1_14/v177_test.go
+++ b/models/migrations/v1_14/v177_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_14 //nolint
diff --git a/models/migrations/v1_15/main_test.go b/models/migrations/v1_15/main_test.go
index d589734e37..366f19788e 100644
--- a/models/migrations/v1_15/main_test.go
+++ b/models/migrations/v1_15/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_15 //nolint
diff --git a/models/migrations/v1_15/v178.go b/models/migrations/v1_15/v178.go
index 27ece98916..9bb6ed7f8d 100644
--- a/models/migrations/v1_15/v178.go
+++ b/models/migrations/v1_15/v178.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_15 //nolint
diff --git a/models/migrations/v1_15/v179.go b/models/migrations/v1_15/v179.go
index c23bf91766..f6b142eb42 100644
--- a/models/migrations/v1_15/v179.go
+++ b/models/migrations/v1_15/v179.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_15 //nolint
diff --git a/models/migrations/v1_15/v180.go b/models/migrations/v1_15/v180.go
index fc948bb1f5..17163ee2c6 100644
--- a/models/migrations/v1_15/v180.go
+++ b/models/migrations/v1_15/v180.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_15 //nolint
diff --git a/models/migrations/v1_15/v181.go b/models/migrations/v1_15/v181.go
index 7ec3dae376..e2bb3208c4 100644
--- a/models/migrations/v1_15/v181.go
+++ b/models/migrations/v1_15/v181.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_15 //nolint
diff --git a/models/migrations/v1_15/v181_test.go b/models/migrations/v1_15/v181_test.go
index f621d0d162..1b075be7a0 100644
--- a/models/migrations/v1_15/v181_test.go
+++ b/models/migrations/v1_15/v181_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_15 //nolint
diff --git a/models/migrations/v1_15/v182.go b/models/migrations/v1_15/v182.go
index 32282089af..c584ef851d 100644
--- a/models/migrations/v1_15/v182.go
+++ b/models/migrations/v1_15/v182.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_15 //nolint
diff --git a/models/migrations/v1_15/v182_test.go b/models/migrations/v1_15/v182_test.go
index b227e557ae..75ef8e1cd8 100644
--- a/models/migrations/v1_15/v182_test.go
+++ b/models/migrations/v1_15/v182_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_15 //nolint
diff --git a/models/migrations/v1_15/v183.go b/models/migrations/v1_15/v183.go
index 48039f8dc4..4cc98f9efc 100644
--- a/models/migrations/v1_15/v183.go
+++ b/models/migrations/v1_15/v183.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_15 //nolint
diff --git a/models/migrations/v1_15/v184.go b/models/migrations/v1_15/v184.go
index 195b419bc3..48f8b62165 100644
--- a/models/migrations/v1_15/v184.go
+++ b/models/migrations/v1_15/v184.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_15 //nolint
diff --git a/models/migrations/v1_15/v185.go b/models/migrations/v1_15/v185.go
index 4b8ed2e038..382cb62147 100644
--- a/models/migrations/v1_15/v185.go
+++ b/models/migrations/v1_15/v185.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_15 //nolint
diff --git a/models/migrations/v1_15/v186.go b/models/migrations/v1_15/v186.go
index 3f53ff6a11..310ac85f4c 100644
--- a/models/migrations/v1_15/v186.go
+++ b/models/migrations/v1_15/v186.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_15 //nolint
diff --git a/models/migrations/v1_15/v187.go b/models/migrations/v1_15/v187.go
index c3f60d1db8..afd86bac45 100644
--- a/models/migrations/v1_15/v187.go
+++ b/models/migrations/v1_15/v187.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_15 //nolint
diff --git a/models/migrations/v1_15/v188.go b/models/migrations/v1_15/v188.go
index 265b6f2f3f..71e45cab0e 100644
--- a/models/migrations/v1_15/v188.go
+++ b/models/migrations/v1_15/v188.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_15 //nolint
diff --git a/models/migrations/v1_16/main_test.go b/models/migrations/v1_16/main_test.go
index 8109a8a263..817a0c13a4 100644
--- a/models/migrations/v1_16/main_test.go
+++ b/models/migrations/v1_16/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v189.go b/models/migrations/v1_16/v189.go
index b04115845e..32e3899a3a 100644
--- a/models/migrations/v1_16/v189.go
+++ b/models/migrations/v1_16/v189.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v189_test.go b/models/migrations/v1_16/v189_test.go
index 9c0f0967cd..96cb97c328 100644
--- a/models/migrations/v1_16/v189_test.go
+++ b/models/migrations/v1_16/v189_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v190.go b/models/migrations/v1_16/v190.go
index a669fc31fa..1853729ae9 100644
--- a/models/migrations/v1_16/v190.go
+++ b/models/migrations/v1_16/v190.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v191.go b/models/migrations/v1_16/v191.go
index 461ac653d4..2d2c3d1a58 100644
--- a/models/migrations/v1_16/v191.go
+++ b/models/migrations/v1_16/v191.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v192.go b/models/migrations/v1_16/v192.go
index e3ac2654fd..2d5d158a09 100644
--- a/models/migrations/v1_16/v192.go
+++ b/models/migrations/v1_16/v192.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v193.go b/models/migrations/v1_16/v193.go
index 8bf960feb3..dd50e353e3 100644
--- a/models/migrations/v1_16/v193.go
+++ b/models/migrations/v1_16/v193.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v193_test.go b/models/migrations/v1_16/v193_test.go
index b573a54bb0..17669a012e 100644
--- a/models/migrations/v1_16/v193_test.go
+++ b/models/migrations/v1_16/v193_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v194.go b/models/migrations/v1_16/v194.go
index 8486b1131a..ae7fe10bfc 100644
--- a/models/migrations/v1_16/v194.go
+++ b/models/migrations/v1_16/v194.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v195.go b/models/migrations/v1_16/v195.go
index a7165cbf75..9e390a971e 100644
--- a/models/migrations/v1_16/v195.go
+++ b/models/migrations/v1_16/v195.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v195_test.go b/models/migrations/v1_16/v195_test.go
index 06ff13b52b..742397bf32 100644
--- a/models/migrations/v1_16/v195_test.go
+++ b/models/migrations/v1_16/v195_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v196.go b/models/migrations/v1_16/v196.go
index b73a56607e..ed7f4185a1 100644
--- a/models/migrations/v1_16/v196.go
+++ b/models/migrations/v1_16/v196.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v197.go b/models/migrations/v1_16/v197.go
index da2e9ae76f..ef9d57a79e 100644
--- a/models/migrations/v1_16/v197.go
+++ b/models/migrations/v1_16/v197.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v198.go b/models/migrations/v1_16/v198.go
index 0e09ee5306..ed792de793 100644
--- a/models/migrations/v1_16/v198.go
+++ b/models/migrations/v1_16/v198.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v199.go b/models/migrations/v1_16/v199.go
index 53ed7e4e8a..6adcf890af 100644
--- a/models/migrations/v1_16/v199.go
+++ b/models/migrations/v1_16/v199.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v200.go b/models/migrations/v1_16/v200.go
index 70ee36354c..e39f4af9e8 100644
--- a/models/migrations/v1_16/v200.go
+++ b/models/migrations/v1_16/v200.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v201.go b/models/migrations/v1_16/v201.go
index 6a2eda77b1..35e0c9f2fb 100644
--- a/models/migrations/v1_16/v201.go
+++ b/models/migrations/v1_16/v201.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v202.go b/models/migrations/v1_16/v202.go
index de0576b8d6..79676f3fab 100644
--- a/models/migrations/v1_16/v202.go
+++ b/models/migrations/v1_16/v202.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v203.go b/models/migrations/v1_16/v203.go
index 78903cb595..26ec135a07 100644
--- a/models/migrations/v1_16/v203.go
+++ b/models/migrations/v1_16/v203.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v204.go b/models/migrations/v1_16/v204.go
index 8151866fa2..e7577c8da4 100644
--- a/models/migrations/v1_16/v204.go
+++ b/models/migrations/v1_16/v204.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v205.go b/models/migrations/v1_16/v205.go
index 9cca445d35..d6c577083c 100644
--- a/models/migrations/v1_16/v205.go
+++ b/models/migrations/v1_16/v205.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v206.go b/models/migrations/v1_16/v206.go
index b2530d1005..64c794a2d0 100644
--- a/models/migrations/v1_16/v206.go
+++ b/models/migrations/v1_16/v206.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v207.go b/models/migrations/v1_16/v207.go
index f93ae4c339..91208f066c 100644
--- a/models/migrations/v1_16/v207.go
+++ b/models/migrations/v1_16/v207.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v208.go b/models/migrations/v1_16/v208.go
index 40f8b05b80..1a11ef096a 100644
--- a/models/migrations/v1_16/v208.go
+++ b/models/migrations/v1_16/v208.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v209.go b/models/migrations/v1_16/v209.go
index e2f06bbfb0..be3100e02a 100644
--- a/models/migrations/v1_16/v209.go
+++ b/models/migrations/v1_16/v209.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v210.go b/models/migrations/v1_16/v210.go
index b59b356607..974e77fb84 100644
--- a/models/migrations/v1_16/v210.go
+++ b/models/migrations/v1_16/v210.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_16/v210_test.go b/models/migrations/v1_16/v210_test.go
index 20c430594e..d43fb03106 100644
--- a/models/migrations/v1_16/v210_test.go
+++ b/models/migrations/v1_16/v210_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_16 //nolint
diff --git a/models/migrations/v1_17/main_test.go b/models/migrations/v1_17/main_test.go
index 0f1708de8b..e6871cacf2 100644
--- a/models/migrations/v1_17/main_test.go
+++ b/models/migrations/v1_17/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_17/v211.go b/models/migrations/v1_17/v211.go
index de9eb4b4b0..227de4984f 100644
--- a/models/migrations/v1_17/v211.go
+++ b/models/migrations/v1_17/v211.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_17/v212.go b/models/migrations/v1_17/v212.go
index 5187f5e72f..a00d29cd2f 100644
--- a/models/migrations/v1_17/v212.go
+++ b/models/migrations/v1_17/v212.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_17/v213.go b/models/migrations/v1_17/v213.go
index 7b1b158f9f..2ed56104cf 100644
--- a/models/migrations/v1_17/v213.go
+++ b/models/migrations/v1_17/v213.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_17/v214.go b/models/migrations/v1_17/v214.go
index e6fa53d4b8..e619b805a6 100644
--- a/models/migrations/v1_17/v214.go
+++ b/models/migrations/v1_17/v214.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_17/v215.go b/models/migrations/v1_17/v215.go
index e148515964..43e5b636c9 100644
--- a/models/migrations/v1_17/v215.go
+++ b/models/migrations/v1_17/v215.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_17/v216.go b/models/migrations/v1_17/v216.go
index bde5825772..388cb971e7 100644
--- a/models/migrations/v1_17/v216.go
+++ b/models/migrations/v1_17/v216.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_17/v217.go b/models/migrations/v1_17/v217.go
index abba9e8ec9..bbb40251fb 100644
--- a/models/migrations/v1_17/v217.go
+++ b/models/migrations/v1_17/v217.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_17/v218.go b/models/migrations/v1_17/v218.go
index a5cd1c591a..4d5e77070b 100644
--- a/models/migrations/v1_17/v218.go
+++ b/models/migrations/v1_17/v218.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_17/v219.go b/models/migrations/v1_17/v219.go
index d22f4e6b8e..c8aa2378c3 100644
--- a/models/migrations/v1_17/v219.go
+++ b/models/migrations/v1_17/v219.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_17/v220.go b/models/migrations/v1_17/v220.go
index bbceb933b3..31158509b8 100644
--- a/models/migrations/v1_17/v220.go
+++ b/models/migrations/v1_17/v220.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_17/v221.go b/models/migrations/v1_17/v221.go
index 17744d53ab..ceb079f369 100644
--- a/models/migrations/v1_17/v221.go
+++ b/models/migrations/v1_17/v221.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_17/v221_test.go b/models/migrations/v1_17/v221_test.go
index d635820f82..3215d74915 100644
--- a/models/migrations/v1_17/v221_test.go
+++ b/models/migrations/v1_17/v221_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_17/v222.go b/models/migrations/v1_17/v222.go
index 3aafb1848d..558c0d9adc 100644
--- a/models/migrations/v1_17/v222.go
+++ b/models/migrations/v1_17/v222.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_17/v223.go b/models/migrations/v1_17/v223.go
index 530ddf0e05..c83deb255f 100644
--- a/models/migrations/v1_17/v223.go
+++ b/models/migrations/v1_17/v223.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_17 // nolint
diff --git a/models/migrations/v1_18/main_test.go b/models/migrations/v1_18/main_test.go
index cb09340428..aec48845bf 100644
--- a/models/migrations/v1_18/main_test.go
+++ b/models/migrations/v1_18/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_18 // nolint
diff --git a/models/migrations/v1_18/v224.go b/models/migrations/v1_18/v224.go
index 34dbcc1aa1..f37b773eff 100644
--- a/models/migrations/v1_18/v224.go
+++ b/models/migrations/v1_18/v224.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_18 // nolint
diff --git a/models/migrations/v1_18/v225.go b/models/migrations/v1_18/v225.go
index 8848a89825..2ff5f4c7f7 100644
--- a/models/migrations/v1_18/v225.go
+++ b/models/migrations/v1_18/v225.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_18 // nolint
diff --git a/models/migrations/v1_18/v226.go b/models/migrations/v1_18/v226.go
index bff88cbefa..536346a97a 100644
--- a/models/migrations/v1_18/v226.go
+++ b/models/migrations/v1_18/v226.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_18 // nolint
diff --git a/models/migrations/v1_18/v227.go b/models/migrations/v1_18/v227.go
index 7dc468108c..b4da88ee0a 100644
--- a/models/migrations/v1_18/v227.go
+++ b/models/migrations/v1_18/v227.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_18 // nolint
diff --git a/models/migrations/v1_18/v228.go b/models/migrations/v1_18/v228.go
index 28ce171b53..3144310507 100644
--- a/models/migrations/v1_18/v228.go
+++ b/models/migrations/v1_18/v228.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_18 // nolint
diff --git a/models/migrations/v1_18/v229.go b/models/migrations/v1_18/v229.go
index ea7c3ed329..10d9f35097 100644
--- a/models/migrations/v1_18/v229.go
+++ b/models/migrations/v1_18/v229.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_18 //nolint
diff --git a/models/migrations/v1_18/v229_test.go b/models/migrations/v1_18/v229_test.go
index caa24b26b8..d489328c00 100644
--- a/models/migrations/v1_18/v229_test.go
+++ b/models/migrations/v1_18/v229_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_18 //nolint
diff --git a/models/migrations/v1_18/v230.go b/models/migrations/v1_18/v230.go
index fe98e07a45..2d2248fcb3 100644
--- a/models/migrations/v1_18/v230.go
+++ b/models/migrations/v1_18/v230.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_18 // nolint
diff --git a/models/migrations/v1_18/v230_test.go b/models/migrations/v1_18/v230_test.go
index 0af13a1b9e..308f3a5023 100644
--- a/models/migrations/v1_18/v230_test.go
+++ b/models/migrations/v1_18/v230_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_18 //nolint
diff --git a/models/migrations/v1_19/main_test.go b/models/migrations/v1_19/main_test.go
index 8ba7fcaf10..3d08ec2f5e 100644
--- a/models/migrations/v1_19/main_test.go
+++ b/models/migrations/v1_19/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_19 // nolint
diff --git a/models/migrations/v1_19/v231.go b/models/migrations/v1_19/v231.go
index 809a1cfa57..79e46132f0 100644
--- a/models/migrations/v1_19/v231.go
+++ b/models/migrations/v1_19/v231.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_19 //nolint
diff --git a/models/migrations/v1_19/v232.go b/models/migrations/v1_19/v232.go
index 92c9ad84b7..9feb5343bc 100644
--- a/models/migrations/v1_19/v232.go
+++ b/models/migrations/v1_19/v232.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_19 // nolint
diff --git a/models/migrations/v1_19/v233.go b/models/migrations/v1_19/v233.go
index 6443d58fbe..fe568b64eb 100644
--- a/models/migrations/v1_19/v233.go
+++ b/models/migrations/v1_19/v233.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_19 //nolint
diff --git a/models/migrations/v1_19/v233_test.go b/models/migrations/v1_19/v233_test.go
index dd810feef2..9902b7e4ae 100644
--- a/models/migrations/v1_19/v233_test.go
+++ b/models/migrations/v1_19/v233_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_19 //nolint
diff --git a/models/migrations/v1_6/v70.go b/models/migrations/v1_6/v70.go
index 880bcb8af7..166772ad70 100644
--- a/models/migrations/v1_6/v70.go
+++ b/models/migrations/v1_6/v70.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_6 // nolint
diff --git a/models/migrations/v1_6/v71.go b/models/migrations/v1_6/v71.go
index c021a24abc..57586c5c32 100644
--- a/models/migrations/v1_6/v71.go
+++ b/models/migrations/v1_6/v71.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_6 // nolint
diff --git a/models/migrations/v1_6/v72.go b/models/migrations/v1_6/v72.go
index 275512c4d0..b7428150be 100644
--- a/models/migrations/v1_6/v72.go
+++ b/models/migrations/v1_6/v72.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_6 // nolint
diff --git a/models/migrations/v1_7/v73.go b/models/migrations/v1_7/v73.go
index aa2cbba88a..0c5775c2b2 100644
--- a/models/migrations/v1_7/v73.go
+++ b/models/migrations/v1_7/v73.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_7 // nolint
diff --git a/models/migrations/v1_7/v74.go b/models/migrations/v1_7/v74.go
index 3694d68d31..aeca5448e1 100644
--- a/models/migrations/v1_7/v74.go
+++ b/models/migrations/v1_7/v74.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_7 // nolint
diff --git a/models/migrations/v1_7/v75.go b/models/migrations/v1_7/v75.go
index df26667351..bad8010090 100644
--- a/models/migrations/v1_7/v75.go
+++ b/models/migrations/v1_7/v75.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_7 // nolint
diff --git a/models/migrations/v1_8/v76.go b/models/migrations/v1_8/v76.go
index ef60eb7260..4512689386 100644
--- a/models/migrations/v1_8/v76.go
+++ b/models/migrations/v1_8/v76.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_8 // nolint
diff --git a/models/migrations/v1_8/v77.go b/models/migrations/v1_8/v77.go
index 7d5dccc9b6..f92dfed882 100644
--- a/models/migrations/v1_8/v77.go
+++ b/models/migrations/v1_8/v77.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_8 // nolint
diff --git a/models/migrations/v1_8/v78.go b/models/migrations/v1_8/v78.go
index d7943fb0aa..8bc0221412 100644
--- a/models/migrations/v1_8/v78.go
+++ b/models/migrations/v1_8/v78.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_8 // nolint
diff --git a/models/migrations/v1_8/v79.go b/models/migrations/v1_8/v79.go
index 6a867f5055..9cebca1853 100644
--- a/models/migrations/v1_8/v79.go
+++ b/models/migrations/v1_8/v79.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_8 // nolint
diff --git a/models/migrations/v1_8/v80.go b/models/migrations/v1_8/v80.go
index 2e1b0631e1..ec9726d889 100644
--- a/models/migrations/v1_8/v80.go
+++ b/models/migrations/v1_8/v80.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_8 // nolint
diff --git a/models/migrations/v1_8/v81.go b/models/migrations/v1_8/v81.go
index b06f879ef5..ff050386b4 100644
--- a/models/migrations/v1_8/v81.go
+++ b/models/migrations/v1_8/v81.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_8 // nolint
diff --git a/models/migrations/v1_9/v82.go b/models/migrations/v1_9/v82.go
index 82cb8b3ce1..b0dffe6035 100644
--- a/models/migrations/v1_9/v82.go
+++ b/models/migrations/v1_9/v82.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_9 // nolint
diff --git a/models/migrations/v1_9/v83.go b/models/migrations/v1_9/v83.go
index 31cce268eb..afe504e9c5 100644
--- a/models/migrations/v1_9/v83.go
+++ b/models/migrations/v1_9/v83.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_9 //nolint
diff --git a/models/migrations/v1_9/v84.go b/models/migrations/v1_9/v84.go
index 8aa7fbc07a..13fc238d48 100644
--- a/models/migrations/v1_9/v84.go
+++ b/models/migrations/v1_9/v84.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_9 //nolint
diff --git a/models/migrations/v1_9/v85.go b/models/migrations/v1_9/v85.go
index 0cd32c3829..6cf7faaad6 100644
--- a/models/migrations/v1_9/v85.go
+++ b/models/migrations/v1_9/v85.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_9 //nolint
diff --git a/models/migrations/v1_9/v86.go b/models/migrations/v1_9/v86.go
index 416e4fad93..a2a2c042c0 100644
--- a/models/migrations/v1_9/v86.go
+++ b/models/migrations/v1_9/v86.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_9 //nolint
diff --git a/models/migrations/v1_9/v87.go b/models/migrations/v1_9/v87.go
index 97c8f621c6..b373a40bc0 100644
--- a/models/migrations/v1_9/v87.go
+++ b/models/migrations/v1_9/v87.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1_9 //nolint
diff --git a/models/org.go b/models/org.go
index b56c80522b..1c9383fe8d 100644
--- a/models/org.go
+++ b/models/org.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/org_team.go b/models/org_team.go
index 792829563a..62376192ab 100644
--- a/models/org_team.go
+++ b/models/org_team.go
@@ -1,7 +1,6 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/org_team_test.go b/models/org_team_test.go
index 3b1fabf1c3..446084c815 100644
--- a/models/org_team_test.go
+++ b/models/org_team_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/org_test.go b/models/org_test.go
index 23b417119e..54e8f08465 100644
--- a/models/org_test.go
+++ b/models/org_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/organization/main_test.go b/models/organization/main_test.go
index 376552cb22..7ccf8c8efd 100644
--- a/models/organization/main_test.go
+++ b/models/organization/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package organization_test
diff --git a/models/organization/mini_org.go b/models/organization/mini_org.go
index 36cf948e65..b1627b5e6c 100644
--- a/models/organization/mini_org.go
+++ b/models/organization/mini_org.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package organization
diff --git a/models/organization/org.go b/models/organization/org.go
index 6bb982b281..ef7b834ad3 100644
--- a/models/organization/org.go
+++ b/models/organization/org.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package organization
diff --git a/models/organization/org_repo.go b/models/organization/org_repo.go
index 364374f71b..99638916b0 100644
--- a/models/organization/org_repo.go
+++ b/models/organization/org_repo.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package organization
diff --git a/models/organization/org_test.go b/models/organization/org_test.go
index 0fba6e2592..2f821e3a4c 100644
--- a/models/organization/org_test.go
+++ b/models/organization/org_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package organization_test
diff --git a/models/organization/org_user.go b/models/organization/org_user.go
index 7a5d17a75a..d514e401ba 100644
--- a/models/organization/org_user.go
+++ b/models/organization/org_user.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package organization
diff --git a/models/organization/org_user_test.go b/models/organization/org_user_test.go
index aed3ea23cf..1da17631e3 100644
--- a/models/organization/org_user_test.go
+++ b/models/organization/org_user_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package organization_test
diff --git a/models/organization/team.go b/models/organization/team.go
index aa9b24b57f..f6d71845df 100644
--- a/models/organization/team.go
+++ b/models/organization/team.go
@@ -1,7 +1,6 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package organization
diff --git a/models/organization/team_invite.go b/models/organization/team_invite.go
index 4504a2e9fe..17f6c59610 100644
--- a/models/organization/team_invite.go
+++ b/models/organization/team_invite.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package organization
diff --git a/models/organization/team_invite_test.go b/models/organization/team_invite_test.go
index e0596ec28d..cd6e1fe2ef 100644
--- a/models/organization/team_invite_test.go
+++ b/models/organization/team_invite_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package organization_test
diff --git a/models/organization/team_repo.go b/models/organization/team_repo.go
index 3ac4fa926b..e6b50ecff7 100644
--- a/models/organization/team_repo.go
+++ b/models/organization/team_repo.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package organization
diff --git a/models/organization/team_test.go b/models/organization/team_test.go
index c8d58a0eb7..d324c6d0da 100644
--- a/models/organization/team_test.go
+++ b/models/organization/team_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package organization_test
diff --git a/models/organization/team_unit.go b/models/organization/team_unit.go
index 4ad1ae95dc..7668ca7483 100644
--- a/models/organization/team_unit.go
+++ b/models/organization/team_unit.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package organization
diff --git a/models/organization/team_user.go b/models/organization/team_user.go
index 80f4d00e3d..7a024f1c6d 100644
--- a/models/organization/team_user.go
+++ b/models/organization/team_user.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package organization
diff --git a/models/packages/conan/references.go b/models/packages/conan/references.go
index e47e689af7..06e828e8fa 100644
--- a/models/packages/conan/references.go
+++ b/models/packages/conan/references.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/models/packages/conan/search.go b/models/packages/conan/search.go
index 39a9000459..ab0bff5968 100644
--- a/models/packages/conan/search.go
+++ b/models/packages/conan/search.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/models/packages/container/const.go b/models/packages/container/const.go
index 9d3ed64a6e..0dfbda051d 100644
--- a/models/packages/container/const.go
+++ b/models/packages/container/const.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/models/packages/container/search.go b/models/packages/container/search.go
index e4a5a53848..dfd5e244ba 100644
--- a/models/packages/container/search.go
+++ b/models/packages/container/search.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/models/packages/descriptor.go b/models/packages/descriptor.go
index 357574a706..7ffed2d8aa 100644
--- a/models/packages/descriptor.go
+++ b/models/packages/descriptor.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/models/packages/package.go b/models/packages/package.go
index cea04a0957..5c4837d98b 100644
--- a/models/packages/package.go
+++ b/models/packages/package.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/models/packages/package_blob.go b/models/packages/package_blob.go
index fcb71a96ec..36ad745312 100644
--- a/models/packages/package_blob.go
+++ b/models/packages/package_blob.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/models/packages/package_blob_upload.go b/models/packages/package_blob_upload.go
index 635068f1d8..64d1f9d473 100644
--- a/models/packages/package_blob_upload.go
+++ b/models/packages/package_blob_upload.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/models/packages/package_file.go b/models/packages/package_file.go
index 9f6284af07..6d0fd185a0 100644
--- a/models/packages/package_file.go
+++ b/models/packages/package_file.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/models/packages/package_property.go b/models/packages/package_property.go
index fc10713801..1b7f253d56 100644
--- a/models/packages/package_property.go
+++ b/models/packages/package_property.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/models/packages/package_test.go b/models/packages/package_test.go
index 915ef15f91..735688a731 100644
--- a/models/packages/package_test.go
+++ b/models/packages/package_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages_test
diff --git a/models/packages/package_version.go b/models/packages/package_version.go
index 6ee362502f..a2a8a45d8f 100644
--- a/models/packages/package_version.go
+++ b/models/packages/package_version.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/models/perm/access/access.go b/models/perm/access/access.go
index 7344e114a6..55d3f78e01 100644
--- a/models/perm/access/access.go
+++ b/models/perm/access/access.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package access
diff --git a/models/perm/access/access_test.go b/models/perm/access/access_test.go
index dc707b971b..bd828a1e9d 100644
--- a/models/perm/access/access_test.go
+++ b/models/perm/access/access_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package access_test
diff --git a/models/perm/access/main_test.go b/models/perm/access/main_test.go
index eb0abb74d1..837a9db437 100644
--- a/models/perm/access/main_test.go
+++ b/models/perm/access/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package access_test
diff --git a/models/perm/access/repo_permission.go b/models/perm/access/repo_permission.go
index 3b709a3e85..58c4299d16 100644
--- a/models/perm/access/repo_permission.go
+++ b/models/perm/access/repo_permission.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package access
diff --git a/models/perm/access_mode.go b/models/perm/access_mode.go
index dfa7f7b752..c482e296bc 100644
--- a/models/perm/access_mode.go
+++ b/models/perm/access_mode.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package perm
diff --git a/models/project/board.go b/models/project/board.go
index 8428fca722..d8468f0cb5 100644
--- a/models/project/board.go
+++ b/models/project/board.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package project
diff --git a/models/project/issue.go b/models/project/issue.go
index da48d4731e..3269197d6c 100644
--- a/models/project/issue.go
+++ b/models/project/issue.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package project
diff --git a/models/project/main_test.go b/models/project/main_test.go
index 2e97b3a5ef..816cbeb94a 100644
--- a/models/project/main_test.go
+++ b/models/project/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package project
diff --git a/models/project/project.go b/models/project/project.go
index 5dee241dcf..0d655e333e 100644
--- a/models/project/project.go
+++ b/models/project/project.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package project
diff --git a/models/project/project_test.go b/models/project/project_test.go
index f33fb3351a..4fde0fc7ce 100644
--- a/models/project/project_test.go
+++ b/models/project/project_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package project
diff --git a/models/pull/automerge.go b/models/pull/automerge.go
index 16ab5af093..d7e04eafa6 100644
--- a/models/pull/automerge.go
+++ b/models/pull/automerge.go
@@ -1,6 +1,5 @@
// Copyright 2022 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/models/pull/review_state.go b/models/pull/review_state.go
index 1c465bf766..1a2b1e165f 100644
--- a/models/pull/review_state.go
+++ b/models/pull/review_state.go
@@ -1,6 +1,6 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
package pull
import (
diff --git a/models/repo.go b/models/repo.go
index 2510f0e6bc..ca4f60a2f3 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/repo/archiver.go b/models/repo/archiver.go
index 84358ce0dc..11ecaff34c 100644
--- a/models/repo/archiver.go
+++ b/models/repo/archiver.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/attachment.go b/models/repo/attachment.go
index 428f370a0b..8fbf79a7a0 100644
--- a/models/repo/attachment.go
+++ b/models/repo/attachment.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/attachment_test.go b/models/repo/attachment_test.go
index d7c2f529db..21fba227a5 100644
--- a/models/repo/attachment_test.go
+++ b/models/repo/attachment_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo_test
diff --git a/models/repo/avatar.go b/models/repo/avatar.go
index 84b9f5ac21..9ec01bc04b 100644
--- a/models/repo/avatar.go
+++ b/models/repo/avatar.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/collaboration.go b/models/repo/collaboration.go
index c558259e46..04d92c415f 100644
--- a/models/repo/collaboration.go
+++ b/models/repo/collaboration.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/collaboration_test.go b/models/repo/collaboration_test.go
index cbf46dd286..d240e9cbef 100644
--- a/models/repo/collaboration_test.go
+++ b/models/repo/collaboration_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo_test
diff --git a/models/repo/fork.go b/models/repo/fork.go
index b54c61c425..eafbab0fb1 100644
--- a/models/repo/fork.go
+++ b/models/repo/fork.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/fork_test.go b/models/repo/fork_test.go
index 9e08d8136e..d02bf91dd9 100644
--- a/models/repo/fork_test.go
+++ b/models/repo/fork_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo_test
diff --git a/models/repo/git.go b/models/repo/git.go
index 509020565a..7ae88058dc 100644
--- a/models/repo/git.go
+++ b/models/repo/git.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/issue.go b/models/repo/issue.go
index 9f0fa3bad9..0d27cc041e 100644
--- a/models/repo/issue.go
+++ b/models/repo/issue.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/language_stats.go b/models/repo/language_stats.go
index 5c4cecdca1..f8f5dd041f 100644
--- a/models/repo/language_stats.go
+++ b/models/repo/language_stats.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/main_test.go b/models/repo/main_test.go
index f6d704ca65..bb9be54b9c 100644
--- a/models/repo/main_test.go
+++ b/models/repo/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo_test
diff --git a/models/repo/mirror.go b/models/repo/mirror.go
index 297ffd594a..63b26b5d0c 100644
--- a/models/repo/mirror.go
+++ b/models/repo/mirror.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/pushmirror.go b/models/repo/pushmirror.go
index fa876ee560..55fde8b838 100644
--- a/models/repo/pushmirror.go
+++ b/models/repo/pushmirror.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/pushmirror_test.go b/models/repo/pushmirror_test.go
index 5087e30095..2b3c5be292 100644
--- a/models/repo/pushmirror_test.go
+++ b/models/repo/pushmirror_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo_test
diff --git a/models/repo/redirect.go b/models/repo/redirect.go
index f28220c2af..92a011a453 100644
--- a/models/repo/redirect.go
+++ b/models/repo/redirect.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/redirect_test.go b/models/repo/redirect_test.go
index 90114667e5..8255704d59 100644
--- a/models/repo/redirect_test.go
+++ b/models/repo/redirect_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo_test
diff --git a/models/repo/release.go b/models/repo/release.go
index a92e4bb6e5..da6235988a 100644
--- a/models/repo/release.go
+++ b/models/repo/release.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/repo.go b/models/repo/repo.go
index a3dac8383f..f58b7de6ed 100644
--- a/models/repo/repo.go
+++ b/models/repo/repo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/repo_indexer.go b/models/repo/repo_indexer.go
index 67ba3382dc..9667c56244 100644
--- a/models/repo/repo_indexer.go
+++ b/models/repo/repo_indexer.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/repo_list.go b/models/repo/repo_list.go
index abfa73abb9..6d9dd9ec65 100644
--- a/models/repo/repo_list.go
+++ b/models/repo/repo_list.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/repo_list_test.go b/models/repo/repo_list_test.go
index 926ed07e9e..bfbceb7e2e 100644
--- a/models/repo/repo_list_test.go
+++ b/models/repo/repo_list_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo_test
diff --git a/models/repo/repo_test.go b/models/repo/repo_test.go
index 617ec12798..081221d1df 100644
--- a/models/repo/repo_test.go
+++ b/models/repo/repo_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo_test
diff --git a/models/repo/repo_unit.go b/models/repo/repo_unit.go
index c21c1e7a79..e20d03e2c5 100644
--- a/models/repo/repo_unit.go
+++ b/models/repo/repo_unit.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/star.go b/models/repo/star.go
index c7459b3655..b3d3d795f8 100644
--- a/models/repo/star.go
+++ b/models/repo/star.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/star_test.go b/models/repo/star_test.go
index 1b53e17d27..7221a6c8eb 100644
--- a/models/repo/star_test.go
+++ b/models/repo/star_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo_test
diff --git a/models/repo/topic.go b/models/repo/topic.go
index db41c85a33..05f50cfe46 100644
--- a/models/repo/topic.go
+++ b/models/repo/topic.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/topic_test.go b/models/repo/topic_test.go
index 8187addb81..8a8728168d 100644
--- a/models/repo/topic_test.go
+++ b/models/repo/topic_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo_test
diff --git a/models/repo/update.go b/models/repo/update.go
index 39c89a7c7c..3aef280ff8 100644
--- a/models/repo/update.go
+++ b/models/repo/update.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/upload.go b/models/repo/upload.go
index 13b6055701..3b1b97c6d6 100644
--- a/models/repo/upload.go
+++ b/models/repo/upload.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/user_repo.go b/models/repo/user_repo.go
index 9ca367f556..0d5b8579e0 100644
--- a/models/repo/user_repo.go
+++ b/models/repo/user_repo.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/user_repo_test.go b/models/repo/user_repo_test.go
index 6409145920..7816b0262a 100644
--- a/models/repo/user_repo_test.go
+++ b/models/repo/user_repo_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo_test
diff --git a/models/repo/watch.go b/models/repo/watch.go
index ecc25ee32b..00f313ca7c 100644
--- a/models/repo/watch.go
+++ b/models/repo/watch.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/watch_test.go b/models/repo/watch_test.go
index 18a2d5d5fd..8b8c6d6250 100644
--- a/models/repo/watch_test.go
+++ b/models/repo/watch_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo_test
diff --git a/models/repo/wiki.go b/models/repo/wiki.go
index c8886eaa34..b378666a20 100644
--- a/models/repo/wiki.go
+++ b/models/repo/wiki.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/models/repo/wiki_test.go b/models/repo/wiki_test.go
index 8631736276..629986f741 100644
--- a/models/repo/wiki_test.go
+++ b/models/repo/wiki_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo_test
diff --git a/models/repo_collaboration.go b/models/repo_collaboration.go
index 684d0e63a0..2c04cb442b 100644
--- a/models/repo_collaboration.go
+++ b/models/repo_collaboration.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/repo_collaboration_test.go b/models/repo_collaboration_test.go
index 77034b65d2..94c5ab5291 100644
--- a/models/repo_collaboration_test.go
+++ b/models/repo_collaboration_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/repo_test.go b/models/repo_test.go
index a8358e307d..da66b16136 100644
--- a/models/repo_test.go
+++ b/models/repo_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/repo_transfer.go b/models/repo_transfer.go
index 067ab4122f..6f02ab45fe 100644
--- a/models/repo_transfer.go
+++ b/models/repo_transfer.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/repo_transfer_test.go b/models/repo_transfer_test.go
index 7904b04e98..9720071a98 100644
--- a/models/repo_transfer_test.go
+++ b/models/repo_transfer_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/system/appstate.go b/models/system/appstate.go
index bc18c5181d..7378537678 100644
--- a/models/system/appstate.go
+++ b/models/system/appstate.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system
diff --git a/models/system/main_test.go b/models/system/main_test.go
index a56c76aedc..94e2906447 100644
--- a/models/system/main_test.go
+++ b/models/system/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system_test
diff --git a/models/system/notice.go b/models/system/notice.go
index 3276fa3ffb..e598abe222 100644
--- a/models/system/notice.go
+++ b/models/system/notice.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system
diff --git a/models/system/notice_test.go b/models/system/notice_test.go
index 768bcca66c..01eb9b57a5 100644
--- a/models/system/notice_test.go
+++ b/models/system/notice_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system_test
diff --git a/models/system/setting.go b/models/system/setting.go
index 22119ee5e6..dc6145b417 100644
--- a/models/system/setting.go
+++ b/models/system/setting.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system
diff --git a/models/system/setting_key.go b/models/system/setting_key.go
index 14105b89d0..ad083ed1ea 100644
--- a/models/system/setting_key.go
+++ b/models/system/setting_key.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system
diff --git a/models/system/setting_test.go b/models/system/setting_test.go
index d25fc05f31..3ff5ba2520 100644
--- a/models/system/setting_test.go
+++ b/models/system/setting_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system_test
diff --git a/models/unit/unit.go b/models/unit/unit.go
index b83bd61831..c4743dbdb4 100644
--- a/models/unit/unit.go
+++ b/models/unit/unit.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package unit
diff --git a/models/unittest/consistency.go b/models/unittest/consistency.go
index 46f889746a..17ff75c089 100644
--- a/models/unittest/consistency.go
+++ b/models/unittest/consistency.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package unittest
diff --git a/models/unittest/fixtures.go b/models/unittest/fixtures.go
index e39acd766f..9fba053825 100644
--- a/models/unittest/fixtures.go
+++ b/models/unittest/fixtures.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package unittest
diff --git a/models/unittest/fscopy.go b/models/unittest/fscopy.go
index ff815e729d..631da49f2d 100644
--- a/models/unittest/fscopy.go
+++ b/models/unittest/fscopy.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package unittest
diff --git a/models/unittest/reflection.go b/models/unittest/reflection.go
index 68c312ac9e..1b149b19fe 100644
--- a/models/unittest/reflection.go
+++ b/models/unittest/reflection.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package unittest
diff --git a/models/unittest/testdb.go b/models/unittest/testdb.go
index 2e6c25ae48..87d9304618 100644
--- a/models/unittest/testdb.go
+++ b/models/unittest/testdb.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package unittest
diff --git a/models/unittest/unit_tests.go b/models/unittest/unit_tests.go
index c8673debed..b2f19196c7 100644
--- a/models/unittest/unit_tests.go
+++ b/models/unittest/unit_tests.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package unittest
diff --git a/models/user.go b/models/user.go
index 0fc28ff055..715d0e3866 100644
--- a/models/user.go
+++ b/models/user.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package models
diff --git a/models/user/avatar.go b/models/user/avatar.go
index f523766746..ce25139b5f 100644
--- a/models/user/avatar.go
+++ b/models/user/avatar.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/models/user/badge.go b/models/user/badge.go
index 5ff840cb8c..948b0b1065 100644
--- a/models/user/badge.go
+++ b/models/user/badge.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/models/user/email_address.go b/models/user/email_address.go
index b6d372f04d..70394edb23 100644
--- a/models/user/email_address.go
+++ b/models/user/email_address.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/models/user/email_address_test.go b/models/user/email_address_test.go
index b9acaa1113..7e523a165d 100644
--- a/models/user/email_address_test.go
+++ b/models/user/email_address_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user_test
diff --git a/models/user/error.go b/models/user/error.go
index 3fe4ee6657..306b9ee9d9 100644
--- a/models/user/error.go
+++ b/models/user/error.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/models/user/external_login_user.go b/models/user/external_login_user.go
index 496717c57b..f70f3effcc 100644
--- a/models/user/external_login_user.go
+++ b/models/user/external_login_user.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/models/user/follow.go b/models/user/follow.go
index a02ebdb8c2..7efecc26a7 100644
--- a/models/user/follow.go
+++ b/models/user/follow.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/models/user/follow_test.go b/models/user/follow_test.go
index ad2f7cf742..fc408d5257 100644
--- a/models/user/follow_test.go
+++ b/models/user/follow_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user_test
diff --git a/models/user/list.go b/models/user/list.go
index 6c43c961c8..6b3b7bea9a 100644
--- a/models/user/list.go
+++ b/models/user/list.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/models/user/main_test.go b/models/user/main_test.go
index b2416a3e0a..0d76aacd5f 100644
--- a/models/user/main_test.go
+++ b/models/user/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user_test
diff --git a/models/user/openid.go b/models/user/openid.go
index f8e8a787e6..1946705048 100644
--- a/models/user/openid.go
+++ b/models/user/openid.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/models/user/openid_test.go b/models/user/openid_test.go
index d20b72d19a..6f0eae55e7 100644
--- a/models/user/openid_test.go
+++ b/models/user/openid_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user_test
diff --git a/models/user/redirect.go b/models/user/redirect.go
index af8d6439ad..9d8903c059 100644
--- a/models/user/redirect.go
+++ b/models/user/redirect.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/models/user/redirect_test.go b/models/user/redirect_test.go
index a5b19d4f04..3d2ea3aeec 100644
--- a/models/user/redirect_test.go
+++ b/models/user/redirect_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user_test
diff --git a/models/user/search.go b/models/user/search.go
index fa4a021a47..622e47ccff 100644
--- a/models/user/search.go
+++ b/models/user/search.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/models/user/setting.go b/models/user/setting.go
index 41de499de9..a17483f9af 100644
--- a/models/user/setting.go
+++ b/models/user/setting.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/models/user/setting_keys.go b/models/user/setting_keys.go
index d48ac93052..10255735b3 100644
--- a/models/user/setting_keys.go
+++ b/models/user/setting_keys.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/models/user/setting_test.go b/models/user/setting_test.go
index 5a772a8ce7..d0d612d25d 100644
--- a/models/user/setting_test.go
+++ b/models/user/setting_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user_test
diff --git a/models/user/user.go b/models/user/user.go
index 1a71acb0b7..7e3ae388fb 100644
--- a/models/user/user.go
+++ b/models/user/user.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/models/user/user_test.go b/models/user/user_test.go
index 1cdfb5978c..2ee4da0d67 100644
--- a/models/user/user_test.go
+++ b/models/user/user_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user_test
diff --git a/models/user/user_update.go b/models/user/user_update.go
index 9c9dc09bb2..66702e2a14 100644
--- a/models/user/user_update.go
+++ b/models/user/user_update.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/models/webhook/hooktask.go b/models/webhook/hooktask.go
index 92d9e97383..2a37ff31d8 100644
--- a/models/webhook/hooktask.go
+++ b/models/webhook/hooktask.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/models/webhook/main_test.go b/models/webhook/main_test.go
index 39ef2da6a2..8df569a3cc 100644
--- a/models/webhook/main_test.go
+++ b/models/webhook/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/models/webhook/webhook.go b/models/webhook/webhook.go
index 1daf806c4e..5defc67fd7 100644
--- a/models/webhook/webhook.go
+++ b/models/webhook/webhook.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/models/webhook/webhook_test.go b/models/webhook/webhook_test.go
index 8c4838ebdc..2bdafb61b6 100644
--- a/models/webhook/webhook_test.go
+++ b/models/webhook/webhook_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/modules/activitypub/client.go b/modules/activitypub/client.go
index 9bcef69de1..ed5c9990d6 100644
--- a/modules/activitypub/client.go
+++ b/modules/activitypub/client.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/modules/activitypub/client_test.go b/modules/activitypub/client_test.go
index 62068d53b3..b5f978c4dd 100644
--- a/modules/activitypub/client_test.go
+++ b/modules/activitypub/client_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/modules/activitypub/keypair.go b/modules/activitypub/keypair.go
index fe6aba9058..299bdc43e3 100644
--- a/modules/activitypub/keypair.go
+++ b/modules/activitypub/keypair.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/modules/activitypub/keypair_test.go b/modules/activitypub/keypair_test.go
index defe498614..888254c9da 100644
--- a/modules/activitypub/keypair_test.go
+++ b/modules/activitypub/keypair_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/modules/activitypub/main_test.go b/modules/activitypub/main_test.go
index 7fa2b09265..15399ca380 100644
--- a/modules/activitypub/main_test.go
+++ b/modules/activitypub/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/modules/activitypub/user_settings.go b/modules/activitypub/user_settings.go
index d192b9cdb2..ec5fa59842 100644
--- a/modules/activitypub/user_settings.go
+++ b/modules/activitypub/user_settings.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/modules/activitypub/user_settings_test.go b/modules/activitypub/user_settings_test.go
index beefde232f..78ebf8e824 100644
--- a/modules/activitypub/user_settings_test.go
+++ b/modules/activitypub/user_settings_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/modules/analyze/code_langauge.go b/modules/analyze/code_langauge.go
index baec2cebc5..74e7a06d06 100644
--- a/modules/analyze/code_langauge.go
+++ b/modules/analyze/code_langauge.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package analyze
diff --git a/modules/analyze/generated.go b/modules/analyze/generated.go
index 0f14d28545..f608387bfe 100644
--- a/modules/analyze/generated.go
+++ b/modules/analyze/generated.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package analyze
diff --git a/modules/analyze/vendor.go b/modules/analyze/vendor.go
index 976a6ddc7b..adcca923dd 100644
--- a/modules/analyze/vendor.go
+++ b/modules/analyze/vendor.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package analyze
diff --git a/modules/analyze/vendor_test.go b/modules/analyze/vendor_test.go
index 2784e49d34..aafd3c431b 100644
--- a/modules/analyze/vendor_test.go
+++ b/modules/analyze/vendor_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package analyze
diff --git a/modules/auth/openid/discovery_cache.go b/modules/auth/openid/discovery_cache.go
index 68cd7a8756..3a8d119bdd 100644
--- a/modules/auth/openid/discovery_cache.go
+++ b/modules/auth/openid/discovery_cache.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package openid
diff --git a/modules/auth/openid/discovery_cache_test.go b/modules/auth/openid/discovery_cache_test.go
index 28546f6031..5a7f450937 100644
--- a/modules/auth/openid/discovery_cache_test.go
+++ b/modules/auth/openid/discovery_cache_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package openid
diff --git a/modules/auth/openid/openid.go b/modules/auth/openid/openid.go
index 8926fc6d7a..249ce02335 100644
--- a/modules/auth/openid/openid.go
+++ b/modules/auth/openid/openid.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package openid
diff --git a/modules/auth/pam/pam.go b/modules/auth/pam/pam.go
index 39e93d7162..cca1482b1d 100644
--- a/modules/auth/pam/pam.go
+++ b/modules/auth/pam/pam.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build pam
diff --git a/modules/auth/pam/pam_stub.go b/modules/auth/pam/pam_stub.go
index 414d7631b5..a48e89860e 100644
--- a/modules/auth/pam/pam_stub.go
+++ b/modules/auth/pam/pam_stub.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !pam
diff --git a/modules/auth/pam/pam_test.go b/modules/auth/pam/pam_test.go
index 08565d2f31..c277d59c41 100644
--- a/modules/auth/pam/pam_test.go
+++ b/modules/auth/pam/pam_test.go
@@ -1,8 +1,7 @@
//go:build pam
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pam
diff --git a/modules/auth/webauthn/webauthn.go b/modules/auth/webauthn/webauthn.go
index e39b6f46d6..ec60a86100 100644
--- a/modules/auth/webauthn/webauthn.go
+++ b/modules/auth/webauthn/webauthn.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webauthn
diff --git a/modules/auth/webauthn/webauthn_test.go b/modules/auth/webauthn/webauthn_test.go
index 71fb9d2757..1beeb64cd6 100644
--- a/modules/auth/webauthn/webauthn_test.go
+++ b/modules/auth/webauthn/webauthn_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webauthn
diff --git a/modules/avatar/avatar.go b/modules/avatar/avatar.go
index 2de77de009..9ee926b059 100644
--- a/modules/avatar/avatar.go
+++ b/modules/avatar/avatar.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package avatar
diff --git a/modules/avatar/avatar_test.go b/modules/avatar/avatar_test.go
index a2acc54438..5ef4ed379b 100644
--- a/modules/avatar/avatar_test.go
+++ b/modules/avatar/avatar_test.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package avatar
diff --git a/modules/avatar/identicon/block.go b/modules/avatar/identicon/block.go
index 270f05e1b0..cb1803a231 100644
--- a/modules/avatar/identicon/block.go
+++ b/modules/avatar/identicon/block.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Copied and modified from https://github.com/issue9/identicon/ (MIT License)
diff --git a/modules/avatar/identicon/colors.go b/modules/avatar/identicon/colors.go
index a8d7090369..09a98bd0e9 100644
--- a/modules/avatar/identicon/colors.go
+++ b/modules/avatar/identicon/colors.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package identicon
diff --git a/modules/avatar/identicon/identicon.go b/modules/avatar/identicon/identicon.go
index cc7e2a791d..63926d5f19 100644
--- a/modules/avatar/identicon/identicon.go
+++ b/modules/avatar/identicon/identicon.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Copied and modified from https://github.com/issue9/identicon/ (MIT License)
// Generate pseudo-random avatars by IP, E-mail, etc.
diff --git a/modules/avatar/identicon/identicon_test.go b/modules/avatar/identicon/identicon_test.go
index 44635fbb3b..23bcc73e2e 100644
--- a/modules/avatar/identicon/identicon_test.go
+++ b/modules/avatar/identicon/identicon_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build test_avatar_identicon
diff --git a/modules/avatar/identicon/polygon.go b/modules/avatar/identicon/polygon.go
index 88440633c2..ecfc179a5c 100644
--- a/modules/avatar/identicon/polygon.go
+++ b/modules/avatar/identicon/polygon.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Copied and modified from https://github.com/issue9/identicon/ (MIT License)
diff --git a/modules/base/base.go b/modules/base/base.go
index 026f68f646..dddce202da 100644
--- a/modules/base/base.go
+++ b/modules/base/base.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/modules/base/natural_sort.go b/modules/base/natural_sort.go
index 46cdd52932..e920177f89 100644
--- a/modules/base/natural_sort.go
+++ b/modules/base/natural_sort.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/modules/base/natural_sort_test.go b/modules/base/natural_sort_test.go
index 2faa5acf38..91e864ad2a 100644
--- a/modules/base/natural_sort_test.go
+++ b/modules/base/natural_sort_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/modules/base/tool.go b/modules/base/tool.go
index df0947ec61..994e58ac3c 100644
--- a/modules/base/tool.go
+++ b/modules/base/tool.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/modules/base/tool_test.go b/modules/base/tool_test.go
index 87de898e0b..81f4b464e6 100644
--- a/modules/base/tool_test.go
+++ b/modules/base/tool_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/modules/cache/cache.go b/modules/cache/cache.go
index d98b0a0cec..2e7d5bb603 100644
--- a/modules/cache/cache.go
+++ b/modules/cache/cache.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cache
diff --git a/modules/cache/cache_redis.go b/modules/cache/cache_redis.go
index 7bb71f08ce..8e056ff2ec 100644
--- a/modules/cache/cache_redis.go
+++ b/modules/cache/cache_redis.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cache
diff --git a/modules/cache/cache_test.go b/modules/cache/cache_test.go
index f418f77e46..1c8f7d55ba 100644
--- a/modules/cache/cache_test.go
+++ b/modules/cache/cache_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cache
diff --git a/modules/cache/cache_twoqueue.go b/modules/cache/cache_twoqueue.go
index 9c26b011b6..2e2efd00f2 100644
--- a/modules/cache/cache_twoqueue.go
+++ b/modules/cache/cache_twoqueue.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cache
diff --git a/modules/charset/ambiguous.go b/modules/charset/ambiguous.go
index 9dab3b0951..c5b0c2c54d 100644
--- a/modules/charset/ambiguous.go
+++ b/modules/charset/ambiguous.go
@@ -1,7 +1,6 @@
// This file is generated by modules/charset/ambiguous/generate.go DO NOT EDIT
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/ambiguous/generate.go b/modules/charset/ambiguous/generate.go
index 7dd2821aae..b0c2531008 100644
--- a/modules/charset/ambiguous/generate.go
+++ b/modules/charset/ambiguous/generate.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package main
@@ -135,8 +134,8 @@ func runTemplate(t *template.Template, filename string, data interface{}) error
var generatorTemplate = template.Must(template.New("ambiguousTemplate").Parse(`// This file is generated by modules/charset/ambiguous/generate.go DO NOT EDIT
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
package charset
diff --git a/modules/charset/ambiguous_gen.go b/modules/charset/ambiguous_gen.go
index cc270affac..c88ffd5aa5 100644
--- a/modules/charset/ambiguous_gen.go
+++ b/modules/charset/ambiguous_gen.go
@@ -1,7 +1,6 @@
// This file is generated by modules/charset/ambiguous/generate.go DO NOT EDIT
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/ambiguous_gen_test.go b/modules/charset/ambiguous_gen_test.go
index bd64e1c5b1..221c27d0e1 100644
--- a/modules/charset/ambiguous_gen_test.go
+++ b/modules/charset/ambiguous_gen_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/breakwriter.go b/modules/charset/breakwriter.go
index 619826ff21..a87e846466 100644
--- a/modules/charset/breakwriter.go
+++ b/modules/charset/breakwriter.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/breakwriter_test.go b/modules/charset/breakwriter_test.go
index 6bbed42ea5..5eeeedc4e2 100644
--- a/modules/charset/breakwriter_test.go
+++ b/modules/charset/breakwriter_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/charset.go b/modules/charset/charset.go
index a1210d2f05..51152142a5 100644
--- a/modules/charset/charset.go
+++ b/modules/charset/charset.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/charset_test.go b/modules/charset/charset_test.go
index 6dd13c039d..fc56799b47 100644
--- a/modules/charset/charset_test.go
+++ b/modules/charset/charset_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/escape.go b/modules/charset/escape.go
index b264a569ff..ce2eb1446d 100644
--- a/modules/charset/escape.go
+++ b/modules/charset/escape.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:generate go run invisible/generate.go -v -o ./invisible_gen.go
diff --git a/modules/charset/escape_status.go b/modules/charset/escape_status.go
index 7ff0ef112b..37b6ad86d4 100644
--- a/modules/charset/escape_status.go
+++ b/modules/charset/escape_status.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/escape_stream.go b/modules/charset/escape_stream.go
index e5f303d26f..d29e393ab4 100644
--- a/modules/charset/escape_stream.go
+++ b/modules/charset/escape_stream.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/escape_test.go b/modules/charset/escape_test.go
index a7232a4658..abe767f4a5 100644
--- a/modules/charset/escape_test.go
+++ b/modules/charset/escape_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/htmlstream.go b/modules/charset/htmlstream.go
index b354ce6a48..61f29120a6 100644
--- a/modules/charset/htmlstream.go
+++ b/modules/charset/htmlstream.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/charset/invisible/generate.go b/modules/charset/invisible/generate.go
index 39eddd58dd..9dfc253333 100644
--- a/modules/charset/invisible/generate.go
+++ b/modules/charset/invisible/generate.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package main
@@ -88,8 +87,8 @@ func runTemplate(t *template.Template, filename string, data interface{}) error
var generatorTemplate = template.Must(template.New("invisibleTemplate").Parse(`// This file is generated by modules/charset/invisible/generate.go DO NOT EDIT
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
package charset
diff --git a/modules/charset/invisible_gen.go b/modules/charset/invisible_gen.go
index b3bfebe0c0..812f0e34b3 100644
--- a/modules/charset/invisible_gen.go
+++ b/modules/charset/invisible_gen.go
@@ -1,7 +1,6 @@
// This file is generated by modules/charset/invisible/generate.go DO NOT EDIT
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package charset
diff --git a/modules/container/set.go b/modules/container/set.go
index 4b4c74525d..15779983fd 100644
--- a/modules/container/set.go
+++ b/modules/container/set.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/modules/container/set_test.go b/modules/container/set_test.go
index 6654763e56..1502236034 100644
--- a/modules/container/set_test.go
+++ b/modules/container/set_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/modules/context/access_log.go b/modules/context/access_log.go
index 1a10c4763a..05c0f86218 100644
--- a/modules/context/access_log.go
+++ b/modules/context/access_log.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/api.go b/modules/context/api.go
index b9d130e2a8..f49997a787 100644
--- a/modules/context/api.go
+++ b/modules/context/api.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/api_org.go b/modules/context/api_org.go
index 2231677d42..dad02b1719 100644
--- a/modules/context/api_org.go
+++ b/modules/context/api_org.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/api_test.go b/modules/context/api_test.go
index 323fdbd2cc..911a49949e 100644
--- a/modules/context/api_test.go
+++ b/modules/context/api_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/auth.go b/modules/context/auth.go
index e6d882eb5b..7cc29debbd 100644
--- a/modules/context/auth.go
+++ b/modules/context/auth.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/captcha.go b/modules/context/captcha.go
index 0bd003da6c..735613504c 100644
--- a/modules/context/captcha.go
+++ b/modules/context/captcha.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/context.go b/modules/context/context.go
index 47368bb280..0d632b67c0 100644
--- a/modules/context/context.go
+++ b/modules/context/context.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/form.go b/modules/context/form.go
index 4f48d746b9..f9c4ab6a98 100644
--- a/modules/context/form.go
+++ b/modules/context/form.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/org.go b/modules/context/org.go
index 89260b8654..39df29a860 100644
--- a/modules/context/org.go
+++ b/modules/context/org.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/package.go b/modules/context/package.go
index ce0f9a511b..65a9d74b77 100644
--- a/modules/context/package.go
+++ b/modules/context/package.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/pagination.go b/modules/context/pagination.go
index 617b472f0d..3effd88f10 100644
--- a/modules/context/pagination.go
+++ b/modules/context/pagination.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/permission.go b/modules/context/permission.go
index fd2263c75f..8cb5d09eb9 100644
--- a/modules/context/permission.go
+++ b/modules/context/permission.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/private.go b/modules/context/private.go
index 9e7977b5d5..24f50fa471 100644
--- a/modules/context/private.go
+++ b/modules/context/private.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/repo.go b/modules/context/repo.go
index 1a83c49e95..57cf2fae5a 100644
--- a/modules/context/repo.go
+++ b/modules/context/repo.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/response.go b/modules/context/response.go
index 112964dbe1..40eb5c0d35 100644
--- a/modules/context/response.go
+++ b/modules/context/response.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/context/utils.go b/modules/context/utils.go
index a72c8b47e6..1fa99953a2 100644
--- a/modules/context/utils.go
+++ b/modules/context/utils.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/modules/convert/convert.go b/modules/convert/convert.go
index 78eb62d42d..107854e013 100644
--- a/modules/convert/convert.go
+++ b/modules/convert/convert.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/git_commit.go b/modules/convert/git_commit.go
index 6015a73712..59842e4020 100644
--- a/modules/convert/git_commit.go
+++ b/modules/convert/git_commit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/git_commit_test.go b/modules/convert/git_commit_test.go
index 0bba0e502e..8c4ef88ebe 100644
--- a/modules/convert/git_commit_test.go
+++ b/modules/convert/git_commit_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/issue.go b/modules/convert/issue.go
index 7c11b2a89f..ff3466cb3f 100644
--- a/modules/convert/issue.go
+++ b/modules/convert/issue.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/issue_comment.go b/modules/convert/issue_comment.go
index c33cf5c111..81cd1ac245 100644
--- a/modules/convert/issue_comment.go
+++ b/modules/convert/issue_comment.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/issue_test.go b/modules/convert/issue_test.go
index ec672abad2..4d780f3f00 100644
--- a/modules/convert/issue_test.go
+++ b/modules/convert/issue_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/main_test.go b/modules/convert/main_test.go
index 84f16b9af3..4c8e57bf79 100644
--- a/modules/convert/main_test.go
+++ b/modules/convert/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/mirror.go b/modules/convert/mirror.go
index b2414f4677..1dcfc9b64d 100644
--- a/modules/convert/mirror.go
+++ b/modules/convert/mirror.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/notification.go b/modules/convert/notification.go
index 55f782f8f6..49a1b148fb 100644
--- a/modules/convert/notification.go
+++ b/modules/convert/notification.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/package.go b/modules/convert/package.go
index 9713cda48b..900f1dd816 100644
--- a/modules/convert/package.go
+++ b/modules/convert/package.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/pull.go b/modules/convert/pull.go
index ca9a4c39c5..4291d737a4 100644
--- a/modules/convert/pull.go
+++ b/modules/convert/pull.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/pull_review.go b/modules/convert/pull_review.go
index e8a543fea9..66c5018ee2 100644
--- a/modules/convert/pull_review.go
+++ b/modules/convert/pull_review.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/pull_test.go b/modules/convert/pull_test.go
index a0a672d3a5..21d410cfcb 100644
--- a/modules/convert/pull_test.go
+++ b/modules/convert/pull_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/release.go b/modules/convert/release.go
index 5fc95dab72..95c6d03ab1 100644
--- a/modules/convert/release.go
+++ b/modules/convert/release.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/repository.go b/modules/convert/repository.go
index 09b84afa6c..3c75f588fd 100644
--- a/modules/convert/repository.go
+++ b/modules/convert/repository.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/status.go b/modules/convert/status.go
index 7ed28a9c10..5eb38ad063 100644
--- a/modules/convert/status.go
+++ b/modules/convert/status.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/user.go b/modules/convert/user.go
index 093994856c..6b90539fd9 100644
--- a/modules/convert/user.go
+++ b/modules/convert/user.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/user_test.go b/modules/convert/user_test.go
index 89d912e460..c3ab4187b7 100644
--- a/modules/convert/user_test.go
+++ b/modules/convert/user_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/utils.go b/modules/convert/utils.go
index 52fbcf547f..cdce60831c 100644
--- a/modules/convert/utils.go
+++ b/modules/convert/utils.go
@@ -1,7 +1,6 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/utils_test.go b/modules/convert/utils_test.go
index e0ab15dfd8..d1ec5980ce 100644
--- a/modules/convert/utils_test.go
+++ b/modules/convert/utils_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/convert/wiki.go b/modules/convert/wiki.go
index 1112da43f8..20d76162c7 100644
--- a/modules/convert/wiki.go
+++ b/modules/convert/wiki.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package convert
diff --git a/modules/csv/csv.go b/modules/csv/csv.go
index fe0c350960..c5497befe7 100644
--- a/modules/csv/csv.go
+++ b/modules/csv/csv.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package csv
diff --git a/modules/csv/csv_test.go b/modules/csv/csv_test.go
index 5a8e13c811..c627597fa3 100644
--- a/modules/csv/csv_test.go
+++ b/modules/csv/csv_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package csv
diff --git a/modules/doctor/authorizedkeys.go b/modules/doctor/authorizedkeys.go
index b3e9699a02..e4d85c4a18 100644
--- a/modules/doctor/authorizedkeys.go
+++ b/modules/doctor/authorizedkeys.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/breaking.go b/modules/doctor/breaking.go
index 474997acd8..77e3d4e8ef 100644
--- a/modules/doctor/breaking.go
+++ b/modules/doctor/breaking.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/checkOldArchives.go b/modules/doctor/checkOldArchives.go
index cefb3817bf..390dfb43aa 100644
--- a/modules/doctor/checkOldArchives.go
+++ b/modules/doctor/checkOldArchives.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/dbconsistency.go b/modules/doctor/dbconsistency.go
index 602b2e523e..bb560ac6a3 100644
--- a/modules/doctor/dbconsistency.go
+++ b/modules/doctor/dbconsistency.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/dbversion.go b/modules/doctor/dbversion.go
index 8afd9f44fd..3ddca92fb3 100644
--- a/modules/doctor/dbversion.go
+++ b/modules/doctor/dbversion.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/doctor.go b/modules/doctor/doctor.go
index 5d14cef55c..2025edc58d 100644
--- a/modules/doctor/doctor.go
+++ b/modules/doctor/doctor.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/fix16961.go b/modules/doctor/fix16961.go
index d9f895739f..ea14a9b2c4 100644
--- a/modules/doctor/fix16961.go
+++ b/modules/doctor/fix16961.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/fix16961_test.go b/modules/doctor/fix16961_test.go
index f5e5667c09..498ed9c8d5 100644
--- a/modules/doctor/fix16961_test.go
+++ b/modules/doctor/fix16961_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/heads.go b/modules/doctor/heads.go
index b1bfd50b20..41fca01d57 100644
--- a/modules/doctor/heads.go
+++ b/modules/doctor/heads.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/mergebase.go b/modules/doctor/mergebase.go
index 9f5e336461..e79369e581 100644
--- a/modules/doctor/mergebase.go
+++ b/modules/doctor/mergebase.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/misc.go b/modules/doctor/misc.go
index 6f0e066f54..73df513901 100644
--- a/modules/doctor/misc.go
+++ b/modules/doctor/misc.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/paths.go b/modules/doctor/paths.go
index 5a27045457..ad50078d3e 100644
--- a/modules/doctor/paths.go
+++ b/modules/doctor/paths.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/storage.go b/modules/doctor/storage.go
index 8ae9168ea6..aa987de447 100644
--- a/modules/doctor/storage.go
+++ b/modules/doctor/storage.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/doctor/usertype.go b/modules/doctor/usertype.go
index 166e38bd24..550e536cbd 100644
--- a/modules/doctor/usertype.go
+++ b/modules/doctor/usertype.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package doctor
diff --git a/modules/emoji/emoji.go b/modules/emoji/emoji.go
index 89a86a7f3e..3d4ef8599b 100644
--- a/modules/emoji/emoji.go
+++ b/modules/emoji/emoji.go
@@ -1,7 +1,6 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Copyright 2015 Kenneth Shaw
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package emoji
diff --git a/modules/emoji/emoji_data.go b/modules/emoji/emoji_data.go
index 1e14d3de6b..b73013ea1b 100644
--- a/modules/emoji/emoji_data.go
+++ b/modules/emoji/emoji_data.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package emoji
diff --git a/modules/emoji/emoji_test.go b/modules/emoji/emoji_test.go
index def252896f..2526cd121e 100644
--- a/modules/emoji/emoji_test.go
+++ b/modules/emoji/emoji_test.go
@@ -1,7 +1,6 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Copyright 2015 Kenneth Shaw
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package emoji
diff --git a/modules/eventsource/event.go b/modules/eventsource/event.go
index 281a1bb135..d5d2f323af 100644
--- a/modules/eventsource/event.go
+++ b/modules/eventsource/event.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package eventsource
diff --git a/modules/eventsource/event_test.go b/modules/eventsource/event_test.go
index a80e062f0e..4c4272880d 100644
--- a/modules/eventsource/event_test.go
+++ b/modules/eventsource/event_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package eventsource
diff --git a/modules/eventsource/manager.go b/modules/eventsource/manager.go
index 812d673992..7ed2a82903 100644
--- a/modules/eventsource/manager.go
+++ b/modules/eventsource/manager.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package eventsource
diff --git a/modules/eventsource/manager_run.go b/modules/eventsource/manager_run.go
index 44e878fd4e..97d08aa8a8 100644
--- a/modules/eventsource/manager_run.go
+++ b/modules/eventsource/manager_run.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package eventsource
diff --git a/modules/eventsource/messenger.go b/modules/eventsource/messenger.go
index 091e1a5c1c..6df26716be 100644
--- a/modules/eventsource/messenger.go
+++ b/modules/eventsource/messenger.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package eventsource
diff --git a/modules/generate/generate.go b/modules/generate/generate.go
index 326fe8036b..f29634e05e 100644
--- a/modules/generate/generate.go
+++ b/modules/generate/generate.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package generate
diff --git a/modules/git/batch_reader.go b/modules/git/batch_reader.go
index feb0dd31be..75539c0d0a 100644
--- a/modules/git/batch_reader.go
+++ b/modules/git/batch_reader.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/blame.go b/modules/git/blame.go
index 832b12213c..fea75b4818 100644
--- a/modules/git/blame.go
+++ b/modules/git/blame.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/blame_test.go b/modules/git/blame_test.go
index 4bee8cd27a..94277b7c1d 100644
--- a/modules/git/blame_test.go
+++ b/modules/git/blame_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/blob.go b/modules/git/blob.go
index 9567affd03..8864f54d1b 100644
--- a/modules/git/blob.go
+++ b/modules/git/blob.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/blob_gogit.go b/modules/git/blob_gogit.go
index 2a2b51e422..aa206409d0 100644
--- a/modules/git/blob_gogit.go
+++ b/modules/git/blob_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/blob_nogogit.go b/modules/git/blob_nogogit.go
index 89bb98162f..511332eb50 100644
--- a/modules/git/blob_nogogit.go
+++ b/modules/git/blob_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/blob_test.go b/modules/git/blob_test.go
index 39f3f11162..63374384f6 100644
--- a/modules/git/blob_test.go
+++ b/modules/git/blob_test.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/command.go b/modules/git/command.go
index 0d94494f11..d88fcd1a8c 100644
--- a/modules/git/command.go
+++ b/modules/git/command.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/command_race_test.go b/modules/git/command_race_test.go
index ae2acc3a5a..f567406822 100644
--- a/modules/git/command_race_test.go
+++ b/modules/git/command_race_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build race
diff --git a/modules/git/command_test.go b/modules/git/command_test.go
index 52d25c9c74..2dca2d0d34 100644
--- a/modules/git/command_test.go
+++ b/modules/git/command_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/commit.go b/modules/git/commit.go
index 061adc1082..14710de612 100644
--- a/modules/git/commit.go
+++ b/modules/git/commit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/commit_convert_gogit.go b/modules/git/commit_convert_gogit.go
index bb9d3bf8ce..669f1b15d5 100644
--- a/modules/git/commit_convert_gogit.go
+++ b/modules/git/commit_convert_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/commit_info.go b/modules/git/commit_info.go
index 83e23545de..c740a4e13e 100644
--- a/modules/git/commit_info.go
+++ b/modules/git/commit_info.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/commit_info_gogit.go b/modules/git/commit_info_gogit.go
index 341698ab34..20db5691eb 100644
--- a/modules/git/commit_info_gogit.go
+++ b/modules/git/commit_info_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/commit_info_nogogit.go b/modules/git/commit_info_nogogit.go
index d7bca3b948..e469d2cab6 100644
--- a/modules/git/commit_info_nogogit.go
+++ b/modules/git/commit_info_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/commit_info_test.go b/modules/git/commit_info_test.go
index 4bc3596896..1e331fac00 100644
--- a/modules/git/commit_info_test.go
+++ b/modules/git/commit_info_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/commit_reader.go b/modules/git/commit_reader.go
index 3c1f6f5ffd..23607c43ab 100644
--- a/modules/git/commit_reader.go
+++ b/modules/git/commit_reader.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/commit_test.go b/modules/git/commit_test.go
index fb8c22dfd3..1d6fb00183 100644
--- a/modules/git/commit_test.go
+++ b/modules/git/commit_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/diff.go b/modules/git/diff.go
index 1a43d0dd4a..10ef3d83fb 100644
--- a/modules/git/diff.go
+++ b/modules/git/diff.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/diff_test.go b/modules/git/diff_test.go
index de71248508..0f865c52a8 100644
--- a/modules/git/diff_test.go
+++ b/modules/git/diff_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/error.go b/modules/git/error.go
index ebfea8e702..dc10d451b3 100644
--- a/modules/git/error.go
+++ b/modules/git/error.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/foreachref/format.go b/modules/git/foreachref/format.go
index c9aa5233e1..97e8ee4724 100644
--- a/modules/git/foreachref/format.go
+++ b/modules/git/foreachref/format.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package foreachref
diff --git a/modules/git/foreachref/format_test.go b/modules/git/foreachref/format_test.go
index 5aca10f752..392a95a4e6 100644
--- a/modules/git/foreachref/format_test.go
+++ b/modules/git/foreachref/format_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package foreachref_test
diff --git a/modules/git/foreachref/parser.go b/modules/git/foreachref/parser.go
index bf83a10ed5..de69eaa2c8 100644
--- a/modules/git/foreachref/parser.go
+++ b/modules/git/foreachref/parser.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package foreachref
diff --git a/modules/git/foreachref/parser_test.go b/modules/git/foreachref/parser_test.go
index cb36428604..5468318ca8 100644
--- a/modules/git/foreachref/parser_test.go
+++ b/modules/git/foreachref/parser_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package foreachref_test
diff --git a/modules/git/git.go b/modules/git/git.go
index 18d62838df..f5919d82dc 100644
--- a/modules/git/git.go
+++ b/modules/git/git.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/git_test.go b/modules/git/git_test.go
index 0915737878..e3bfe496da 100644
--- a/modules/git/git_test.go
+++ b/modules/git/git_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/hook.go b/modules/git/hook.go
index c50f891224..46f93ce13e 100644
--- a/modules/git/hook.go
+++ b/modules/git/hook.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/last_commit_cache.go b/modules/git/last_commit_cache.go
index 2b51d59720..ec8f1cce62 100644
--- a/modules/git/last_commit_cache.go
+++ b/modules/git/last_commit_cache.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/last_commit_cache_gogit.go b/modules/git/last_commit_cache_gogit.go
index 82c76bad20..90e609fc81 100644
--- a/modules/git/last_commit_cache_gogit.go
+++ b/modules/git/last_commit_cache_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/last_commit_cache_nogogit.go b/modules/git/last_commit_cache_nogogit.go
index 1f4d693a26..155cb3cb7c 100644
--- a/modules/git/last_commit_cache_nogogit.go
+++ b/modules/git/last_commit_cache_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/log_name_status.go b/modules/git/log_name_status.go
index dee4fc226e..fe3b6598d7 100644
--- a/modules/git/log_name_status.go
+++ b/modules/git/log_name_status.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/notes.go b/modules/git/notes.go
index a8dd66df0b..63539cb3a2 100644
--- a/modules/git/notes.go
+++ b/modules/git/notes.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/notes_gogit.go b/modules/git/notes_gogit.go
index fe6d1f1e58..c2297d8970 100644
--- a/modules/git/notes_gogit.go
+++ b/modules/git/notes_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/notes_nogogit.go b/modules/git/notes_nogogit.go
index ba216ce3e4..4da375c321 100644
--- a/modules/git/notes_nogogit.go
+++ b/modules/git/notes_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/notes_test.go b/modules/git/notes_test.go
index 34e7178bea..267671d8fa 100644
--- a/modules/git/notes_test.go
+++ b/modules/git/notes_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/parse_gogit.go b/modules/git/parse_gogit.go
index 4a8dcfdf35..226ef5df73 100644
--- a/modules/git/parse_gogit.go
+++ b/modules/git/parse_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/parse_gogit_test.go b/modules/git/parse_gogit_test.go
index 075de6d25d..f6e32401e6 100644
--- a/modules/git/parse_gogit_test.go
+++ b/modules/git/parse_gogit_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/parse_nogogit.go b/modules/git/parse_nogogit.go
index fb5b63def9..8b94c69200 100644
--- a/modules/git/parse_nogogit.go
+++ b/modules/git/parse_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/parse_nogogit_test.go b/modules/git/parse_nogogit_test.go
index cecd3960da..23fddb014c 100644
--- a/modules/git/parse_nogogit_test.go
+++ b/modules/git/parse_nogogit_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/pipeline/catfile.go b/modules/git/pipeline/catfile.go
index c1d4bd1665..4677218150 100644
--- a/modules/git/pipeline/catfile.go
+++ b/modules/git/pipeline/catfile.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pipeline
diff --git a/modules/git/pipeline/lfs.go b/modules/git/pipeline/lfs.go
index 18cce34289..ee0505f29f 100644
--- a/modules/git/pipeline/lfs.go
+++ b/modules/git/pipeline/lfs.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/pipeline/lfs_nogogit.go b/modules/git/pipeline/lfs_nogogit.go
index 061da8ca50..49390f7c00 100644
--- a/modules/git/pipeline/lfs_nogogit.go
+++ b/modules/git/pipeline/lfs_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/pipeline/namerev.go b/modules/git/pipeline/namerev.go
index 85ba7db23e..ad583a7479 100644
--- a/modules/git/pipeline/namerev.go
+++ b/modules/git/pipeline/namerev.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pipeline
diff --git a/modules/git/pipeline/revlist.go b/modules/git/pipeline/revlist.go
index 93142034ec..09bb2c8b3c 100644
--- a/modules/git/pipeline/revlist.go
+++ b/modules/git/pipeline/revlist.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pipeline
diff --git a/modules/git/ref.go b/modules/git/ref.go
index 2f459148a2..cd8d268184 100644
--- a/modules/git/ref.go
+++ b/modules/git/ref.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/remote.go b/modules/git/remote.go
index c416eea136..3585313f6a 100644
--- a/modules/git/remote.go
+++ b/modules/git/remote.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo.go b/modules/git/repo.go
index 8ba3ae4fda..4ba40d20af 100644
--- a/modules/git/repo.go
+++ b/modules/git/repo.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_archive.go b/modules/git/repo_archive.go
index 13be2004ca..cff9724f00 100644
--- a/modules/git/repo_archive.go
+++ b/modules/git/repo_archive.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_attribute.go b/modules/git/repo_attribute.go
index d9c50be6f7..d3a3dc8c83 100644
--- a/modules/git/repo_attribute.go
+++ b/modules/git/repo_attribute.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_attribute_test.go b/modules/git/repo_attribute_test.go
index 901a0aa244..6882874d2d 100644
--- a/modules/git/repo_attribute_test.go
+++ b/modules/git/repo_attribute_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_base.go b/modules/git/repo_base.go
index 710f0de9f6..2c6df8b9c4 100644
--- a/modules/git/repo_base.go
+++ b/modules/git/repo_base.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_base_gogit.go b/modules/git/repo_base_gogit.go
index 8fe9c404c3..ef59ead900 100644
--- a/modules/git/repo_base_gogit.go
+++ b/modules/git/repo_base_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_base_nogogit.go b/modules/git/repo_base_nogogit.go
index 56af2c640f..a0216d14a6 100644
--- a/modules/git/repo_base_nogogit.go
+++ b/modules/git/repo_base_nogogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_blame.go b/modules/git/repo_blame.go
index 8a3707aa09..7f44735f9f 100644
--- a/modules/git/repo_blame.go
+++ b/modules/git/repo_blame.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_blob.go b/modules/git/repo_blob.go
index 5397f24cb6..698b6c7074 100644
--- a/modules/git/repo_blob.go
+++ b/modules/git/repo_blob.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_blob_gogit.go b/modules/git/repo_blob_gogit.go
index 5640011f4a..7f0892f6f5 100644
--- a/modules/git/repo_blob_gogit.go
+++ b/modules/git/repo_blob_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_blob_nogogit.go b/modules/git/repo_blob_nogogit.go
index 44ba0a36b1..184a2bc9dd 100644
--- a/modules/git/repo_blob_nogogit.go
+++ b/modules/git/repo_blob_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_blob_test.go b/modules/git/repo_blob_test.go
index 9f0b865377..026c73a283 100644
--- a/modules/git/repo_blob_test.go
+++ b/modules/git/repo_blob_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_branch.go b/modules/git/repo_branch.go
index a3fc7e0c42..14dcf14d8a 100644
--- a/modules/git/repo_branch.go
+++ b/modules/git/repo_branch.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_branch_gogit.go b/modules/git/repo_branch_gogit.go
index dc29576562..ca19d3827e 100644
--- a/modules/git/repo_branch_gogit.go
+++ b/modules/git/repo_branch_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_branch_nogogit.go b/modules/git/repo_branch_nogogit.go
index 95c3718841..b1d0df6474 100644
--- a/modules/git/repo_branch_nogogit.go
+++ b/modules/git/repo_branch_nogogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_branch_test.go b/modules/git/repo_branch_test.go
index 58a738e28b..fe788946e5 100644
--- a/modules/git/repo_branch_test.go
+++ b/modules/git/repo_branch_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_commit.go b/modules/git/repo_commit.go
index 90259fd746..8343e34843 100644
--- a/modules/git/repo_commit.go
+++ b/modules/git/repo_commit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_commit_gogit.go b/modules/git/repo_commit_gogit.go
index 14fec3f9c6..b6c42a802f 100644
--- a/modules/git/repo_commit_gogit.go
+++ b/modules/git/repo_commit_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_commit_nogogit.go b/modules/git/repo_commit_nogogit.go
index 13a7be778f..35a705fea3 100644
--- a/modules/git/repo_commit_nogogit.go
+++ b/modules/git/repo_commit_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_commit_test.go b/modules/git/repo_commit_test.go
index 7b3a5101f2..af8c0592fe 100644
--- a/modules/git/repo_commit_test.go
+++ b/modules/git/repo_commit_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_commitgraph.go b/modules/git/repo_commitgraph.go
index 075b59ad06..492438be37 100644
--- a/modules/git/repo_commitgraph.go
+++ b/modules/git/repo_commitgraph.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_commitgraph_gogit.go b/modules/git/repo_commitgraph_gogit.go
index 6b00a4fdc4..8e92c30e54 100644
--- a/modules/git/repo_commitgraph_gogit.go
+++ b/modules/git/repo_commitgraph_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_compare.go b/modules/git/repo_compare.go
index 7575b11658..b1b55c88a4 100644
--- a/modules/git/repo_compare.go
+++ b/modules/git/repo_compare.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_compare_test.go b/modules/git/repo_compare_test.go
index 63f7254dea..5b50bc82ad 100644
--- a/modules/git/repo_compare_test.go
+++ b/modules/git/repo_compare_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_gpg.go b/modules/git/repo_gpg.go
index 25188d07e3..4803be5816 100644
--- a/modules/git/repo_gpg.go
+++ b/modules/git/repo_gpg.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_hook.go b/modules/git/repo_hook.go
index a652e938fa..cdf076505d 100644
--- a/modules/git/repo_hook.go
+++ b/modules/git/repo_hook.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_index.go b/modules/git/repo_index.go
index 5542883288..99eb2b540b 100644
--- a/modules/git/repo_index.go
+++ b/modules/git/repo_index.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_language_stats.go b/modules/git/repo_language_stats.go
index daeb4b591f..74c76b40a4 100644
--- a/modules/git/repo_language_stats.go
+++ b/modules/git/repo_language_stats.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_language_stats_gogit.go b/modules/git/repo_language_stats_gogit.go
index 503e774e7a..9674eca275 100644
--- a/modules/git/repo_language_stats_gogit.go
+++ b/modules/git/repo_language_stats_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_language_stats_nogogit.go b/modules/git/repo_language_stats_nogogit.go
index baeb114909..a1d28f40e8 100644
--- a/modules/git/repo_language_stats_nogogit.go
+++ b/modules/git/repo_language_stats_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_language_stats_test.go b/modules/git/repo_language_stats_test.go
index 0234c77c0b..d616d95741 100644
--- a/modules/git/repo_language_stats_test.go
+++ b/modules/git/repo_language_stats_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_object.go b/modules/git/repo_object.go
index af448b0110..9edc201fea 100644
--- a/modules/git/repo_object.go
+++ b/modules/git/repo_object.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_ref.go b/modules/git/repo_ref.go
index 397434e12f..54e424bb83 100644
--- a/modules/git/repo_ref.go
+++ b/modules/git/repo_ref.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_ref_gogit.go b/modules/git/repo_ref_gogit.go
index d11c58e005..8a68a4574f 100644
--- a/modules/git/repo_ref_gogit.go
+++ b/modules/git/repo_ref_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_ref_nogogit.go b/modules/git/repo_ref_nogogit.go
index d766a8cac3..ac53d661b5 100644
--- a/modules/git/repo_ref_nogogit.go
+++ b/modules/git/repo_ref_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_ref_test.go b/modules/git/repo_ref_test.go
index afd38ca251..776d7ce3e1 100644
--- a/modules/git/repo_ref_test.go
+++ b/modules/git/repo_ref_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_stats.go b/modules/git/repo_stats.go
index 002e2525e2..d6e91f25a9 100644
--- a/modules/git/repo_stats.go
+++ b/modules/git/repo_stats.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_stats_test.go b/modules/git/repo_stats_test.go
index 494a161305..668ed67999 100644
--- a/modules/git/repo_stats_test.go
+++ b/modules/git/repo_stats_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_tag.go b/modules/git/repo_tag.go
index 8585d824f9..8aa06545d4 100644
--- a/modules/git/repo_tag.go
+++ b/modules/git/repo_tag.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_tag_gogit.go b/modules/git/repo_tag_gogit.go
index c6dec28987..2bc75e7cf9 100644
--- a/modules/git/repo_tag_gogit.go
+++ b/modules/git/repo_tag_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_tag_nogogit.go b/modules/git/repo_tag_nogogit.go
index 5d3aace52f..1fb631002b 100644
--- a/modules/git/repo_tag_nogogit.go
+++ b/modules/git/repo_tag_nogogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/repo_tag_test.go b/modules/git/repo_tag_test.go
index 6a00473bb7..589349a72c 100644
--- a/modules/git/repo_tag_test.go
+++ b/modules/git/repo_tag_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_test.go b/modules/git/repo_test.go
index 8ca170cd1f..2a39148192 100644
--- a/modules/git/repo_test.go
+++ b/modules/git/repo_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_tree.go b/modules/git/repo_tree.go
index ba81bfc6db..5fea5c0aea 100644
--- a/modules/git/repo_tree.go
+++ b/modules/git/repo_tree.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/repo_tree_gogit.go b/modules/git/repo_tree_gogit.go
index e720164936..e0e5e73fa3 100644
--- a/modules/git/repo_tree_gogit.go
+++ b/modules/git/repo_tree_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/repo_tree_nogogit.go b/modules/git/repo_tree_nogogit.go
index dc4a5becb9..16ea6bbd8a 100644
--- a/modules/git/repo_tree_nogogit.go
+++ b/modules/git/repo_tree_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/sha1.go b/modules/git/sha1.go
index 15f282c6e4..3a02484bc2 100644
--- a/modules/git/sha1.go
+++ b/modules/git/sha1.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/sha1_gogit.go b/modules/git/sha1_gogit.go
index 16501efb43..28f35d17a9 100644
--- a/modules/git/sha1_gogit.go
+++ b/modules/git/sha1_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/sha1_nogogit.go b/modules/git/sha1_nogogit.go
index a2620cba69..d818d86a3a 100644
--- a/modules/git/sha1_nogogit.go
+++ b/modules/git/sha1_nogogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/sha1_test.go b/modules/git/sha1_test.go
index c5c00f5445..db2944fc53 100644
--- a/modules/git/sha1_test.go
+++ b/modules/git/sha1_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/signature.go b/modules/git/signature.go
index b59db8f490..b5b17f23b0 100644
--- a/modules/git/signature.go
+++ b/modules/git/signature.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/signature_gogit.go b/modules/git/signature_gogit.go
index 5ab38cd852..c984ad6e20 100644
--- a/modules/git/signature_gogit.go
+++ b/modules/git/signature_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/signature_nogogit.go b/modules/git/signature_nogogit.go
index 3fa5c8da3e..a203d5ce6d 100644
--- a/modules/git/signature_nogogit.go
+++ b/modules/git/signature_nogogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/submodule.go b/modules/git/submodule.go
index ee61f61179..3afaa334db 100644
--- a/modules/git/submodule.go
+++ b/modules/git/submodule.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/submodule_test.go b/modules/git/submodule_test.go
index 653f0a6f08..e05f2510c4 100644
--- a/modules/git/submodule_test.go
+++ b/modules/git/submodule_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/tag.go b/modules/git/tag.go
index 3482f81e90..d0ddef64e0 100644
--- a/modules/git/tag.go
+++ b/modules/git/tag.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/tag_test.go b/modules/git/tag_test.go
index e5f1660b8e..2337e69c6a 100644
--- a/modules/git/tag_test.go
+++ b/modules/git/tag_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/tree.go b/modules/git/tree.go
index f5944dd29c..856b8cef53 100644
--- a/modules/git/tree.go
+++ b/modules/git/tree.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/tree_blob.go b/modules/git/tree_blob.go
index 19edcf4c6c..31d9f3d73b 100644
--- a/modules/git/tree_blob.go
+++ b/modules/git/tree_blob.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/tree_blob_gogit.go b/modules/git/tree_blob_gogit.go
index bb010b5883..f1afc5d0a6 100644
--- a/modules/git/tree_blob_gogit.go
+++ b/modules/git/tree_blob_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/tree_blob_nogogit.go b/modules/git/tree_blob_nogogit.go
index 3770004d6d..92d3d107a7 100644
--- a/modules/git/tree_blob_nogogit.go
+++ b/modules/git/tree_blob_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/tree_entry.go b/modules/git/tree_entry.go
index 3644d00f36..84b6ea4075 100644
--- a/modules/git/tree_entry.go
+++ b/modules/git/tree_entry.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/tree_entry_gogit.go b/modules/git/tree_entry_gogit.go
index 2b2992c32a..194dd12f7d 100644
--- a/modules/git/tree_entry_gogit.go
+++ b/modules/git/tree_entry_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/tree_entry_mode.go b/modules/git/tree_entry_mode.go
index d999ccc02a..a399118cf8 100644
--- a/modules/git/tree_entry_mode.go
+++ b/modules/git/tree_entry_mode.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/tree_entry_nogogit.go b/modules/git/tree_entry_nogogit.go
index aff67a3b22..cda755886a 100644
--- a/modules/git/tree_entry_nogogit.go
+++ b/modules/git/tree_entry_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/tree_entry_test.go b/modules/git/tree_entry_test.go
index c512c7348e..30eee13669 100644
--- a/modules/git/tree_entry_test.go
+++ b/modules/git/tree_entry_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/tree_gogit.go b/modules/git/tree_gogit.go
index 480c5e44da..fa601e6533 100644
--- a/modules/git/tree_gogit.go
+++ b/modules/git/tree_gogit.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/git/tree_nogogit.go b/modules/git/tree_nogogit.go
index 5cbb5ffc94..185317e7a7 100644
--- a/modules/git/tree_nogogit.go
+++ b/modules/git/tree_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/git/url/url.go b/modules/git/url/url.go
index b41cfab7ef..637685183e 100644
--- a/modules/git/url/url.go
+++ b/modules/git/url/url.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package url
diff --git a/modules/git/url/url_test.go b/modules/git/url/url_test.go
index 611bef8672..da820ed889 100644
--- a/modules/git/url/url_test.go
+++ b/modules/git/url/url_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package url
diff --git a/modules/git/utils.go b/modules/git/utils.go
index a439dabae1..628faf509f 100644
--- a/modules/git/utils.go
+++ b/modules/git/utils.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/git/utils_test.go b/modules/git/utils_test.go
index 9a2d481b63..718db700ae 100644
--- a/modules/git/utils_test.go
+++ b/modules/git/utils_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package git
diff --git a/modules/gitgraph/graph.go b/modules/gitgraph/graph.go
index d6342c9280..baedfe5980 100644
--- a/modules/gitgraph/graph.go
+++ b/modules/gitgraph/graph.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitgraph
diff --git a/modules/gitgraph/graph_models.go b/modules/gitgraph/graph_models.go
index c153e5d3be..0e0fc1cd01 100644
--- a/modules/gitgraph/graph_models.go
+++ b/modules/gitgraph/graph_models.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitgraph
diff --git a/modules/gitgraph/graph_test.go b/modules/gitgraph/graph_test.go
index 2cfbe4b2fa..18d427acd9 100644
--- a/modules/gitgraph/graph_test.go
+++ b/modules/gitgraph/graph_test.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitgraph
diff --git a/modules/gitgraph/parser.go b/modules/gitgraph/parser.go
index 5432962784..f6bf9b0b90 100644
--- a/modules/gitgraph/parser.go
+++ b/modules/gitgraph/parser.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitgraph
diff --git a/modules/graceful/context.go b/modules/graceful/context.go
index b9d975a1d5..6b5b207ff3 100644
--- a/modules/graceful/context.go
+++ b/modules/graceful/context.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package graceful
diff --git a/modules/graceful/manager.go b/modules/graceful/manager.go
index 21f019fb56..c7b4c101ef 100644
--- a/modules/graceful/manager.go
+++ b/modules/graceful/manager.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package graceful
diff --git a/modules/graceful/manager_unix.go b/modules/graceful/manager_unix.go
index ba1dbd38f6..ca6ccc1b66 100644
--- a/modules/graceful/manager_unix.go
+++ b/modules/graceful/manager_unix.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/modules/graceful/manager_windows.go b/modules/graceful/manager_windows.go
index 10c1d67b97..212ddf437c 100644
--- a/modules/graceful/manager_windows.go
+++ b/modules/graceful/manager_windows.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler
//go:build windows
diff --git a/modules/graceful/net_unix.go b/modules/graceful/net_unix.go
index 0bb589e231..a2620d2c80 100644
--- a/modules/graceful/net_unix.go
+++ b/modules/graceful/net_unix.go
@@ -1,6 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler
//go:build !windows
diff --git a/modules/graceful/net_windows.go b/modules/graceful/net_windows.go
index 07ae51b8dd..a2f58e224a 100644
--- a/modules/graceful/net_windows.go
+++ b/modules/graceful/net_windows.go
@@ -1,6 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler
//go:build windows
diff --git a/modules/graceful/restart_unix.go b/modules/graceful/restart_unix.go
index 1d0d1059e9..406fe6c8af 100644
--- a/modules/graceful/restart_unix.go
+++ b/modules/graceful/restart_unix.go
@@ -1,6 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler
//go:build !windows
diff --git a/modules/graceful/server.go b/modules/graceful/server.go
index 30a460a943..e42d35cd49 100644
--- a/modules/graceful/server.go
+++ b/modules/graceful/server.go
@@ -1,6 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
// This code is highly inspired by endless go
package graceful
diff --git a/modules/graceful/server_hooks.go b/modules/graceful/server_hooks.go
index c634905711..9b67589571 100644
--- a/modules/graceful/server_hooks.go
+++ b/modules/graceful/server_hooks.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package graceful
diff --git a/modules/graceful/server_http.go b/modules/graceful/server_http.go
index 8ab2bdf41f..a1f8e0ff52 100644
--- a/modules/graceful/server_http.go
+++ b/modules/graceful/server_http.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package graceful
diff --git a/modules/hcaptcha/hcaptcha.go b/modules/hcaptcha/hcaptcha.go
index 95fe2dd1c3..4d20cfd483 100644
--- a/modules/hcaptcha/hcaptcha.go
+++ b/modules/hcaptcha/hcaptcha.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package hcaptcha
diff --git a/modules/highlight/highlight.go b/modules/highlight/highlight.go
index 3836c05880..05e472c083 100644
--- a/modules/highlight/highlight.go
+++ b/modules/highlight/highlight.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package highlight
diff --git a/modules/highlight/highlight_test.go b/modules/highlight/highlight_test.go
index 1899753746..7a9887728f 100644
--- a/modules/highlight/highlight_test.go
+++ b/modules/highlight/highlight_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package highlight
diff --git a/modules/hostmatcher/hostmatcher.go b/modules/hostmatcher/hostmatcher.go
index a092e07f41..1069310316 100644
--- a/modules/hostmatcher/hostmatcher.go
+++ b/modules/hostmatcher/hostmatcher.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package hostmatcher
diff --git a/modules/hostmatcher/hostmatcher_test.go b/modules/hostmatcher/hostmatcher_test.go
index b93976df6a..c781847471 100644
--- a/modules/hostmatcher/hostmatcher_test.go
+++ b/modules/hostmatcher/hostmatcher_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package hostmatcher
diff --git a/modules/hostmatcher/http.go b/modules/hostmatcher/http.go
index 84cd2974ec..65f5f78b14 100644
--- a/modules/hostmatcher/http.go
+++ b/modules/hostmatcher/http.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package hostmatcher
diff --git a/modules/html/html.go b/modules/html/html.go
index dafdb503b6..3219b939f4 100644
--- a/modules/html/html.go
+++ b/modules/html/html.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package html
diff --git a/modules/httpcache/httpcache.go b/modules/httpcache/httpcache.go
index 750233d4a7..1247a81fea 100644
--- a/modules/httpcache/httpcache.go
+++ b/modules/httpcache/httpcache.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package httpcache
diff --git a/modules/httpcache/httpcache_test.go b/modules/httpcache/httpcache_test.go
index 49e54d147e..624d2f4d4b 100644
--- a/modules/httpcache/httpcache_test.go
+++ b/modules/httpcache/httpcache_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package httpcache
diff --git a/modules/httplib/httplib.go b/modules/httplib/httplib.go
index 32790fb54b..a1984400d6 100644
--- a/modules/httplib/httplib.go
+++ b/modules/httplib/httplib.go
@@ -1,7 +1,6 @@
// Copyright 2013 The Beego Authors. All rights reserved.
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package httplib
diff --git a/modules/indexer/bleve/batch.go b/modules/indexer/bleve/batch.go
index 79994e6e5b..77675147b2 100644
--- a/modules/indexer/bleve/batch.go
+++ b/modules/indexer/bleve/batch.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package bleve
diff --git a/modules/indexer/code/bleve.go b/modules/indexer/code/bleve.go
index 3ea1c86178..6ee2639d34 100644
--- a/modules/indexer/code/bleve.go
+++ b/modules/indexer/code/bleve.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/bleve_test.go b/modules/indexer/code/bleve_test.go
index a34d54bc0e..00bcd5c90c 100644
--- a/modules/indexer/code/bleve_test.go
+++ b/modules/indexer/code/bleve_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/elastic_search.go b/modules/indexer/code/elastic_search.go
index dd3c9c9771..68c8096758 100644
--- a/modules/indexer/code/elastic_search.go
+++ b/modules/indexer/code/elastic_search.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/elastic_search_test.go b/modules/indexer/code/elastic_search_test.go
index fc58633f16..e7506eefa6 100644
--- a/modules/indexer/code/elastic_search_test.go
+++ b/modules/indexer/code/elastic_search_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/git.go b/modules/indexer/code/git.go
index 774dcc8149..bbcc6ba487 100644
--- a/modules/indexer/code/git.go
+++ b/modules/indexer/code/git.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/indexer.go b/modules/indexer/code/indexer.go
index 9845ade3dd..d07ab10db0 100644
--- a/modules/indexer/code/indexer.go
+++ b/modules/indexer/code/indexer.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/indexer_test.go b/modules/indexer/code/indexer_test.go
index 06923dfd25..c353d5b688 100644
--- a/modules/indexer/code/indexer_test.go
+++ b/modules/indexer/code/indexer_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/search.go b/modules/indexer/code/search.go
index df255fa875..1de9ffc224 100644
--- a/modules/indexer/code/search.go
+++ b/modules/indexer/code/search.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/code/wrapped.go b/modules/indexer/code/wrapped.go
index ba58236fba..33ba57a094 100644
--- a/modules/indexer/code/wrapped.go
+++ b/modules/indexer/code/wrapped.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package code
diff --git a/modules/indexer/issues/bleve.go b/modules/indexer/issues/bleve.go
index dff1cf0c60..952bddfb29 100644
--- a/modules/indexer/issues/bleve.go
+++ b/modules/indexer/issues/bleve.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/modules/indexer/issues/bleve_test.go b/modules/indexer/issues/bleve_test.go
index 42d22f06a2..22827158e4 100644
--- a/modules/indexer/issues/bleve_test.go
+++ b/modules/indexer/issues/bleve_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/modules/indexer/issues/db.go b/modules/indexer/issues/db.go
index d21c86337e..d28b536e02 100644
--- a/modules/indexer/issues/db.go
+++ b/modules/indexer/issues/db.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/modules/indexer/issues/elastic_search.go b/modules/indexer/issues/elastic_search.go
index 97e32b8975..ee8e3df62f 100644
--- a/modules/indexer/issues/elastic_search.go
+++ b/modules/indexer/issues/elastic_search.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/modules/indexer/issues/indexer.go b/modules/indexer/issues/indexer.go
index 5b0279d1ab..55d3c7bc09 100644
--- a/modules/indexer/issues/indexer.go
+++ b/modules/indexer/issues/indexer.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/modules/indexer/issues/indexer_test.go b/modules/indexer/issues/indexer_test.go
index e8b9ff8370..ff0541d049 100644
--- a/modules/indexer/issues/indexer_test.go
+++ b/modules/indexer/issues/indexer_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issues
diff --git a/modules/indexer/stats/db.go b/modules/indexer/stats/db.go
index d39b1dcf2a..068626c4fa 100644
--- a/modules/indexer/stats/db.go
+++ b/modules/indexer/stats/db.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package stats
diff --git a/modules/indexer/stats/indexer.go b/modules/indexer/stats/indexer.go
index f4fe54b8cb..1c01e25e29 100644
--- a/modules/indexer/stats/indexer.go
+++ b/modules/indexer/stats/indexer.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package stats
diff --git a/modules/indexer/stats/indexer_test.go b/modules/indexer/stats/indexer_test.go
index a4a8b63241..f9a1bc520a 100644
--- a/modules/indexer/stats/indexer_test.go
+++ b/modules/indexer/stats/indexer_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package stats
diff --git a/modules/indexer/stats/queue.go b/modules/indexer/stats/queue.go
index f983fcd11d..32379f2859 100644
--- a/modules/indexer/stats/queue.go
+++ b/modules/indexer/stats/queue.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package stats
diff --git a/modules/issue/template/template.go b/modules/issue/template/template.go
index 0bdf5a1987..f8bce3f465 100644
--- a/modules/issue/template/template.go
+++ b/modules/issue/template/template.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package template
diff --git a/modules/issue/template/template_test.go b/modules/issue/template/template_test.go
index c3863a64a6..0845642cd3 100644
--- a/modules/issue/template/template_test.go
+++ b/modules/issue/template/template_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package template
diff --git a/modules/issue/template/unmarshal.go b/modules/issue/template/unmarshal.go
index 3398719cf6..f43a83fb62 100644
--- a/modules/issue/template/unmarshal.go
+++ b/modules/issue/template/unmarshal.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package template
diff --git a/modules/json/json.go b/modules/json/json.go
index 4361262a2f..35691eec86 100644
--- a/modules/json/json.go
+++ b/modules/json/json.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
package json
diff --git a/modules/lfs/client.go b/modules/lfs/client.go
index aaf61aefcf..f810e5c7aa 100644
--- a/modules/lfs/client.go
+++ b/modules/lfs/client.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/client_test.go b/modules/lfs/client_test.go
index 88986f06d6..a1369301e0 100644
--- a/modules/lfs/client_test.go
+++ b/modules/lfs/client_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/content_store.go b/modules/lfs/content_store.go
index 0eedf4de17..94277a6b8e 100644
--- a/modules/lfs/content_store.go
+++ b/modules/lfs/content_store.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/endpoint.go b/modules/lfs/endpoint.go
index 943966ed15..3ae3cf077b 100644
--- a/modules/lfs/endpoint.go
+++ b/modules/lfs/endpoint.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/endpoint_test.go b/modules/lfs/endpoint_test.go
index 69f4768650..118abe2d4e 100644
--- a/modules/lfs/endpoint_test.go
+++ b/modules/lfs/endpoint_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/filesystem_client.go b/modules/lfs/filesystem_client.go
index dc72981a9e..835551e00c 100644
--- a/modules/lfs/filesystem_client.go
+++ b/modules/lfs/filesystem_client.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/http_client.go b/modules/lfs/http_client.go
index a1a3e7f363..ec0d6269bd 100644
--- a/modules/lfs/http_client.go
+++ b/modules/lfs/http_client.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/http_client_test.go b/modules/lfs/http_client_test.go
index 8f6dcb1966..a8c7e379f6 100644
--- a/modules/lfs/http_client_test.go
+++ b/modules/lfs/http_client_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/pointer.go b/modules/lfs/pointer.go
index 2a3a2116b4..b5e13d56a3 100644
--- a/modules/lfs/pointer.go
+++ b/modules/lfs/pointer.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/pointer_scanner_gogit.go b/modules/lfs/pointer_scanner_gogit.go
index ed27cb1f55..f4302c23bc 100644
--- a/modules/lfs/pointer_scanner_gogit.go
+++ b/modules/lfs/pointer_scanner_gogit.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gogit
diff --git a/modules/lfs/pointer_scanner_nogogit.go b/modules/lfs/pointer_scanner_nogogit.go
index d17f1f7b98..658b98feab 100644
--- a/modules/lfs/pointer_scanner_nogogit.go
+++ b/modules/lfs/pointer_scanner_nogogit.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !gogit
diff --git a/modules/lfs/pointer_test.go b/modules/lfs/pointer_test.go
index 9cd8b15c9e..41b5459fef 100644
--- a/modules/lfs/pointer_test.go
+++ b/modules/lfs/pointer_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/shared.go b/modules/lfs/shared.go
index d010b05ee5..6b2e55f2fb 100644
--- a/modules/lfs/shared.go
+++ b/modules/lfs/shared.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/transferadapter.go b/modules/lfs/transferadapter.go
index 2fdd92c810..649497aabb 100644
--- a/modules/lfs/transferadapter.go
+++ b/modules/lfs/transferadapter.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/lfs/transferadapter_test.go b/modules/lfs/transferadapter_test.go
index b26d516c68..f86d2c54be 100644
--- a/modules/lfs/transferadapter_test.go
+++ b/modules/lfs/transferadapter_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/modules/log/buffer.go b/modules/log/buffer.go
index 9535522bb6..1eee2465f1 100644
--- a/modules/log/buffer.go
+++ b/modules/log/buffer.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/buffer_test.go b/modules/log/buffer_test.go
index 8ec74bc78d..1c39006050 100644
--- a/modules/log/buffer_test.go
+++ b/modules/log/buffer_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/colors.go b/modules/log/colors.go
index 15e23a0dac..02781afe84 100644
--- a/modules/log/colors.go
+++ b/modules/log/colors.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/colors_router.go b/modules/log/colors_router.go
index 888198d4e9..efc7337b6b 100644
--- a/modules/log/colors_router.go
+++ b/modules/log/colors_router.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/conn.go b/modules/log/conn.go
index 155f2866ca..39d5234214 100644
--- a/modules/log/conn.go
+++ b/modules/log/conn.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/conn_test.go b/modules/log/conn_test.go
index 1d373506a4..445bd77653 100644
--- a/modules/log/conn_test.go
+++ b/modules/log/conn_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/console.go b/modules/log/console.go
index fc7c9b4967..8764d984ac 100644
--- a/modules/log/console.go
+++ b/modules/log/console.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/console_other.go b/modules/log/console_other.go
index b5cac55b52..c30be41544 100644
--- a/modules/log/console_other.go
+++ b/modules/log/console_other.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/modules/log/console_test.go b/modules/log/console_test.go
index 4da87b48a3..e4c3882d4f 100644
--- a/modules/log/console_test.go
+++ b/modules/log/console_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/console_windows.go b/modules/log/console_windows.go
index ea47e5d624..54dac12fa0 100644
--- a/modules/log/console_windows.go
+++ b/modules/log/console_windows.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/errors.go b/modules/log/errors.go
index 1fe54d4265..942639a434 100644
--- a/modules/log/errors.go
+++ b/modules/log/errors.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/event.go b/modules/log/event.go
index aebd156212..4466f7ff34 100644
--- a/modules/log/event.go
+++ b/modules/log/event.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/file.go b/modules/log/file.go
index d0cba7817c..13386a320f 100644
--- a/modules/log/file.go
+++ b/modules/log/file.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/file_test.go b/modules/log/file_test.go
index cc2b9fe077..f1ca23d342 100644
--- a/modules/log/file_test.go
+++ b/modules/log/file_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/flags.go b/modules/log/flags.go
index 95950548ec..4a3732600b 100644
--- a/modules/log/flags.go
+++ b/modules/log/flags.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/groutinelabel.go b/modules/log/groutinelabel.go
index 0d3739fd98..829c217574 100644
--- a/modules/log/groutinelabel.go
+++ b/modules/log/groutinelabel.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/groutinelabel_test.go b/modules/log/groutinelabel_test.go
index 8e23721b86..34e99653d6 100644
--- a/modules/log/groutinelabel_test.go
+++ b/modules/log/groutinelabel_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/level.go b/modules/log/level.go
index 5964ed8f8b..3c8a736b30 100644
--- a/modules/log/level.go
+++ b/modules/log/level.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/level_test.go b/modules/log/level_test.go
index 47f77738c5..cd18a807d8 100644
--- a/modules/log/level_test.go
+++ b/modules/log/level_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/log.go b/modules/log/log.go
index 4303ecf4c0..73f908dfab 100644
--- a/modules/log/log.go
+++ b/modules/log/log.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/log_test.go b/modules/log/log_test.go
index 33f68c8e8e..819cdb521f 100644
--- a/modules/log/log_test.go
+++ b/modules/log/log_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/logger.go b/modules/log/logger.go
index 0045d79322..56e39c392e 100644
--- a/modules/log/logger.go
+++ b/modules/log/logger.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/multichannel.go b/modules/log/multichannel.go
index 519abf663d..8ccb08179c 100644
--- a/modules/log/multichannel.go
+++ b/modules/log/multichannel.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/provider.go b/modules/log/provider.go
index e03e6f74a7..490c3fa71b 100644
--- a/modules/log/provider.go
+++ b/modules/log/provider.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/smtp.go b/modules/log/smtp.go
index 61af50b81a..e385020c67 100644
--- a/modules/log/smtp.go
+++ b/modules/log/smtp.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/smtp_test.go b/modules/log/smtp_test.go
index c8758bf6be..d7d28f28f8 100644
--- a/modules/log/smtp_test.go
+++ b/modules/log/smtp_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/stack.go b/modules/log/stack.go
index 4b40d81ab7..d4496cff03 100644
--- a/modules/log/stack.go
+++ b/modules/log/stack.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/writer.go b/modules/log/writer.go
index 1c4f5b4a19..ac4b3c8c4e 100644
--- a/modules/log/writer.go
+++ b/modules/log/writer.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/log/writer_test.go b/modules/log/writer_test.go
index 99a5fd3406..8c03f87d90 100644
--- a/modules/log/writer_test.go
+++ b/modules/log/writer_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package log
diff --git a/modules/markup/camo.go b/modules/markup/camo.go
index f804447f2d..e93797de2b 100644
--- a/modules/markup/camo.go
+++ b/modules/markup/camo.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/camo_test.go b/modules/markup/camo_test.go
index cc917039d8..ba58835221 100644
--- a/modules/markup/camo_test.go
+++ b/modules/markup/camo_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/common/footnote.go b/modules/markup/common/footnote.go
index d07f5e6090..0e75e2adfd 100644
--- a/modules/markup/common/footnote.go
+++ b/modules/markup/common/footnote.go
@@ -1,7 +1,6 @@
// Copyright 2019 Yusuke Inuzuka
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Most of what follows is a subtly changed version of github.com/yuin/goldmark/extension/footnote.go
diff --git a/modules/markup/common/html.go b/modules/markup/common/html.go
index a2328a2288..5658839c6f 100644
--- a/modules/markup/common/html.go
+++ b/modules/markup/common/html.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package common
diff --git a/modules/markup/common/linkify.go b/modules/markup/common/linkify.go
index 2140486a30..f84680205e 100644
--- a/modules/markup/common/linkify.go
+++ b/modules/markup/common/linkify.go
@@ -1,7 +1,6 @@
// Copyright 2019 Yusuke Inuzuka
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Most of this file is a subtly changed version of github.com/yuin/goldmark/extension/linkify.go
diff --git a/modules/markup/console/console.go b/modules/markup/console/console.go
index 597593eee1..cf42c9cceb 100644
--- a/modules/markup/console/console.go
+++ b/modules/markup/console/console.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package console
diff --git a/modules/markup/console/console_test.go b/modules/markup/console/console_test.go
index 282fbb0598..506f86194c 100644
--- a/modules/markup/console/console_test.go
+++ b/modules/markup/console/console_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package console
diff --git a/modules/markup/csv/csv.go b/modules/markup/csv/csv.go
index 5095b85465..7af34a6cbc 100644
--- a/modules/markup/csv/csv.go
+++ b/modules/markup/csv/csv.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/csv/csv_test.go b/modules/markup/csv/csv_test.go
index 612f78c76c..b9f5769be2 100644
--- a/modules/markup/csv/csv_test.go
+++ b/modules/markup/csv/csv_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/external/external.go b/modules/markup/external/external.go
index 0eeb2d70a5..f47776690f 100644
--- a/modules/markup/external/external.go
+++ b/modules/markup/external/external.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package external
diff --git a/modules/markup/html.go b/modules/markup/html.go
index ae00c3905f..80b19ba35f 100644
--- a/modules/markup/html.go
+++ b/modules/markup/html.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/html_internal_test.go b/modules/markup/html_internal_test.go
index 25b0f7b7a5..6746c40d18 100644
--- a/modules/markup/html_internal_test.go
+++ b/modules/markup/html_internal_test.go
@@ -1,6 +1,6 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
package markup
import (
diff --git a/modules/markup/html_test.go b/modules/markup/html_test.go
index e57187a677..32f26bffab 100644
--- a/modules/markup/html_test.go
+++ b/modules/markup/html_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup_test
diff --git a/modules/markup/markdown/ast.go b/modules/markup/markdown/ast.go
index 3d49620253..e844f801c4 100644
--- a/modules/markup/markdown/ast.go
+++ b/modules/markup/markdown/ast.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/convertyaml.go b/modules/markup/markdown/convertyaml.go
index 3f5ebec908..6e90847e06 100644
--- a/modules/markup/markdown/convertyaml.go
+++ b/modules/markup/markdown/convertyaml.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/goldmark.go b/modules/markup/markdown/goldmark.go
index 84a02bfbbb..50b438219b 100644
--- a/modules/markup/markdown/goldmark.go
+++ b/modules/markup/markdown/goldmark.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/markdown.go b/modules/markup/markdown/markdown.go
index fa289986cc..1e5c470758 100644
--- a/modules/markup/markdown/markdown.go
+++ b/modules/markup/markdown/markdown.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/markdown_test.go b/modules/markup/markdown/markdown_test.go
index fbb741d1cd..bb2c47f18e 100644
--- a/modules/markup/markdown/markdown_test.go
+++ b/modules/markup/markdown/markdown_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown_test
diff --git a/modules/markup/markdown/math/block_node.go b/modules/markup/markdown/math/block_node.go
index bd8449babf..10d17ff8d3 100644
--- a/modules/markup/markdown/math/block_node.go
+++ b/modules/markup/markdown/math/block_node.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package math
diff --git a/modules/markup/markdown/math/block_parser.go b/modules/markup/markdown/math/block_parser.go
index f865122886..7f714d7239 100644
--- a/modules/markup/markdown/math/block_parser.go
+++ b/modules/markup/markdown/math/block_parser.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package math
diff --git a/modules/markup/markdown/math/block_renderer.go b/modules/markup/markdown/math/block_renderer.go
index d502065259..84817ef1e4 100644
--- a/modules/markup/markdown/math/block_renderer.go
+++ b/modules/markup/markdown/math/block_renderer.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package math
diff --git a/modules/markup/markdown/math/inline_node.go b/modules/markup/markdown/math/inline_node.go
index 245ff8dab0..2221a251bf 100644
--- a/modules/markup/markdown/math/inline_node.go
+++ b/modules/markup/markdown/math/inline_node.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package math
diff --git a/modules/markup/markdown/math/inline_parser.go b/modules/markup/markdown/math/inline_parser.go
index 8dc88eb858..0ac25c2b2a 100644
--- a/modules/markup/markdown/math/inline_parser.go
+++ b/modules/markup/markdown/math/inline_parser.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package math
diff --git a/modules/markup/markdown/math/inline_renderer.go b/modules/markup/markdown/math/inline_renderer.go
index e4c0f3761d..b4e9ade0ae 100644
--- a/modules/markup/markdown/math/inline_renderer.go
+++ b/modules/markup/markdown/math/inline_renderer.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package math
diff --git a/modules/markup/markdown/math/math.go b/modules/markup/markdown/math/math.go
index 7854ac84db..8a50753574 100644
--- a/modules/markup/markdown/math/math.go
+++ b/modules/markup/markdown/math/math.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package math
diff --git a/modules/markup/markdown/meta.go b/modules/markup/markdown/meta.go
index fb37236d77..bbefbd380c 100644
--- a/modules/markup/markdown/meta.go
+++ b/modules/markup/markdown/meta.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/meta_test.go b/modules/markup/markdown/meta_test.go
index 1e9768e618..6949966328 100644
--- a/modules/markup/markdown/meta_test.go
+++ b/modules/markup/markdown/meta_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/renderconfig.go b/modules/markup/markdown/renderconfig.go
index 1ba75dbb68..f9c9cbc5f4 100644
--- a/modules/markup/markdown/renderconfig.go
+++ b/modules/markup/markdown/renderconfig.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/renderconfig_test.go b/modules/markup/markdown/renderconfig_test.go
index 672edbf46d..f7f5e885a3 100644
--- a/modules/markup/markdown/renderconfig_test.go
+++ b/modules/markup/markdown/renderconfig_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/markdown/toc.go b/modules/markup/markdown/toc.go
index 103894d1ab..3715f031af 100644
--- a/modules/markup/markdown/toc.go
+++ b/modules/markup/markdown/toc.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markdown
diff --git a/modules/markup/mdstripper/mdstripper.go b/modules/markup/mdstripper/mdstripper.go
index c7f8ee69f1..e19f8f6419 100644
--- a/modules/markup/mdstripper/mdstripper.go
+++ b/modules/markup/mdstripper/mdstripper.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mdstripper
diff --git a/modules/markup/mdstripper/mdstripper_test.go b/modules/markup/mdstripper/mdstripper_test.go
index 8045c34c07..ea34df0a3b 100644
--- a/modules/markup/mdstripper/mdstripper_test.go
+++ b/modules/markup/mdstripper/mdstripper_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mdstripper
diff --git a/modules/markup/orgmode/orgmode.go b/modules/markup/orgmode/orgmode.go
index abbff1e435..5a8485e571 100644
--- a/modules/markup/orgmode/orgmode.go
+++ b/modules/markup/orgmode/orgmode.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/orgmode/orgmode_test.go b/modules/markup/orgmode/orgmode_test.go
index cd12cd8c17..4acb678cd7 100644
--- a/modules/markup/orgmode/orgmode_test.go
+++ b/modules/markup/orgmode/orgmode_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/renderer.go b/modules/markup/renderer.go
index b3289cb3c3..5a31e961fb 100644
--- a/modules/markup/renderer.go
+++ b/modules/markup/renderer.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/renderer_test.go b/modules/markup/renderer_test.go
index 950ee15b91..624558c3f7 100644
--- a/modules/markup/renderer_test.go
+++ b/modules/markup/renderer_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup_test
diff --git a/modules/markup/sanitizer.go b/modules/markup/sanitizer.go
index c2a6c4a38f..e59f6c7c84 100644
--- a/modules/markup/sanitizer.go
+++ b/modules/markup/sanitizer.go
@@ -1,7 +1,6 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
// Copyright 2017 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/markup/sanitizer_test.go b/modules/markup/sanitizer_test.go
index b3b07404b4..c792ec2dc6 100644
--- a/modules/markup/sanitizer_test.go
+++ b/modules/markup/sanitizer_test.go
@@ -1,7 +1,6 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
// Copyright 2017 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/modules/mcaptcha/mcaptcha.go b/modules/mcaptcha/mcaptcha.go
index 0c0fcce49d..74142aa863 100644
--- a/modules/mcaptcha/mcaptcha.go
+++ b/modules/mcaptcha/mcaptcha.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mcaptcha
diff --git a/modules/metrics/collector.go b/modules/metrics/collector.go
index dcd80b05a9..17f8dd133f 100755
--- a/modules/metrics/collector.go
+++ b/modules/metrics/collector.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package metrics
diff --git a/modules/migration/comment.go b/modules/migration/comment.go
index 0447689b74..27ecaa830a 100644
--- a/modules/migration/comment.go
+++ b/modules/migration/comment.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/downloader.go b/modules/migration/downloader.go
index 7759c96056..ebd3672d63 100644
--- a/modules/migration/downloader.go
+++ b/modules/migration/downloader.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/error.go b/modules/migration/error.go
index b2608aa09f..64cda9d047 100644
--- a/modules/migration/error.go
+++ b/modules/migration/error.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/file_format.go b/modules/migration/file_format.go
index 92cf71407d..f319f02ef1 100644
--- a/modules/migration/file_format.go
+++ b/modules/migration/file_format.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/file_format_test.go b/modules/migration/file_format_test.go
index 27104e209c..da997f645b 100644
--- a/modules/migration/file_format_test.go
+++ b/modules/migration/file_format_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/issue.go b/modules/migration/issue.go
index cc13570afb..7cb9f84b0d 100644
--- a/modules/migration/issue.go
+++ b/modules/migration/issue.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/label.go b/modules/migration/label.go
index f49fbe3ee4..38f0eb10da 100644
--- a/modules/migration/label.go
+++ b/modules/migration/label.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/messenger.go b/modules/migration/messenger.go
index fa8218cf93..1fd5456259 100644
--- a/modules/migration/messenger.go
+++ b/modules/migration/messenger.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/milestone.go b/modules/migration/milestone.go
index f3b725de67..34355b8f9c 100644
--- a/modules/migration/milestone.go
+++ b/modules/migration/milestone.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/null_downloader.go b/modules/migration/null_downloader.go
index ad925c32ce..e5b69331df 100644
--- a/modules/migration/null_downloader.go
+++ b/modules/migration/null_downloader.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/options.go b/modules/migration/options.go
index 1e92a1b0b3..234e72c295 100644
--- a/modules/migration/options.go
+++ b/modules/migration/options.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/pullrequest.go b/modules/migration/pullrequest.go
index dd520cd63f..4e7500f0d6 100644
--- a/modules/migration/pullrequest.go
+++ b/modules/migration/pullrequest.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/reaction.go b/modules/migration/reaction.go
index 0946bdd40b..ca1df6c763 100644
--- a/modules/migration/reaction.go
+++ b/modules/migration/reaction.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/release.go b/modules/migration/release.go
index 923b3817b0..f92cf25e7b 100644
--- a/modules/migration/release.go
+++ b/modules/migration/release.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/repo.go b/modules/migration/repo.go
index 75622595d9..22c2cf6fb3 100644
--- a/modules/migration/repo.go
+++ b/modules/migration/repo.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/retry_downloader.go b/modules/migration/retry_downloader.go
index 2e40c102be..1cacf5f375 100644
--- a/modules/migration/retry_downloader.go
+++ b/modules/migration/retry_downloader.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/review.go b/modules/migration/review.go
index b5a054c642..a420c130c7 100644
--- a/modules/migration/review.go
+++ b/modules/migration/review.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/migration/schemas_bindata.go b/modules/migration/schemas_bindata.go
index febe0f75c0..c5db3b3461 100644
--- a/modules/migration/schemas_bindata.go
+++ b/modules/migration/schemas_bindata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/migration/schemas_dynamic.go b/modules/migration/schemas_dynamic.go
index 1b767b2e72..dca109d6af 100644
--- a/modules/migration/schemas_dynamic.go
+++ b/modules/migration/schemas_dynamic.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !bindata
diff --git a/modules/migration/schemas_static.go b/modules/migration/schemas_static.go
index 02957fc4ed..8a0c340a65 100644
--- a/modules/migration/schemas_static.go
+++ b/modules/migration/schemas_static.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/migration/uploader.go b/modules/migration/uploader.go
index 57571861aa..ff642aa4fa 100644
--- a/modules/migration/uploader.go
+++ b/modules/migration/uploader.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migration
diff --git a/modules/mirror/mirror.go b/modules/mirror/mirror.go
index b261bd0242..37b4c2ac95 100644
--- a/modules/mirror/mirror.go
+++ b/modules/mirror/mirror.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mirror
diff --git a/modules/nosql/leveldb.go b/modules/nosql/leveldb.go
index 5da2291e03..aac5b2178e 100644
--- a/modules/nosql/leveldb.go
+++ b/modules/nosql/leveldb.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nosql
diff --git a/modules/nosql/manager.go b/modules/nosql/manager.go
index 6092a67827..bc530bc148 100644
--- a/modules/nosql/manager.go
+++ b/modules/nosql/manager.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nosql
diff --git a/modules/nosql/manager_leveldb.go b/modules/nosql/manager_leveldb.go
index 7539952cf1..078a802811 100644
--- a/modules/nosql/manager_leveldb.go
+++ b/modules/nosql/manager_leveldb.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nosql
diff --git a/modules/nosql/manager_redis.go b/modules/nosql/manager_redis.go
index f7d5a72ed2..728bc2f2ef 100644
--- a/modules/nosql/manager_redis.go
+++ b/modules/nosql/manager_redis.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nosql
diff --git a/modules/nosql/manager_redis_test.go b/modules/nosql/manager_redis_test.go
index 99a8856f1e..d979ea07f6 100644
--- a/modules/nosql/manager_redis_test.go
+++ b/modules/nosql/manager_redis_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nosql
diff --git a/modules/nosql/redis.go b/modules/nosql/redis.go
index 13795f3d7b..52e8ff9d02 100644
--- a/modules/nosql/redis.go
+++ b/modules/nosql/redis.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nosql
diff --git a/modules/nosql/redis_test.go b/modules/nosql/redis_test.go
index c70d236bdc..43652e314c 100644
--- a/modules/nosql/redis_test.go
+++ b/modules/nosql/redis_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nosql
diff --git a/modules/notification/action/action.go b/modules/notification/action/action.go
index d029405664..2f882c2cb8 100644
--- a/modules/notification/action/action.go
+++ b/modules/notification/action/action.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package action
diff --git a/modules/notification/action/action_test.go b/modules/notification/action/action_test.go
index dc31b3189b..05ce70f388 100644
--- a/modules/notification/action/action_test.go
+++ b/modules/notification/action/action_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package action
diff --git a/modules/notification/base/notifier.go b/modules/notification/base/notifier.go
index 2f7deac88e..dbed20ba3a 100644
--- a/modules/notification/base/notifier.go
+++ b/modules/notification/base/notifier.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/modules/notification/base/null.go b/modules/notification/base/null.go
index 88e0c93de1..de5f072d24 100644
--- a/modules/notification/base/null.go
+++ b/modules/notification/base/null.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package base
diff --git a/modules/notification/indexer/indexer.go b/modules/notification/indexer/indexer.go
index 2bacd5dec0..c67f79d0f2 100644
--- a/modules/notification/indexer/indexer.go
+++ b/modules/notification/indexer/indexer.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package indexer
diff --git a/modules/notification/mail/mail.go b/modules/notification/mail/mail.go
index 123fa0e65a..18f7fa22ae 100644
--- a/modules/notification/mail/mail.go
+++ b/modules/notification/mail/mail.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mail
diff --git a/modules/notification/mirror/mirror.go b/modules/notification/mirror/mirror.go
index 159c44ee6c..426e36ee58 100644
--- a/modules/notification/mirror/mirror.go
+++ b/modules/notification/mirror/mirror.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mirror
diff --git a/modules/notification/notification.go b/modules/notification/notification.go
index a117a60815..c3e09bb8a9 100644
--- a/modules/notification/notification.go
+++ b/modules/notification/notification.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package notification
diff --git a/modules/notification/ui/ui.go b/modules/notification/ui/ui.go
index a38289c976..63a3ffd199 100644
--- a/modules/notification/ui/ui.go
+++ b/modules/notification/ui/ui.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ui
diff --git a/modules/notification/webhook/webhook.go b/modules/notification/webhook/webhook.go
index 37ce7661f2..326d987ba5 100644
--- a/modules/notification/webhook/webhook.go
+++ b/modules/notification/webhook/webhook.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/modules/options/base.go b/modules/options/base.go
index e1d6efa7f0..039e934b3a 100644
--- a/modules/options/base.go
+++ b/modules/options/base.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package options
diff --git a/modules/options/dynamic.go b/modules/options/dynamic.go
index 3739867580..a20253676e 100644
--- a/modules/options/dynamic.go
+++ b/modules/options/dynamic.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !bindata
diff --git a/modules/options/options.go b/modules/options/options.go
index 6ba3bd6a86..17a8fa482e 100644
--- a/modules/options/options.go
+++ b/modules/options/options.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package options
diff --git a/modules/options/options_bindata.go b/modules/options/options_bindata.go
index 77b7a7ef41..29151cb3cb 100644
--- a/modules/options/options_bindata.go
+++ b/modules/options/options_bindata.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/options/static.go b/modules/options/static.go
index 4d60879be3..ff3c86d3f8 100644
--- a/modules/options/static.go
+++ b/modules/options/static.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/packages/composer/metadata.go b/modules/packages/composer/metadata.go
index 797576b1e7..b98294001c 100644
--- a/modules/packages/composer/metadata.go
+++ b/modules/packages/composer/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package composer
diff --git a/modules/packages/composer/metadata_test.go b/modules/packages/composer/metadata_test.go
index feadc18b6a..a0e1a77a6e 100644
--- a/modules/packages/composer/metadata_test.go
+++ b/modules/packages/composer/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package composer
diff --git a/modules/packages/conan/conanfile_parser.go b/modules/packages/conan/conanfile_parser.go
index 960e813533..c47b242cdc 100644
--- a/modules/packages/conan/conanfile_parser.go
+++ b/modules/packages/conan/conanfile_parser.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/conanfile_parser_test.go b/modules/packages/conan/conanfile_parser_test.go
index 0ac9c87b14..5801570184 100644
--- a/modules/packages/conan/conanfile_parser_test.go
+++ b/modules/packages/conan/conanfile_parser_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/conaninfo_parser.go b/modules/packages/conan/conaninfo_parser.go
index bb228e0207..5bb3fb8930 100644
--- a/modules/packages/conan/conaninfo_parser.go
+++ b/modules/packages/conan/conaninfo_parser.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/conaninfo_parser_test.go b/modules/packages/conan/conaninfo_parser_test.go
index 3e28191b06..556a4b939e 100644
--- a/modules/packages/conan/conaninfo_parser_test.go
+++ b/modules/packages/conan/conaninfo_parser_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/metadata.go b/modules/packages/conan/metadata.go
index a7d6a9df0b..256a376cf7 100644
--- a/modules/packages/conan/metadata.go
+++ b/modules/packages/conan/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/reference.go b/modules/packages/conan/reference.go
index 49236981b6..37a5170dd3 100644
--- a/modules/packages/conan/reference.go
+++ b/modules/packages/conan/reference.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/reference_test.go b/modules/packages/conan/reference_test.go
index 98eb2c8478..6ea86eb0dd 100644
--- a/modules/packages/conan/reference_test.go
+++ b/modules/packages/conan/reference_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/container/helm/helm.go b/modules/packages/container/helm/helm.go
index 98d3824a85..6981d430ad 100644
--- a/modules/packages/container/helm/helm.go
+++ b/modules/packages/container/helm/helm.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package helm
diff --git a/modules/packages/container/metadata.go b/modules/packages/container/metadata.go
index fd38e67859..c3946f38f1 100644
--- a/modules/packages/container/metadata.go
+++ b/modules/packages/container/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/modules/packages/container/metadata_test.go b/modules/packages/container/metadata_test.go
index 9400cf6954..f9ee478d63 100644
--- a/modules/packages/container/metadata_test.go
+++ b/modules/packages/container/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/modules/packages/container/oci/digest.go b/modules/packages/container/oci/digest.go
index 5234814cfe..dd9cc0095c 100644
--- a/modules/packages/container/oci/digest.go
+++ b/modules/packages/container/oci/digest.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oci
diff --git a/modules/packages/container/oci/mediatype.go b/modules/packages/container/oci/mediatype.go
index 2636fbe288..f9c3907e17 100644
--- a/modules/packages/container/oci/mediatype.go
+++ b/modules/packages/container/oci/mediatype.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oci
diff --git a/modules/packages/container/oci/oci.go b/modules/packages/container/oci/oci.go
index 01cca8fe69..570d2e92c2 100644
--- a/modules/packages/container/oci/oci.go
+++ b/modules/packages/container/oci/oci.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oci
diff --git a/modules/packages/container/oci/reference.go b/modules/packages/container/oci/reference.go
index 120ff122d4..7ec399255d 100644
--- a/modules/packages/container/oci/reference.go
+++ b/modules/packages/container/oci/reference.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oci
diff --git a/modules/packages/content_store.go b/modules/packages/content_store.go
index 13763db986..1181fa4d52 100644
--- a/modules/packages/content_store.go
+++ b/modules/packages/content_store.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/hashed_buffer.go b/modules/packages/hashed_buffer.go
index 3f8cafcfb5..ef00a45057 100644
--- a/modules/packages/hashed_buffer.go
+++ b/modules/packages/hashed_buffer.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/hashed_buffer_test.go b/modules/packages/hashed_buffer_test.go
index e21ec67e1f..529262226f 100644
--- a/modules/packages/hashed_buffer_test.go
+++ b/modules/packages/hashed_buffer_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/helm/metadata.go b/modules/packages/helm/metadata.go
index fb5e51d0c5..98b5919a73 100644
--- a/modules/packages/helm/metadata.go
+++ b/modules/packages/helm/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package helm
diff --git a/modules/packages/maven/metadata.go b/modules/packages/maven/metadata.go
index 6ee9d69687..be057c8c07 100644
--- a/modules/packages/maven/metadata.go
+++ b/modules/packages/maven/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package maven
diff --git a/modules/packages/maven/metadata_test.go b/modules/packages/maven/metadata_test.go
index a17d456560..f4bc84268e 100644
--- a/modules/packages/maven/metadata_test.go
+++ b/modules/packages/maven/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package maven
diff --git a/modules/packages/multi_hasher.go b/modules/packages/multi_hasher.go
index 4d17441d8c..83a4b5b7af 100644
--- a/modules/packages/multi_hasher.go
+++ b/modules/packages/multi_hasher.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/multi_hasher_test.go b/modules/packages/multi_hasher_test.go
index 6c895ce120..42c1ef416f 100644
--- a/modules/packages/multi_hasher_test.go
+++ b/modules/packages/multi_hasher_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/npm/creator.go b/modules/packages/npm/creator.go
index 16cadefb89..02f6724812 100644
--- a/modules/packages/npm/creator.go
+++ b/modules/packages/npm/creator.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package npm
diff --git a/modules/packages/npm/creator_test.go b/modules/packages/npm/creator_test.go
index 2b844f4b0e..9a2b1e10b2 100644
--- a/modules/packages/npm/creator_test.go
+++ b/modules/packages/npm/creator_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package npm
diff --git a/modules/packages/npm/metadata.go b/modules/packages/npm/metadata.go
index 44714cd6ea..aafbdf779c 100644
--- a/modules/packages/npm/metadata.go
+++ b/modules/packages/npm/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package npm
diff --git a/modules/packages/nuget/metadata.go b/modules/packages/nuget/metadata.go
index 2b555e47e9..dc72d0982a 100644
--- a/modules/packages/nuget/metadata.go
+++ b/modules/packages/nuget/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/modules/packages/nuget/metadata_test.go b/modules/packages/nuget/metadata_test.go
index e8c7773e97..74c3e7dfaa 100644
--- a/modules/packages/nuget/metadata_test.go
+++ b/modules/packages/nuget/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/modules/packages/nuget/symbol_extractor.go b/modules/packages/nuget/symbol_extractor.go
index 9c04d7bfb4..634bbb17e6 100644
--- a/modules/packages/nuget/symbol_extractor.go
+++ b/modules/packages/nuget/symbol_extractor.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/modules/packages/nuget/symbol_extractor_test.go b/modules/packages/nuget/symbol_extractor_test.go
index 892d718caa..fa1b80ee82 100644
--- a/modules/packages/nuget/symbol_extractor_test.go
+++ b/modules/packages/nuget/symbol_extractor_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/modules/packages/pub/metadata.go b/modules/packages/pub/metadata.go
index f3e9bf20bc..36fe665707 100644
--- a/modules/packages/pub/metadata.go
+++ b/modules/packages/pub/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pub
diff --git a/modules/packages/pub/metadata_test.go b/modules/packages/pub/metadata_test.go
index e43ed64fc6..4c0c3f0ec6 100644
--- a/modules/packages/pub/metadata_test.go
+++ b/modules/packages/pub/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pub
diff --git a/modules/packages/pypi/metadata.go b/modules/packages/pypi/metadata.go
index df367d10e2..125728c4f1 100644
--- a/modules/packages/pypi/metadata.go
+++ b/modules/packages/pypi/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pypi
diff --git a/modules/packages/rubygems/marshal.go b/modules/packages/rubygems/marshal.go
index 2c45042fa8..14fb755606 100644
--- a/modules/packages/rubygems/marshal.go
+++ b/modules/packages/rubygems/marshal.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package rubygems
diff --git a/modules/packages/rubygems/marshal_test.go b/modules/packages/rubygems/marshal_test.go
index e5963ebcd6..501757bfed 100644
--- a/modules/packages/rubygems/marshal_test.go
+++ b/modules/packages/rubygems/marshal_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package rubygems
diff --git a/modules/packages/rubygems/metadata.go b/modules/packages/rubygems/metadata.go
index f1fc399918..e2c73c8f3a 100644
--- a/modules/packages/rubygems/metadata.go
+++ b/modules/packages/rubygems/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package rubygems
diff --git a/modules/packages/rubygems/metadata_test.go b/modules/packages/rubygems/metadata_test.go
index dbefa9c236..ec2fa08b6b 100644
--- a/modules/packages/rubygems/metadata_test.go
+++ b/modules/packages/rubygems/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package rubygems
diff --git a/modules/packages/vagrant/metadata.go b/modules/packages/vagrant/metadata.go
index f52989b2e2..6789533339 100644
--- a/modules/packages/vagrant/metadata.go
+++ b/modules/packages/vagrant/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package vagrant
diff --git a/modules/packages/vagrant/metadata_test.go b/modules/packages/vagrant/metadata_test.go
index 9720c945ae..d616ffe3d3 100644
--- a/modules/packages/vagrant/metadata_test.go
+++ b/modules/packages/vagrant/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package vagrant
diff --git a/modules/password/password.go b/modules/password/password.go
index e1f1f769ec..fe2a2a7bd5 100644
--- a/modules/password/password.go
+++ b/modules/password/password.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package password
diff --git a/modules/password/password_test.go b/modules/password/password_test.go
index 63f98aa9c3..6c35dc86bd 100644
--- a/modules/password/password_test.go
+++ b/modules/password/password_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package password
diff --git a/modules/password/pwn.go b/modules/password/pwn.go
index 938524e6de..e8565e5bb1 100644
--- a/modules/password/pwn.go
+++ b/modules/password/pwn.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package password
diff --git a/modules/pprof/pprof.go b/modules/pprof/pprof.go
index 8ce0ad484e..c611c14270 100644
--- a/modules/pprof/pprof.go
+++ b/modules/pprof/pprof.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pprof
diff --git a/modules/private/hook.go b/modules/private/hook.go
index e208c14378..027014270a 100644
--- a/modules/private/hook.go
+++ b/modules/private/hook.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/modules/private/internal.go b/modules/private/internal.go
index 21e5c9a279..a8b62fdde7 100644
--- a/modules/private/internal.go
+++ b/modules/private/internal.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/modules/private/key.go b/modules/private/key.go
index 8dfd82a6d6..f09d6de2bf 100644
--- a/modules/private/key.go
+++ b/modules/private/key.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/modules/private/mail.go b/modules/private/mail.go
index 3efef3bece..6eb7c2acd0 100644
--- a/modules/private/mail.go
+++ b/modules/private/mail.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/modules/private/manager.go b/modules/private/manager.go
index ba51260ebb..bbf470cd7a 100644
--- a/modules/private/manager.go
+++ b/modules/private/manager.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/modules/private/restore_repo.go b/modules/private/restore_repo.go
index b1561f392b..f40d914a7b 100644
--- a/modules/private/restore_repo.go
+++ b/modules/private/restore_repo.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/modules/private/serv.go b/modules/private/serv.go
index 2e1367e4c4..c176e1ddfc 100644
--- a/modules/private/serv.go
+++ b/modules/private/serv.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/modules/process/context.go b/modules/process/context.go
index 6df5bc1513..f1bc582ff0 100644
--- a/modules/process/context.go
+++ b/modules/process/context.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package process
diff --git a/modules/process/error.go b/modules/process/error.go
index 7a72bda40e..8f02f65258 100644
--- a/modules/process/error.go
+++ b/modules/process/error.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package process
diff --git a/modules/process/manager.go b/modules/process/manager.go
index 7f14287de5..1272510067 100644
--- a/modules/process/manager.go
+++ b/modules/process/manager.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package process
diff --git a/modules/process/manager_exec.go b/modules/process/manager_exec.go
index 77e3d3193a..c983173748 100644
--- a/modules/process/manager_exec.go
+++ b/modules/process/manager_exec.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package process
diff --git a/modules/process/manager_stacktraces.go b/modules/process/manager_stacktraces.go
index 628d9cebcd..49bd5071f6 100644
--- a/modules/process/manager_stacktraces.go
+++ b/modules/process/manager_stacktraces.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package process
diff --git a/modules/process/manager_test.go b/modules/process/manager_test.go
index 30eabeb37a..527072713f 100644
--- a/modules/process/manager_test.go
+++ b/modules/process/manager_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package process
diff --git a/modules/process/manager_unix.go b/modules/process/manager_unix.go
index 1e7c77fdbf..c5be906b35 100644
--- a/modules/process/manager_unix.go
+++ b/modules/process/manager_unix.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/modules/process/manager_windows.go b/modules/process/manager_windows.go
index 35f66d9fa5..44a84f2203 100644
--- a/modules/process/manager_windows.go
+++ b/modules/process/manager_windows.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build windows
diff --git a/modules/process/process.go b/modules/process/process.go
index 2f7ea18373..06a28c4a60 100644
--- a/modules/process/process.go
+++ b/modules/process/process.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package process
diff --git a/modules/proxy/proxy.go b/modules/proxy/proxy.go
index 61730544b0..f0cd366c12 100644
--- a/modules/proxy/proxy.go
+++ b/modules/proxy/proxy.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package proxy
diff --git a/modules/proxyprotocol/conn.go b/modules/proxyprotocol/conn.go
index 10333b204d..f437f13683 100644
--- a/modules/proxyprotocol/conn.go
+++ b/modules/proxyprotocol/conn.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package proxyprotocol
diff --git a/modules/proxyprotocol/errors.go b/modules/proxyprotocol/errors.go
index 2acf9d84b0..5439a86bd8 100644
--- a/modules/proxyprotocol/errors.go
+++ b/modules/proxyprotocol/errors.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package proxyprotocol
diff --git a/modules/proxyprotocol/listener.go b/modules/proxyprotocol/listener.go
index 64d9b323e5..ec85c425d3 100644
--- a/modules/proxyprotocol/listener.go
+++ b/modules/proxyprotocol/listener.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package proxyprotocol
diff --git a/modules/proxyprotocol/util.go b/modules/proxyprotocol/util.go
index b12771b686..a280663b27 100644
--- a/modules/proxyprotocol/util.go
+++ b/modules/proxyprotocol/util.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package proxyprotocol
diff --git a/modules/public/mime_types.go b/modules/public/mime_types.go
index f8c92e824f..32bdf3bfa2 100644
--- a/modules/public/mime_types.go
+++ b/modules/public/mime_types.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package public
diff --git a/modules/public/public.go b/modules/public/public.go
index ac1d80c860..42026f9b10 100644
--- a/modules/public/public.go
+++ b/modules/public/public.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package public
diff --git a/modules/public/public_bindata.go b/modules/public/public_bindata.go
index fe250c6454..4878f88ad1 100644
--- a/modules/public/public_bindata.go
+++ b/modules/public/public_bindata.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/public/public_test.go b/modules/public/public_test.go
index 8b58d6af33..5e4bf5d671 100644
--- a/modules/public/public_test.go
+++ b/modules/public/public_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package public
diff --git a/modules/public/serve_dynamic.go b/modules/public/serve_dynamic.go
index 672924a636..cd74ee5743 100644
--- a/modules/public/serve_dynamic.go
+++ b/modules/public/serve_dynamic.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !bindata
diff --git a/modules/public/serve_static.go b/modules/public/serve_static.go
index 10120bf85d..e85ca79253 100644
--- a/modules/public/serve_static.go
+++ b/modules/public/serve_static.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/queue/bytefifo.go b/modules/queue/bytefifo.go
index bb98d468fb..c33b79426e 100644
--- a/modules/queue/bytefifo.go
+++ b/modules/queue/bytefifo.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/helper.go b/modules/queue/helper.go
index 9ad95badeb..c6fb9447b7 100644
--- a/modules/queue/helper.go
+++ b/modules/queue/helper.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/manager.go b/modules/queue/manager.go
index bba2c54ad2..6975e02907 100644
--- a/modules/queue/manager.go
+++ b/modules/queue/manager.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue.go b/modules/queue/queue.go
index a166a935a6..22ee64f8e2 100644
--- a/modules/queue/queue.go
+++ b/modules/queue/queue.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_bytefifo.go b/modules/queue/queue_bytefifo.go
index 79f69f07ce..ee00a5428a 100644
--- a/modules/queue/queue_bytefifo.go
+++ b/modules/queue/queue_bytefifo.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_channel.go b/modules/queue/queue_channel.go
index 028023d500..431f48390c 100644
--- a/modules/queue/queue_channel.go
+++ b/modules/queue/queue_channel.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_channel_test.go b/modules/queue/queue_channel_test.go
index 949c452893..9b92398bac 100644
--- a/modules/queue/queue_channel_test.go
+++ b/modules/queue/queue_channel_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_disk.go b/modules/queue/queue_disk.go
index 2691ab02f5..fbedb8e5b9 100644
--- a/modules/queue/queue_disk.go
+++ b/modules/queue/queue_disk.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_disk_channel.go b/modules/queue/queue_disk_channel.go
index c00f620276..c7526714c6 100644
--- a/modules/queue/queue_disk_channel.go
+++ b/modules/queue/queue_disk_channel.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_disk_channel_test.go b/modules/queue/queue_disk_channel_test.go
index b1820e73ac..318610355e 100644
--- a/modules/queue/queue_disk_channel_test.go
+++ b/modules/queue/queue_disk_channel_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_disk_test.go b/modules/queue/queue_disk_test.go
index b0835c896f..8f83abf42c 100644
--- a/modules/queue/queue_disk_test.go
+++ b/modules/queue/queue_disk_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_redis.go b/modules/queue/queue_redis.go
index 84ab235d5e..039e95241c 100644
--- a/modules/queue/queue_redis.go
+++ b/modules/queue/queue_redis.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_test.go b/modules/queue/queue_test.go
index 65fb816537..42d34c806c 100644
--- a/modules/queue/queue_test.go
+++ b/modules/queue/queue_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/queue_wrapped.go b/modules/queue/queue_wrapped.go
index e581ba75f3..84d6dd98a5 100644
--- a/modules/queue/queue_wrapped.go
+++ b/modules/queue/queue_wrapped.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/setting.go b/modules/queue/setting.go
index 880770f073..1e5259fcfb 100644
--- a/modules/queue/setting.go
+++ b/modules/queue/setting.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/unique_queue.go b/modules/queue/unique_queue.go
index 87e0594ecf..8f8215c71d 100644
--- a/modules/queue/unique_queue.go
+++ b/modules/queue/unique_queue.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/unique_queue_channel.go b/modules/queue/unique_queue_channel.go
index d1bf7239eb..f2d3dbdc97 100644
--- a/modules/queue/unique_queue_channel.go
+++ b/modules/queue/unique_queue_channel.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/unique_queue_channel_test.go b/modules/queue/unique_queue_channel_test.go
index 6daf3fc96e..9372694b87 100644
--- a/modules/queue/unique_queue_channel_test.go
+++ b/modules/queue/unique_queue_channel_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/unique_queue_disk.go b/modules/queue/unique_queue_disk.go
index dae32f75a8..406f64784c 100644
--- a/modules/queue/unique_queue_disk.go
+++ b/modules/queue/unique_queue_disk.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/unique_queue_disk_channel.go b/modules/queue/unique_queue_disk_channel.go
index 8e0322bb90..405726182d 100644
--- a/modules/queue/unique_queue_disk_channel.go
+++ b/modules/queue/unique_queue_disk_channel.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/unique_queue_redis.go b/modules/queue/unique_queue_redis.go
index 477d5dd81f..491ae5d15e 100644
--- a/modules/queue/unique_queue_redis.go
+++ b/modules/queue/unique_queue_redis.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/unique_queue_wrapped.go b/modules/queue/unique_queue_wrapped.go
index 5245a35f77..22eeb75c40 100644
--- a/modules/queue/unique_queue_wrapped.go
+++ b/modules/queue/unique_queue_wrapped.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/queue/workerpool.go b/modules/queue/workerpool.go
index bdf04a363b..244927880e 100644
--- a/modules/queue/workerpool.go
+++ b/modules/queue/workerpool.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package queue
diff --git a/modules/recaptcha/recaptcha.go b/modules/recaptcha/recaptcha.go
index 91b70dc588..1777d169c1 100644
--- a/modules/recaptcha/recaptcha.go
+++ b/modules/recaptcha/recaptcha.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package recaptcha
diff --git a/modules/references/references.go b/modules/references/references.go
index 8fd0c8f055..5cbbf8313c 100644
--- a/modules/references/references.go
+++ b/modules/references/references.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package references
diff --git a/modules/references/references_test.go b/modules/references/references_test.go
index 507adadb1f..835cee3a36 100644
--- a/modules/references/references_test.go
+++ b/modules/references/references_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package references
diff --git a/modules/regexplru/regexplru.go b/modules/regexplru/regexplru.go
index 97c7cff4c1..dd3c5df82d 100644
--- a/modules/regexplru/regexplru.go
+++ b/modules/regexplru/regexplru.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package regexplru
diff --git a/modules/regexplru/regexplru_test.go b/modules/regexplru/regexplru_test.go
index 041f0dcfb9..9c24b23fa9 100644
--- a/modules/regexplru/regexplru_test.go
+++ b/modules/regexplru/regexplru_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package regexplru
diff --git a/modules/repository/collaborator.go b/modules/repository/collaborator.go
index b83d8199b9..44c03f999e 100644
--- a/modules/repository/collaborator.go
+++ b/modules/repository/collaborator.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/collaborator_test.go b/modules/repository/collaborator_test.go
index 1b927aa3b6..ad835ae4d4 100644
--- a/modules/repository/collaborator_test.go
+++ b/modules/repository/collaborator_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/commits.go b/modules/repository/commits.go
index 7d6eec151f..a47f9b2dc8 100644
--- a/modules/repository/commits.go
+++ b/modules/repository/commits.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/commits_test.go b/modules/repository/commits_test.go
index 7bd741d0c8..2ae4bc73d2 100644
--- a/modules/repository/commits_test.go
+++ b/modules/repository/commits_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/create.go b/modules/repository/create.go
index c43f1e0989..8bee890aad 100644
--- a/modules/repository/create.go
+++ b/modules/repository/create.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/create_test.go b/modules/repository/create_test.go
index 3040782845..94a9b26aa6 100644
--- a/modules/repository/create_test.go
+++ b/modules/repository/create_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/delete.go b/modules/repository/delete.go
index 25fb15e300..c7e05e6669 100644
--- a/modules/repository/delete.go
+++ b/modules/repository/delete.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/env.go b/modules/repository/env.go
index e86e0d4535..646bf35cc6 100644
--- a/modules/repository/env.go
+++ b/modules/repository/env.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/fork.go b/modules/repository/fork.go
index c967d3b741..8e9f3a8976 100644
--- a/modules/repository/fork.go
+++ b/modules/repository/fork.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/generate.go b/modules/repository/generate.go
index c5fd7d60bf..5726a8fb1b 100644
--- a/modules/repository/generate.go
+++ b/modules/repository/generate.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/generate_test.go b/modules/repository/generate_test.go
index 139fa4c918..1cb9a50f67 100644
--- a/modules/repository/generate_test.go
+++ b/modules/repository/generate_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/hooks.go b/modules/repository/hooks.go
index 4d7d294a92..a95b9c2e99 100644
--- a/modules/repository/hooks.go
+++ b/modules/repository/hooks.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/init.go b/modules/repository/init.go
index 65072a9599..cd7176c238 100644
--- a/modules/repository/init.go
+++ b/modules/repository/init.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/main_test.go b/modules/repository/main_test.go
index 42134fa7ad..007790f2a9 100644
--- a/modules/repository/main_test.go
+++ b/modules/repository/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/push.go b/modules/repository/push.go
index 4e4b4000b1..1fa711b359 100644
--- a/modules/repository/push.go
+++ b/modules/repository/push.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/repo.go b/modules/repository/repo.go
index f1360f4478..a90eb8a764 100644
--- a/modules/repository/repo.go
+++ b/modules/repository/repo.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/repository/temp.go b/modules/repository/temp.go
index 21af039469..53646718e0 100644
--- a/modules/repository/temp.go
+++ b/modules/repository/temp.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/modules/secret/secret.go b/modules/secret/secret.go
index e7edc7a95e..b84d1cfea8 100644
--- a/modules/secret/secret.go
+++ b/modules/secret/secret.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package secret
diff --git a/modules/secret/secret_test.go b/modules/secret/secret_test.go
index b1c99d8513..0a189ecebf 100644
--- a/modules/secret/secret_test.go
+++ b/modules/secret/secret_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package secret
diff --git a/modules/session/db.go b/modules/session/db.go
index f9de37210f..6fdfb81e03 100644
--- a/modules/session/db.go
+++ b/modules/session/db.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package session
diff --git a/modules/session/store.go b/modules/session/store.go
index 8c5d7d82eb..7b0c550ace 100644
--- a/modules/session/store.go
+++ b/modules/session/store.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package session
diff --git a/modules/session/virtual.go b/modules/session/virtual.go
index 928dd49740..fcbc44249d 100644
--- a/modules/session/virtual.go
+++ b/modules/session/virtual.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package session
diff --git a/modules/setting/attachment.go b/modules/setting/attachment.go
index 474b73293c..68a2e87204 100644
--- a/modules/setting/attachment.go
+++ b/modules/setting/attachment.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/cache.go b/modules/setting/cache.go
index 9a44965124..2da79adb3b 100644
--- a/modules/setting/cache.go
+++ b/modules/setting/cache.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/cors.go b/modules/setting/cors.go
index 74ec6618a5..ae0736e830 100644
--- a/modules/setting/cors.go
+++ b/modules/setting/cors.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/cron.go b/modules/setting/cron.go
index 9475887ecc..a76de2797f 100644
--- a/modules/setting/cron.go
+++ b/modules/setting/cron.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/cron_test.go b/modules/setting/cron_test.go
index cb397d81c4..29cdca8fbf 100644
--- a/modules/setting/cron_test.go
+++ b/modules/setting/cron_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/database.go b/modules/setting/database.go
index 4e55457395..be06c47478 100644
--- a/modules/setting/database.go
+++ b/modules/setting/database.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/database_sqlite.go b/modules/setting/database_sqlite.go
index 1f18868d8e..c1037cfb27 100644
--- a/modules/setting/database_sqlite.go
+++ b/modules/setting/database_sqlite.go
@@ -1,8 +1,7 @@
//go:build sqlite
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/database_test.go b/modules/setting/database_test.go
index a90be2a687..481ca969b1 100644
--- a/modules/setting/database_test.go
+++ b/modules/setting/database_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/directory.go b/modules/setting/directory.go
index 2641510286..a80df47ab4 100644
--- a/modules/setting/directory.go
+++ b/modules/setting/directory.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/federation.go b/modules/setting/federation.go
index 583d9a6e2b..acab3eb580 100644
--- a/modules/setting/federation.go
+++ b/modules/setting/federation.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/git.go b/modules/setting/git.go
index 266bbc3c5a..a05f77a97e 100644
--- a/modules/setting/git.go
+++ b/modules/setting/git.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/i18n.go b/modules/setting/i18n.go
index 8b8587e09b..0e67b18a3e 100644
--- a/modules/setting/i18n.go
+++ b/modules/setting/i18n.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/indexer.go b/modules/setting/indexer.go
index 46d4027d14..1b1c8f7e7f 100644
--- a/modules/setting/indexer.go
+++ b/modules/setting/indexer.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/indexer_test.go b/modules/setting/indexer_test.go
index 0ff1d814ab..8f0437be8a 100644
--- a/modules/setting/indexer_test.go
+++ b/modules/setting/indexer_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/lfs.go b/modules/setting/lfs.go
index 686b043657..6f8e875c1d 100644
--- a/modules/setting/lfs.go
+++ b/modules/setting/lfs.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/log.go b/modules/setting/log.go
index 1d9535360a..7372fc998d 100644
--- a/modules/setting/log.go
+++ b/modules/setting/log.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/mailer.go b/modules/setting/mailer.go
index 5a9b7054b9..7324328ee3 100644
--- a/modules/setting/mailer.go
+++ b/modules/setting/mailer.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/markup.go b/modules/setting/markup.go
index fd41bdd7cc..c262234b6a 100644
--- a/modules/setting/markup.go
+++ b/modules/setting/markup.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/migrations.go b/modules/setting/migrations.go
index 4b10f3dc6e..2f6d08b6b8 100644
--- a/modules/setting/migrations.go
+++ b/modules/setting/migrations.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/mime_type_map.go b/modules/setting/mime_type_map.go
index 8e5b864e24..6a0847bd7e 100644
--- a/modules/setting/mime_type_map.go
+++ b/modules/setting/mime_type_map.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/mirror.go b/modules/setting/mirror.go
index 2bd0322d06..9ddce97daf 100644
--- a/modules/setting/mirror.go
+++ b/modules/setting/mirror.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/oauth2_client.go b/modules/setting/oauth2_client.go
index 6cfd99156f..6492af82d2 100644
--- a/modules/setting/oauth2_client.go
+++ b/modules/setting/oauth2_client.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/packages.go b/modules/setting/packages.go
index 62201032c7..120fbb5bda 100644
--- a/modules/setting/packages.go
+++ b/modules/setting/packages.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/packages_test.go b/modules/setting/packages_test.go
index 059273dce4..04d6e55834 100644
--- a/modules/setting/packages_test.go
+++ b/modules/setting/packages_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/picture.go b/modules/setting/picture.go
index af9041ade3..9d16a2360b 100644
--- a/modules/setting/picture.go
+++ b/modules/setting/picture.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/project.go b/modules/setting/project.go
index 56505b0ca4..53e09e8dad 100644
--- a/modules/setting/project.go
+++ b/modules/setting/project.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/proxy.go b/modules/setting/proxy.go
index 53fb0066d9..fed33395ed 100644
--- a/modules/setting/proxy.go
+++ b/modules/setting/proxy.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/queue.go b/modules/setting/queue.go
index d3bb33b248..a67d0d849a 100644
--- a/modules/setting/queue.go
+++ b/modules/setting/queue.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/repository.go b/modules/setting/repository.go
index d0406dbf90..19594369be 100644
--- a/modules/setting/repository.go
+++ b/modules/setting/repository.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/service.go b/modules/setting/service.go
index d2eb6ebcd7..7b4bfc5c7b 100644
--- a/modules/setting/service.go
+++ b/modules/setting/service.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/session.go b/modules/setting/session.go
index 62ca1d82e8..082538c385 100644
--- a/modules/setting/session.go
+++ b/modules/setting/session.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index df7310b09b..68892a2198 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/setting_test.go b/modules/setting/setting_test.go
index 0e7f5a55ab..f77ee65974 100644
--- a/modules/setting/setting_test.go
+++ b/modules/setting/setting_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/storage.go b/modules/setting/storage.go
index 075152db59..32f74aa072 100644
--- a/modules/setting/storage.go
+++ b/modules/setting/storage.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/storage_test.go b/modules/setting/storage_test.go
index ffd8b7aa01..256bbb7a52 100644
--- a/modules/setting/storage_test.go
+++ b/modules/setting/storage_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/task.go b/modules/setting/task.go
index c39d441108..cfb0f54668 100644
--- a/modules/setting/task.go
+++ b/modules/setting/task.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/setting/webhook.go b/modules/setting/webhook.go
index 0bfd7dcb4d..51e36c3419 100644
--- a/modules/setting/webhook.go
+++ b/modules/setting/webhook.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/modules/sitemap/sitemap.go b/modules/sitemap/sitemap.go
index 14953765ab..ceb65c1c8d 100644
--- a/modules/sitemap/sitemap.go
+++ b/modules/sitemap/sitemap.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package sitemap
diff --git a/modules/sitemap/sitemap_test.go b/modules/sitemap/sitemap_test.go
index 63007b8479..ab879b272e 100644
--- a/modules/sitemap/sitemap_test.go
+++ b/modules/sitemap/sitemap_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package sitemap
diff --git a/modules/ssh/init.go b/modules/ssh/init.go
index 72cb6df7a4..21d4f89936 100644
--- a/modules/ssh/init.go
+++ b/modules/ssh/init.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ssh
diff --git a/modules/ssh/ssh.go b/modules/ssh/ssh.go
index 6b601c008f..9ec14f2caa 100644
--- a/modules/ssh/ssh.go
+++ b/modules/ssh/ssh.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ssh
diff --git a/modules/ssh/ssh_graceful.go b/modules/ssh/ssh_graceful.go
index 166ea0b982..cad2c685bd 100644
--- a/modules/ssh/ssh_graceful.go
+++ b/modules/ssh/ssh_graceful.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ssh
diff --git a/modules/storage/helper.go b/modules/storage/helper.go
index 1a25716ccb..5aaa2a9e64 100644
--- a/modules/storage/helper.go
+++ b/modules/storage/helper.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package storage
diff --git a/modules/storage/local.go b/modules/storage/local.go
index 5d5b06b648..a439a24592 100644
--- a/modules/storage/local.go
+++ b/modules/storage/local.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package storage
diff --git a/modules/storage/local_test.go b/modules/storage/local_test.go
index 0749036cb7..994c54e859 100644
--- a/modules/storage/local_test.go
+++ b/modules/storage/local_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package storage
diff --git a/modules/storage/minio.go b/modules/storage/minio.go
index f7b42d674c..912f820ede 100644
--- a/modules/storage/minio.go
+++ b/modules/storage/minio.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package storage
diff --git a/modules/storage/storage.go b/modules/storage/storage.go
index 1b83e3271f..a7d3b9ce1f 100644
--- a/modules/storage/storage.go
+++ b/modules/storage/storage.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package storage
diff --git a/modules/structs/activitypub.go b/modules/structs/activitypub.go
index 86681bf9d7..117eb0bed2 100644
--- a/modules/structs/activitypub.go
+++ b/modules/structs/activitypub.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/admin_user.go b/modules/structs/admin_user.go
index 2f6f502af6..0739653eea 100644
--- a/modules/structs/admin_user.go
+++ b/modules/structs/admin_user.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/attachment.go b/modules/structs/attachment.go
index 7becd94335..38beca5e99 100644
--- a/modules/structs/attachment.go
+++ b/modules/structs/attachment.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs // import "code.gitea.io/gitea/modules/structs"
diff --git a/modules/structs/commit_status.go b/modules/structs/commit_status.go
index 23e0c383b8..dfde79190c 100644
--- a/modules/structs/commit_status.go
+++ b/modules/structs/commit_status.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/cron.go b/modules/structs/cron.go
index f52a5ed3c9..39c6a06a42 100644
--- a/modules/structs/cron.go
+++ b/modules/structs/cron.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/doc.go b/modules/structs/doc.go
index 4c2fdbf73d..0db0a25fd4 100644
--- a/modules/structs/doc.go
+++ b/modules/structs/doc.go
@@ -1,5 +1,4 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/fork.go b/modules/structs/fork.go
index 21afd636c7..eb7774afbc 100644
--- a/modules/structs/fork.go
+++ b/modules/structs/fork.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/git_blob.go b/modules/structs/git_blob.go
index 5715f2585b..96c7a271a9 100644
--- a/modules/structs/git_blob.go
+++ b/modules/structs/git_blob.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/git_hook.go b/modules/structs/git_hook.go
index 8a36b0b266..20230250ec 100644
--- a/modules/structs/git_hook.go
+++ b/modules/structs/git_hook.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/hook.go b/modules/structs/hook.go
index f0600a192d..b722e32ca0 100644
--- a/modules/structs/hook.go
+++ b/modules/structs/hook.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue.go b/modules/structs/issue.go
index 45c3f6294a..00166b7a07 100644
--- a/modules/structs/issue.go
+++ b/modules/structs/issue.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue_comment.go b/modules/structs/issue_comment.go
index e13ec05d01..4a1085ba50 100644
--- a/modules/structs/issue_comment.go
+++ b/modules/structs/issue_comment.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue_label.go b/modules/structs/issue_label.go
index 2aadd8638e..5c622797f4 100644
--- a/modules/structs/issue_label.go
+++ b/modules/structs/issue_label.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue_milestone.go b/modules/structs/issue_milestone.go
index ace783ebbc..a840cf1820 100644
--- a/modules/structs/issue_milestone.go
+++ b/modules/structs/issue_milestone.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue_reaction.go b/modules/structs/issue_reaction.go
index 56408313ee..8d907a47e5 100644
--- a/modules/structs/issue_reaction.go
+++ b/modules/structs/issue_reaction.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue_stopwatch.go b/modules/structs/issue_stopwatch.go
index 15d17cdda7..ceade1ddd2 100644
--- a/modules/structs/issue_stopwatch.go
+++ b/modules/structs/issue_stopwatch.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue_test.go b/modules/structs/issue_test.go
index 72b40f7cf2..fa7a20db8b 100644
--- a/modules/structs/issue_test.go
+++ b/modules/structs/issue_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/issue_tracked_time.go b/modules/structs/issue_tracked_time.go
index 7e150687ef..a3904af80e 100644
--- a/modules/structs/issue_tracked_time.go
+++ b/modules/structs/issue_tracked_time.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/lfs_lock.go b/modules/structs/lfs_lock.go
index 3709106315..6b4c0bc111 100644
--- a/modules/structs/lfs_lock.go
+++ b/modules/structs/lfs_lock.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/mirror.go b/modules/structs/mirror.go
index 8e8a8a2705..21e7751f76 100644
--- a/modules/structs/mirror.go
+++ b/modules/structs/mirror.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/miscellaneous.go b/modules/structs/miscellaneous.go
index c21c466cb0..596a551e0d 100644
--- a/modules/structs/miscellaneous.go
+++ b/modules/structs/miscellaneous.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/nodeinfo.go b/modules/structs/nodeinfo.go
index 6fd1eb624a..802c8d3e57 100644
--- a/modules/structs/nodeinfo.go
+++ b/modules/structs/nodeinfo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/notifications.go b/modules/structs/notifications.go
index 3fd9088ce3..7fbf4cb46d 100644
--- a/modules/structs/notifications.go
+++ b/modules/structs/notifications.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/org.go b/modules/structs/org.go
index 1e98c59ba4..b4c58623fd 100644
--- a/modules/structs/org.go
+++ b/modules/structs/org.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/org_member.go b/modules/structs/org_member.go
index 3b2a8b599a..2df5099de9 100644
--- a/modules/structs/org_member.go
+++ b/modules/structs/org_member.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/org_team.go b/modules/structs/org_team.go
index 10bd9e62ce..95db0debad 100644
--- a/modules/structs/org_team.go
+++ b/modules/structs/org_team.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/org_type.go b/modules/structs/org_type.go
index 4401a2801c..69f323fa99 100644
--- a/modules/structs/org_type.go
+++ b/modules/structs/org_type.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/package.go b/modules/structs/package.go
index fbdd6c90aa..0059535bea 100644
--- a/modules/structs/package.go
+++ b/modules/structs/package.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/pull.go b/modules/structs/pull.go
index f627241b26..f64bb83af9 100644
--- a/modules/structs/pull.go
+++ b/modules/structs/pull.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/pull_review.go b/modules/structs/pull_review.go
index ca2af48657..810be8f521 100644
--- a/modules/structs/pull_review.go
+++ b/modules/structs/pull_review.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/release.go b/modules/structs/release.go
index 38ce60bbe2..3fe40389b1 100644
--- a/modules/structs/release.go
+++ b/modules/structs/release.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo.go b/modules/structs/repo.go
index cf6601704e..16f3d9dd26 100644
--- a/modules/structs/repo.go
+++ b/modules/structs/repo.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_branch.go b/modules/structs/repo_branch.go
index 1f3bc04e86..864cb8f50a 100644
--- a/modules/structs/repo_branch.go
+++ b/modules/structs/repo_branch.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_collaborator.go b/modules/structs/repo_collaborator.go
index 2f9c8992a1..946a6ec7e7 100644
--- a/modules/structs/repo_collaborator.go
+++ b/modules/structs/repo_collaborator.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_commit.go b/modules/structs/repo_commit.go
index 55a516a975..b3e98df195 100644
--- a/modules/structs/repo_commit.go
+++ b/modules/structs/repo_commit.go
@@ -1,7 +1,6 @@
// Copyright 2018 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_file.go b/modules/structs/repo_file.go
index ce1a9fe4be..328d7e47c8 100644
--- a/modules/structs/repo_file.go
+++ b/modules/structs/repo_file.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_key.go b/modules/structs/repo_key.go
index 29928bd97e..27b9d05a75 100644
--- a/modules/structs/repo_key.go
+++ b/modules/structs/repo_key.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_note.go b/modules/structs/repo_note.go
index bddc945a5c..4eaf5a255d 100644
--- a/modules/structs/repo_note.go
+++ b/modules/structs/repo_note.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_refs.go b/modules/structs/repo_refs.go
index 0bf4b94ae1..6ffbc74a51 100644
--- a/modules/structs/repo_refs.go
+++ b/modules/structs/repo_refs.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_tag.go b/modules/structs/repo_tag.go
index 80ee1ccf17..4a7d895288 100644
--- a/modules/structs/repo_tag.go
+++ b/modules/structs/repo_tag.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_topic.go b/modules/structs/repo_topic.go
index 294d56a953..fea193e86b 100644
--- a/modules/structs/repo_topic.go
+++ b/modules/structs/repo_topic.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_tree.go b/modules/structs/repo_tree.go
index 58aa3b8339..86b221e1fe 100644
--- a/modules/structs/repo_tree.go
+++ b/modules/structs/repo_tree.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_watch.go b/modules/structs/repo_watch.go
index 606785a4fd..2e89a9eefc 100644
--- a/modules/structs/repo_watch.go
+++ b/modules/structs/repo_watch.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/repo_wiki.go b/modules/structs/repo_wiki.go
index 09e21387df..3df5a0be99 100644
--- a/modules/structs/repo_wiki.go
+++ b/modules/structs/repo_wiki.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/settings.go b/modules/structs/settings.go
index 90c4a2107b..e48b1a493d 100644
--- a/modules/structs/settings.go
+++ b/modules/structs/settings.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/status.go b/modules/structs/status.go
index ed42b24be8..c1d8b902ec 100644
--- a/modules/structs/status.go
+++ b/modules/structs/status.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/task.go b/modules/structs/task.go
index e83d0437ce..c73e51b1ab 100644
--- a/modules/structs/task.go
+++ b/modules/structs/task.go
@@ -1,6 +1,5 @@
// Copyright 2019 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/user.go b/modules/structs/user.go
index 81516894a5..c5e96f3356 100644
--- a/modules/structs/user.go
+++ b/modules/structs/user.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/user_app.go b/modules/structs/user_app.go
index 4cfa5538c8..3a5ae34df1 100644
--- a/modules/structs/user_app.go
+++ b/modules/structs/user_app.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/user_email.go b/modules/structs/user_email.go
index a72b04119a..6a11e040af 100644
--- a/modules/structs/user_email.go
+++ b/modules/structs/user_email.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/user_gpgkey.go b/modules/structs/user_gpgkey.go
index a2ebf7df93..ff9b0aea1d 100644
--- a/modules/structs/user_gpgkey.go
+++ b/modules/structs/user_gpgkey.go
@@ -1,6 +1,5 @@
// Copyright 2017 Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/structs/user_key.go b/modules/structs/user_key.go
index ee487607c3..08eed59a89 100644
--- a/modules/structs/user_key.go
+++ b/modules/structs/user_key.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package structs
diff --git a/modules/svg/discover_bindata.go b/modules/svg/discover_bindata.go
index cca1de76a7..b6abd294f1 100644
--- a/modules/svg/discover_bindata.go
+++ b/modules/svg/discover_bindata.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/svg/discover_nobindata.go b/modules/svg/discover_nobindata.go
index ef01fbcc3e..da7ab7b98f 100644
--- a/modules/svg/discover_nobindata.go
+++ b/modules/svg/discover_nobindata.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !bindata
diff --git a/modules/svg/svg.go b/modules/svg/svg.go
index 4e13d92d41..e0f0a263f3 100644
--- a/modules/svg/svg.go
+++ b/modules/svg/svg.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package svg
diff --git a/modules/sync/exclusive_pool.go b/modules/sync/exclusive_pool.go
index 7c1a8930ce..fbfc1f2292 100644
--- a/modules/sync/exclusive_pool.go
+++ b/modules/sync/exclusive_pool.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package sync
diff --git a/modules/sync/status_pool.go b/modules/sync/status_pool.go
index 99e5ce9cb3..6f075d54b7 100644
--- a/modules/sync/status_pool.go
+++ b/modules/sync/status_pool.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package sync
diff --git a/modules/sync/status_pool_test.go b/modules/sync/status_pool_test.go
index b388c50db2..e2e48862f5 100644
--- a/modules/sync/status_pool_test.go
+++ b/modules/sync/status_pool_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package sync
diff --git a/modules/system/appstate.go b/modules/system/appstate.go
index deee8cd029..765501d432 100644
--- a/modules/system/appstate.go
+++ b/modules/system/appstate.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system
diff --git a/modules/system/appstate_test.go b/modules/system/appstate_test.go
index fb0c2aaf9f..65a6e50003 100644
--- a/modules/system/appstate_test.go
+++ b/modules/system/appstate_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system
diff --git a/modules/system/db.go b/modules/system/db.go
index b1c283c488..3f2e4c59bb 100644
--- a/modules/system/db.go
+++ b/modules/system/db.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system
diff --git a/modules/system/item_runtime.go b/modules/system/item_runtime.go
index e022a0daad..ded52c1426 100644
--- a/modules/system/item_runtime.go
+++ b/modules/system/item_runtime.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package system
diff --git a/modules/templates/base.go b/modules/templates/base.go
index d234d531f3..e0f8350afb 100644
--- a/modules/templates/base.go
+++ b/modules/templates/base.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package templates
diff --git a/modules/templates/dynamic.go b/modules/templates/dynamic.go
index a86e71a8c8..7d25a61fed 100644
--- a/modules/templates/dynamic.go
+++ b/modules/templates/dynamic.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !bindata
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 95671e791a..5fa9e17c8a 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -1,7 +1,6 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package templates
diff --git a/modules/templates/helper_test.go b/modules/templates/helper_test.go
index 5ebae7afef..ec83e9ac33 100644
--- a/modules/templates/helper_test.go
+++ b/modules/templates/helper_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package templates
diff --git a/modules/templates/htmlrenderer.go b/modules/templates/htmlrenderer.go
index 81ea660161..7ab523822b 100644
--- a/modules/templates/htmlrenderer.go
+++ b/modules/templates/htmlrenderer.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package templates
diff --git a/modules/templates/mailer.go b/modules/templates/mailer.go
index 0cac1280f3..a257e7c1da 100644
--- a/modules/templates/mailer.go
+++ b/modules/templates/mailer.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package templates
diff --git a/modules/templates/static.go b/modules/templates/static.go
index 7f7cbe702f..7ebb327ae6 100644
--- a/modules/templates/static.go
+++ b/modules/templates/static.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/templates/templates_bindata.go b/modules/templates/templates_bindata.go
index bcb2cbaf3f..6f1d3cf539 100644
--- a/modules/templates/templates_bindata.go
+++ b/modules/templates/templates_bindata.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build bindata
diff --git a/modules/templates/vars/vars.go b/modules/templates/vars/vars.go
index a22ea4d777..cc9d0e976f 100644
--- a/modules/templates/vars/vars.go
+++ b/modules/templates/vars/vars.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package vars
diff --git a/modules/templates/vars/vars_test.go b/modules/templates/vars/vars_test.go
index 1cd7669c00..8f421d9e4b 100644
--- a/modules/templates/vars/vars_test.go
+++ b/modules/templates/vars/vars_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package vars
diff --git a/modules/test/context_tests.go b/modules/test/context_tests.go
index 963f79c3c6..61e49adb76 100644
--- a/modules/test/context_tests.go
+++ b/modules/test/context_tests.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package test
diff --git a/modules/test/utils.go b/modules/test/utils.go
index ed1628ab47..7686d3f289 100644
--- a/modules/test/utils.go
+++ b/modules/test/utils.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package test
diff --git a/modules/timeutil/executable.go b/modules/timeutil/executable.go
index 1875b63349..57ae8b2a9d 100644
--- a/modules/timeutil/executable.go
+++ b/modules/timeutil/executable.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package timeutil
diff --git a/modules/timeutil/language.go b/modules/timeutil/language.go
index d0380cac3d..c2f7a0e579 100644
--- a/modules/timeutil/language.go
+++ b/modules/timeutil/language.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package timeutil
diff --git a/modules/timeutil/since.go b/modules/timeutil/since.go
index 8473d45051..295ba7c10e 100644
--- a/modules/timeutil/since.go
+++ b/modules/timeutil/since.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package timeutil
diff --git a/modules/timeutil/since_test.go b/modules/timeutil/since_test.go
index 9350b5e96b..2e1dde00f6 100644
--- a/modules/timeutil/since_test.go
+++ b/modules/timeutil/since_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package timeutil
diff --git a/modules/timeutil/timestamp.go b/modules/timeutil/timestamp.go
index 36b2aff575..4618db9a76 100644
--- a/modules/timeutil/timestamp.go
+++ b/modules/timeutil/timestamp.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package timeutil
diff --git a/modules/translation/i18n/errors.go b/modules/translation/i18n/errors.go
index a81b0bc1ac..7f64ccf908 100644
--- a/modules/translation/i18n/errors.go
+++ b/modules/translation/i18n/errors.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package i18n
diff --git a/modules/translation/i18n/format.go b/modules/translation/i18n/format.go
index 3fb9e6d6d0..637209ad80 100644
--- a/modules/translation/i18n/format.go
+++ b/modules/translation/i18n/format.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package i18n
diff --git a/modules/translation/i18n/i18n.go b/modules/translation/i18n/i18n.go
index d8ed43a1cd..4048c9acd2 100644
--- a/modules/translation/i18n/i18n.go
+++ b/modules/translation/i18n/i18n.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package i18n
diff --git a/modules/translation/i18n/i18n_test.go b/modules/translation/i18n/i18n_test.go
index 0f4605c1bb..76a91522ba 100644
--- a/modules/translation/i18n/i18n_test.go
+++ b/modules/translation/i18n/i18n_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package i18n
diff --git a/modules/translation/i18n/localestore.go b/modules/translation/i18n/localestore.go
index 853519e224..90f574127d 100644
--- a/modules/translation/i18n/localestore.go
+++ b/modules/translation/i18n/localestore.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package i18n
diff --git a/modules/translation/translation.go b/modules/translation/translation.go
index fc311aa61b..5a1009bfa3 100644
--- a/modules/translation/translation.go
+++ b/modules/translation/translation.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package translation
diff --git a/modules/typesniffer/typesniffer.go b/modules/typesniffer/typesniffer.go
index e50928e8c2..c9fef953ce 100644
--- a/modules/typesniffer/typesniffer.go
+++ b/modules/typesniffer/typesniffer.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package typesniffer
diff --git a/modules/typesniffer/typesniffer_test.go b/modules/typesniffer/typesniffer_test.go
index a3b47c4598..dbce94fc3b 100644
--- a/modules/typesniffer/typesniffer_test.go
+++ b/modules/typesniffer/typesniffer_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package typesniffer
diff --git a/modules/updatechecker/update_checker.go b/modules/updatechecker/update_checker.go
index 816fb3764c..bc3f93aad7 100644
--- a/modules/updatechecker/update_checker.go
+++ b/modules/updatechecker/update_checker.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package updatechecker
diff --git a/modules/upload/upload.go b/modules/upload/upload.go
index 734b3a6acc..cd10715864 100644
--- a/modules/upload/upload.go
+++ b/modules/upload/upload.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package upload
diff --git a/modules/upload/upload_test.go b/modules/upload/upload_test.go
index d258b04f77..f2c3242e9a 100644
--- a/modules/upload/upload_test.go
+++ b/modules/upload/upload_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package upload
diff --git a/modules/uri/uri.go b/modules/uri/uri.go
index 74410f43f9..768bc662ce 100644
--- a/modules/uri/uri.go
+++ b/modules/uri/uri.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package uri
diff --git a/modules/uri/uri_test.go b/modules/uri/uri_test.go
index 8cadd6b918..11b915c261 100644
--- a/modules/uri/uri_test.go
+++ b/modules/uri/uri_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package uri
diff --git a/modules/user/user.go b/modules/user/user.go
index af49d7b06a..eee401a23f 100644
--- a/modules/user/user.go
+++ b/modules/user/user.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/modules/user/user_test.go b/modules/user/user_test.go
index 3b3758efc0..9129ae79a1 100644
--- a/modules/user/user_test.go
+++ b/modules/user/user_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/modules/util/compare.go b/modules/util/compare.go
index 49891ef024..9ac778dfd3 100644
--- a/modules/util/compare.go
+++ b/modules/util/compare.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/error.go b/modules/util/error.go
index 08e491dbaf..63bd447bf3 100644
--- a/modules/util/error.go
+++ b/modules/util/error.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/file_unix.go b/modules/util/file_unix.go
index ec9d4ec167..79a29c8b3b 100644
--- a/modules/util/file_unix.go
+++ b/modules/util/file_unix.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/modules/util/file_unix_test.go b/modules/util/file_unix_test.go
index 41311aa13f..87d6c2f09a 100644
--- a/modules/util/file_unix_test.go
+++ b/modules/util/file_unix_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/modules/util/file_windows.go b/modules/util/file_windows.go
index 6ad3e88ba5..77a33d3c49 100644
--- a/modules/util/file_windows.go
+++ b/modules/util/file_windows.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build windows
diff --git a/modules/util/filebuffer/file_backed_buffer.go b/modules/util/filebuffer/file_backed_buffer.go
index 8e3e138e04..bfddf90e92 100644
--- a/modules/util/filebuffer/file_backed_buffer.go
+++ b/modules/util/filebuffer/file_backed_buffer.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package filebuffer
diff --git a/modules/util/filebuffer/file_backed_buffer_test.go b/modules/util/filebuffer/file_backed_buffer_test.go
index 83ef58561d..16d5a1965f 100644
--- a/modules/util/filebuffer/file_backed_buffer_test.go
+++ b/modules/util/filebuffer/file_backed_buffer_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package filebuffer
diff --git a/modules/util/io.go b/modules/util/io.go
index d765e27733..e5d7561bef 100644
--- a/modules/util/io.go
+++ b/modules/util/io.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/legacy.go b/modules/util/legacy.go
index d319faad09..2ea293a2be 100644
--- a/modules/util/legacy.go
+++ b/modules/util/legacy.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/legacy_test.go b/modules/util/legacy_test.go
index c41f7a008c..e732094c29 100644
--- a/modules/util/legacy_test.go
+++ b/modules/util/legacy_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/paginate.go b/modules/util/paginate.go
index 2baa71664e..f2721df1ad 100644
--- a/modules/util/paginate.go
+++ b/modules/util/paginate.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/paginate_test.go b/modules/util/paginate_test.go
index 3657efc919..6e69dd19cc 100644
--- a/modules/util/paginate_test.go
+++ b/modules/util/paginate_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/path.go b/modules/util/path.go
index 3d4ddec21c..03013f7133 100644
--- a/modules/util/path.go
+++ b/modules/util/path.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/path_test.go b/modules/util/path_test.go
index b0ea448a1c..5794df1ebf 100644
--- a/modules/util/path_test.go
+++ b/modules/util/path_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/remove.go b/modules/util/remove.go
index d05ee9fe4a..d1e38faf5f 100644
--- a/modules/util/remove.go
+++ b/modules/util/remove.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/sanitize.go b/modules/util/sanitize.go
index 685b2699b0..f1ea2574f1 100644
--- a/modules/util/sanitize.go
+++ b/modules/util/sanitize.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/sanitize_test.go b/modules/util/sanitize_test.go
index 78166cfdff..0bcfd45ca4 100644
--- a/modules/util/sanitize_test.go
+++ b/modules/util/sanitize_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/sec_to_time.go b/modules/util/sec_to_time.go
index 13461915e6..017ed45f8c 100644
--- a/modules/util/sec_to_time.go
+++ b/modules/util/sec_to_time.go
@@ -1,6 +1,5 @@
// Copyright 2022 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/sec_to_time_test.go b/modules/util/sec_to_time_test.go
index 1e256aa865..4d1213a52c 100644
--- a/modules/util/sec_to_time_test.go
+++ b/modules/util/sec_to_time_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/shellquote.go b/modules/util/shellquote.go
index 5a12c2e261..434dc4236e 100644
--- a/modules/util/shellquote.go
+++ b/modules/util/shellquote.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/shellquote_test.go b/modules/util/shellquote_test.go
index be6ba372fd..969998c592 100644
--- a/modules/util/shellquote_test.go
+++ b/modules/util/shellquote_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/slice.go b/modules/util/slice.go
index 552f5b866a..17345cbc49 100644
--- a/modules/util/slice.go
+++ b/modules/util/slice.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/string.go b/modules/util/string.go
index 2da2bc5dc4..f2def7b0ec 100644
--- a/modules/util/string.go
+++ b/modules/util/string.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/string_test.go b/modules/util/string_test.go
index 49de29ab67..0a4a8bbcfb 100644
--- a/modules/util/string_test.go
+++ b/modules/util/string_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/timer.go b/modules/util/timer.go
index b682f376d9..daf96bda7e 100644
--- a/modules/util/timer.go
+++ b/modules/util/timer.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/truncate.go b/modules/util/truncate.go
index 2e6f7f68b0..032a6c0872 100644
--- a/modules/util/truncate.go
+++ b/modules/util/truncate.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/truncate_test.go b/modules/util/truncate_test.go
index e505a6ee4a..912bfb3d5f 100644
--- a/modules/util/truncate_test.go
+++ b/modules/util/truncate_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/url.go b/modules/util/url.go
index 96c66df92b..75fcf634a9 100644
--- a/modules/util/url.go
+++ b/modules/util/url.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/util.go b/modules/util/util.go
index 6df47ca568..9d3a8dcfac 100644
--- a/modules/util/util.go
+++ b/modules/util/util.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/util/util_test.go b/modules/util/util_test.go
index 91b0ef9455..34fe070d22 100644
--- a/modules/util/util_test.go
+++ b/modules/util/util_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package util
diff --git a/modules/validation/binding.go b/modules/validation/binding.go
index c054fbe7b6..ef0d01e80f 100644
--- a/modules/validation/binding.go
+++ b/modules/validation/binding.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/validation/binding_test.go b/modules/validation/binding_test.go
index aa8a765524..9ca93784a8 100644
--- a/modules/validation/binding_test.go
+++ b/modules/validation/binding_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/validation/glob_pattern_test.go b/modules/validation/glob_pattern_test.go
index cbaed7e66a..1bf622e61d 100644
--- a/modules/validation/glob_pattern_test.go
+++ b/modules/validation/glob_pattern_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/validation/helpers.go b/modules/validation/helpers.go
index 8e49c7855e..3381846b86 100644
--- a/modules/validation/helpers.go
+++ b/modules/validation/helpers.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/validation/helpers_test.go b/modules/validation/helpers_test.go
index 9bdbdb4a77..52f383f698 100644
--- a/modules/validation/helpers_test.go
+++ b/modules/validation/helpers_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/validation/refname_test.go b/modules/validation/refname_test.go
index 2d6458b9b5..3af7387c47 100644
--- a/modules/validation/refname_test.go
+++ b/modules/validation/refname_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/validation/regex_pattern_test.go b/modules/validation/regex_pattern_test.go
index afe1bcf425..efcb276734 100644
--- a/modules/validation/regex_pattern_test.go
+++ b/modules/validation/regex_pattern_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/validation/validurl_test.go b/modules/validation/validurl_test.go
index 3cb6206602..39f7fa5d65 100644
--- a/modules/validation/validurl_test.go
+++ b/modules/validation/validurl_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package validation
diff --git a/modules/watcher/watcher.go b/modules/watcher/watcher.go
index d737f6ccbb..75d062d7aa 100644
--- a/modules/watcher/watcher.go
+++ b/modules/watcher/watcher.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package watcher
diff --git a/modules/web/middleware/binding.go b/modules/web/middleware/binding.go
index cced9717be..733f00a1d5 100644
--- a/modules/web/middleware/binding.go
+++ b/modules/web/middleware/binding.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/cookie.go b/modules/web/middleware/cookie.go
index b5904d6713..7c1aaf6daf 100644
--- a/modules/web/middleware/cookie.go
+++ b/modules/web/middleware/cookie.go
@@ -1,7 +1,6 @@
// Copyright 2020 The Macaron Authors
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/data.go b/modules/web/middleware/data.go
index 7de686498a..43189940ee 100644
--- a/modules/web/middleware/data.go
+++ b/modules/web/middleware/data.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/flash.go b/modules/web/middleware/flash.go
index d1d4a864e3..f2d7cc692d 100644
--- a/modules/web/middleware/flash.go
+++ b/modules/web/middleware/flash.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/locale.go b/modules/web/middleware/locale.go
index f4018527c0..f60be4bbdb 100644
--- a/modules/web/middleware/locale.go
+++ b/modules/web/middleware/locale.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/request.go b/modules/web/middleware/request.go
index f620da5eea..34add27214 100644
--- a/modules/web/middleware/request.go
+++ b/modules/web/middleware/request.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/route.go b/modules/web/route.go
index 4341b1bf5d..cd72aabae5 100644
--- a/modules/web/route.go
+++ b/modules/web/route.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/modules/web/route_test.go b/modules/web/route_test.go
index 801afe92c9..232444cb83 100644
--- a/modules/web/route_test.go
+++ b/modules/web/route_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/modules/web/routing/context.go b/modules/web/routing/context.go
index 7e263db5a2..0d5e765543 100644
--- a/modules/web/routing/context.go
+++ b/modules/web/routing/context.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/funcinfo.go b/modules/web/routing/funcinfo.go
index 9bb38af1c8..499bc2c7aa 100644
--- a/modules/web/routing/funcinfo.go
+++ b/modules/web/routing/funcinfo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/funcinfo_test.go b/modules/web/routing/funcinfo_test.go
index 9cea7e2817..2ab5960373 100644
--- a/modules/web/routing/funcinfo_test.go
+++ b/modules/web/routing/funcinfo_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/logger.go b/modules/web/routing/logger.go
index cf3b50725d..d1b0ff0cda 100644
--- a/modules/web/routing/logger.go
+++ b/modules/web/routing/logger.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/logger_manager.go b/modules/web/routing/logger_manager.go
index 7715b0b5d3..aa25ec3a27 100644
--- a/modules/web/routing/logger_manager.go
+++ b/modules/web/routing/logger_manager.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/requestrecord.go b/modules/web/routing/requestrecord.go
index 5e225f32e4..34a2d33893 100644
--- a/modules/web/routing/requestrecord.go
+++ b/modules/web/routing/requestrecord.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/wrap.go b/modules/web/wrap.go
index b55b876069..0ff9529fae 100644
--- a/modules/web/wrap.go
+++ b/modules/web/wrap.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/modules/web/wrap_convert.go b/modules/web/wrap_convert.go
index 9084cfa074..6778e208cf 100644
--- a/modules/web/wrap_convert.go
+++ b/modules/web/wrap_convert.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/routers/api/packages/api.go b/routers/api/packages/api.go
index 0d8b9ce61e..b523725c48 100644
--- a/routers/api/packages/api.go
+++ b/routers/api/packages/api.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/routers/api/packages/composer/api.go b/routers/api/packages/composer/api.go
index ed52d16513..a3bcf80417 100644
--- a/routers/api/packages/composer/api.go
+++ b/routers/api/packages/composer/api.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package composer
diff --git a/routers/api/packages/composer/composer.go b/routers/api/packages/composer/composer.go
index a19433c6f0..c6e0593b42 100644
--- a/routers/api/packages/composer/composer.go
+++ b/routers/api/packages/composer/composer.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package composer
diff --git a/routers/api/packages/conan/auth.go b/routers/api/packages/conan/auth.go
index 00855a97a4..fe33e2c740 100644
--- a/routers/api/packages/conan/auth.go
+++ b/routers/api/packages/conan/auth.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/routers/api/packages/conan/conan.go b/routers/api/packages/conan/conan.go
index e7c891b35f..d538cc7d39 100644
--- a/routers/api/packages/conan/conan.go
+++ b/routers/api/packages/conan/conan.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/routers/api/packages/conan/search.go b/routers/api/packages/conan/search.go
index 39dd6362aa..2bcf9df162 100644
--- a/routers/api/packages/conan/search.go
+++ b/routers/api/packages/conan/search.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/routers/api/packages/container/auth.go b/routers/api/packages/container/auth.go
index 770068a3bf..948001dcad 100644
--- a/routers/api/packages/container/auth.go
+++ b/routers/api/packages/container/auth.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/routers/api/packages/container/blob.go b/routers/api/packages/container/blob.go
index 06b450de02..fd5819d506 100644
--- a/routers/api/packages/container/blob.go
+++ b/routers/api/packages/container/blob.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/routers/api/packages/container/container.go b/routers/api/packages/container/container.go
index 7af06a9171..cbbdf8eb88 100644
--- a/routers/api/packages/container/container.go
+++ b/routers/api/packages/container/container.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/routers/api/packages/container/errors.go b/routers/api/packages/container/errors.go
index 0efbb081ca..1a9b0f32d2 100644
--- a/routers/api/packages/container/errors.go
+++ b/routers/api/packages/container/errors.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/routers/api/packages/container/manifest.go b/routers/api/packages/container/manifest.go
index 64c958c2d0..350933f3d2 100644
--- a/routers/api/packages/container/manifest.go
+++ b/routers/api/packages/container/manifest.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/routers/api/packages/generic/generic.go b/routers/api/packages/generic/generic.go
index 1c233da20f..5fba02cacd 100644
--- a/routers/api/packages/generic/generic.go
+++ b/routers/api/packages/generic/generic.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package generic
diff --git a/routers/api/packages/helm/helm.go b/routers/api/packages/helm/helm.go
index 11291ca14e..af863bc4b9 100644
--- a/routers/api/packages/helm/helm.go
+++ b/routers/api/packages/helm/helm.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package helm
diff --git a/routers/api/packages/helper/helper.go b/routers/api/packages/helper/helper.go
index 8cde84023f..660aaec1a3 100644
--- a/routers/api/packages/helper/helper.go
+++ b/routers/api/packages/helper/helper.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package helper
diff --git a/routers/api/packages/maven/api.go b/routers/api/packages/maven/api.go
index 4ca541dd6f..167fe42b56 100644
--- a/routers/api/packages/maven/api.go
+++ b/routers/api/packages/maven/api.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package maven
diff --git a/routers/api/packages/maven/maven.go b/routers/api/packages/maven/maven.go
index 3125062b92..0ca3fa1793 100644
--- a/routers/api/packages/maven/maven.go
+++ b/routers/api/packages/maven/maven.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package maven
diff --git a/routers/api/packages/npm/api.go b/routers/api/packages/npm/api.go
index 490387a0e4..f8d50f03cf 100644
--- a/routers/api/packages/npm/api.go
+++ b/routers/api/packages/npm/api.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package npm
diff --git a/routers/api/packages/npm/npm.go b/routers/api/packages/npm/npm.go
index 6c11286a86..4306d5ba36 100644
--- a/routers/api/packages/npm/npm.go
+++ b/routers/api/packages/npm/npm.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package npm
diff --git a/routers/api/packages/nuget/api_v2.go b/routers/api/packages/nuget/api_v2.go
index 60a5d9c0e4..c545d0fc4e 100644
--- a/routers/api/packages/nuget/api_v2.go
+++ b/routers/api/packages/nuget/api_v2.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/routers/api/packages/nuget/api_v3.go b/routers/api/packages/nuget/api_v3.go
index bb3e447bd6..b5900b6c0b 100644
--- a/routers/api/packages/nuget/api_v3.go
+++ b/routers/api/packages/nuget/api_v3.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/routers/api/packages/nuget/auth.go b/routers/api/packages/nuget/auth.go
index 1dad452648..2be102a38b 100644
--- a/routers/api/packages/nuget/auth.go
+++ b/routers/api/packages/nuget/auth.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/routers/api/packages/nuget/links.go b/routers/api/packages/nuget/links.go
index 618b54ae8d..1b02e46184 100644
--- a/routers/api/packages/nuget/links.go
+++ b/routers/api/packages/nuget/links.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/routers/api/packages/nuget/nuget.go b/routers/api/packages/nuget/nuget.go
index 06aaca596d..d6f7d1d7f6 100644
--- a/routers/api/packages/nuget/nuget.go
+++ b/routers/api/packages/nuget/nuget.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/routers/api/packages/pub/pub.go b/routers/api/packages/pub/pub.go
index 26cb9fbb9a..247950a214 100644
--- a/routers/api/packages/pub/pub.go
+++ b/routers/api/packages/pub/pub.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pub
diff --git a/routers/api/packages/pypi/pypi.go b/routers/api/packages/pypi/pypi.go
index 76801a92e1..826f58095e 100644
--- a/routers/api/packages/pypi/pypi.go
+++ b/routers/api/packages/pypi/pypi.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pypi
diff --git a/routers/api/packages/pypi/pypi_test.go b/routers/api/packages/pypi/pypi_test.go
index 56e327a347..3023692177 100644
--- a/routers/api/packages/pypi/pypi_test.go
+++ b/routers/api/packages/pypi/pypi_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pypi
diff --git a/routers/api/packages/rubygems/rubygems.go b/routers/api/packages/rubygems/rubygems.go
index f0b00f42c3..c1a10b5e78 100644
--- a/routers/api/packages/rubygems/rubygems.go
+++ b/routers/api/packages/rubygems/rubygems.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package rubygems
diff --git a/routers/api/packages/vagrant/vagrant.go b/routers/api/packages/vagrant/vagrant.go
index 746a2b19ba..7b76ab79b0 100644
--- a/routers/api/packages/vagrant/vagrant.go
+++ b/routers/api/packages/vagrant/vagrant.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package vagrant
diff --git a/routers/api/v1/activitypub/person.go b/routers/api/v1/activitypub/person.go
index 542ae7e120..8085580985 100644
--- a/routers/api/v1/activitypub/person.go
+++ b/routers/api/v1/activitypub/person.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/routers/api/v1/activitypub/reqsignature.go b/routers/api/v1/activitypub/reqsignature.go
index 649cb488b3..2d945c27a5 100644
--- a/routers/api/v1/activitypub/reqsignature.go
+++ b/routers/api/v1/activitypub/reqsignature.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/routers/api/v1/admin/adopt.go b/routers/api/v1/admin/adopt.go
index 48222f89eb..0e4e498e98 100644
--- a/routers/api/v1/admin/adopt.go
+++ b/routers/api/v1/admin/adopt.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/api/v1/admin/cron.go b/routers/api/v1/admin/cron.go
index 0c4333b892..cc8c6c9e23 100644
--- a/routers/api/v1/admin/cron.go
+++ b/routers/api/v1/admin/cron.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/api/v1/admin/org.go b/routers/api/v1/admin/org.go
index 727f3193cf..9d0725e3e8 100644
--- a/routers/api/v1/admin/org.go
+++ b/routers/api/v1/admin/org.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/api/v1/admin/repo.go b/routers/api/v1/admin/repo.go
index 712ced89c9..83ed06e49b 100644
--- a/routers/api/v1/admin/repo.go
+++ b/routers/api/v1/admin/repo.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go
index 1a4b020011..183ade8a0a 100644
--- a/routers/api/v1/admin/user.go
+++ b/routers/api/v1/admin/user.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index e41fccb635..3f5cf431f8 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package v1 Gitea API.
//
diff --git a/routers/api/v1/auth.go b/routers/api/v1/auth.go
index becf45f643..e44271ba14 100644
--- a/routers/api/v1/auth.go
+++ b/routers/api/v1/auth.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/routers/api/v1/auth_windows.go b/routers/api/v1/auth_windows.go
index d41c4bb223..3514e21baa 100644
--- a/routers/api/v1/auth_windows.go
+++ b/routers/api/v1/auth_windows.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1
diff --git a/routers/api/v1/misc/markdown.go b/routers/api/v1/misc/markdown.go
index eb0b78a5ba..3ff42f08d6 100644
--- a/routers/api/v1/misc/markdown.go
+++ b/routers/api/v1/misc/markdown.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package misc
diff --git a/routers/api/v1/misc/markdown_test.go b/routers/api/v1/misc/markdown_test.go
index 65ce060278..025f2f44b0 100644
--- a/routers/api/v1/misc/markdown_test.go
+++ b/routers/api/v1/misc/markdown_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package misc
diff --git a/routers/api/v1/misc/nodeinfo.go b/routers/api/v1/misc/nodeinfo.go
index a4ba440356..319c3483e1 100644
--- a/routers/api/v1/misc/nodeinfo.go
+++ b/routers/api/v1/misc/nodeinfo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package misc
diff --git a/routers/api/v1/misc/signing.go b/routers/api/v1/misc/signing.go
index 1070cc78cb..2ca9813e15 100644
--- a/routers/api/v1/misc/signing.go
+++ b/routers/api/v1/misc/signing.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package misc
diff --git a/routers/api/v1/misc/version.go b/routers/api/v1/misc/version.go
index b8c7d4f9ad..83fa35219a 100644
--- a/routers/api/v1/misc/version.go
+++ b/routers/api/v1/misc/version.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package misc
diff --git a/routers/api/v1/notify/notifications.go b/routers/api/v1/notify/notifications.go
index 9948f90a12..3b6a9bfdc2 100644
--- a/routers/api/v1/notify/notifications.go
+++ b/routers/api/v1/notify/notifications.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package notify
diff --git a/routers/api/v1/notify/repo.go b/routers/api/v1/notify/repo.go
index 6d9664400a..a2e72cb48d 100644
--- a/routers/api/v1/notify/repo.go
+++ b/routers/api/v1/notify/repo.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package notify
diff --git a/routers/api/v1/notify/threads.go b/routers/api/v1/notify/threads.go
index f8e4960912..47d0e49721 100644
--- a/routers/api/v1/notify/threads.go
+++ b/routers/api/v1/notify/threads.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package notify
diff --git a/routers/api/v1/notify/user.go b/routers/api/v1/notify/user.go
index 5f4d8b35c2..725eeff017 100644
--- a/routers/api/v1/notify/user.go
+++ b/routers/api/v1/notify/user.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package notify
diff --git a/routers/api/v1/org/hook.go b/routers/api/v1/org/hook.go
index f8ea5a876c..2e9d7c656a 100644
--- a/routers/api/v1/org/hook.go
+++ b/routers/api/v1/org/hook.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/api/v1/org/label.go b/routers/api/v1/org/label.go
index a67bd56dfc..c95a6be3d2 100644
--- a/routers/api/v1/org/label.go
+++ b/routers/api/v1/org/label.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/api/v1/org/member.go b/routers/api/v1/org/member.go
index 85fe2ded4d..fe07143958 100644
--- a/routers/api/v1/org/member.go
+++ b/routers/api/v1/org/member.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/api/v1/org/org.go b/routers/api/v1/org/org.go
index 5a8b253a20..cf985d44fb 100644
--- a/routers/api/v1/org/org.go
+++ b/routers/api/v1/org/org.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go
index b2bcc4d586..f233494fa5 100644
--- a/routers/api/v1/org/team.go
+++ b/routers/api/v1/org/team.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/api/v1/packages/package.go b/routers/api/v1/packages/package.go
index 29fa6c85a5..433a79939c 100644
--- a/routers/api/v1/packages/package.go
+++ b/routers/api/v1/packages/package.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/routers/api/v1/repo/blob.go b/routers/api/v1/repo/blob.go
index 035f2dc1e1..d0004f0686 100644
--- a/routers/api/v1/repo/blob.go
+++ b/routers/api/v1/repo/blob.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/branch.go b/routers/api/v1/repo/branch.go
index d10a308df3..f5b1eb1c42 100644
--- a/routers/api/v1/repo/branch.go
+++ b/routers/api/v1/repo/branch.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/collaborators.go b/routers/api/v1/repo/collaborators.go
index 0e6236216c..383193daa7 100644
--- a/routers/api/v1/repo/collaborators.go
+++ b/routers/api/v1/repo/collaborators.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/commits.go b/routers/api/v1/repo/commits.go
index 4e77c3f2f5..682044407d 100644
--- a/routers/api/v1/repo/commits.go
+++ b/routers/api/v1/repo/commits.go
@@ -1,7 +1,6 @@
// Copyright 2018 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go
index aba5b1f9e7..623fe18e5d 100644
--- a/routers/api/v1/repo/file.go
+++ b/routers/api/v1/repo/file.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/fork.go b/routers/api/v1/repo/fork.go
index c0a79d1a63..e2cb4400f5 100644
--- a/routers/api/v1/repo/fork.go
+++ b/routers/api/v1/repo/fork.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/git_hook.go b/routers/api/v1/repo/git_hook.go
index 0b4e09cadd..963cbc719f 100644
--- a/routers/api/v1/repo/git_hook.go
+++ b/routers/api/v1/repo/git_hook.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/git_ref.go b/routers/api/v1/repo/git_ref.go
index 47f46df339..34d2dcfcc8 100644
--- a/routers/api/v1/repo/git_ref.go
+++ b/routers/api/v1/repo/git_ref.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/hook.go b/routers/api/v1/repo/hook.go
index 57fff7d326..9b84fb2b30 100644
--- a/routers/api/v1/repo/hook.go
+++ b/routers/api/v1/repo/hook.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/hook_test.go b/routers/api/v1/repo/hook_test.go
index fd9a165bf3..34dc990c3d 100644
--- a/routers/api/v1/repo/hook_test.go
+++ b/routers/api/v1/repo/hook_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go
index 60f9859e10..c539a36238 100644
--- a/routers/api/v1/repo/issue.go
+++ b/routers/api/v1/repo/issue.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/issue_comment.go b/routers/api/v1/repo/issue_comment.go
index a5da091727..7f6f24605d 100644
--- a/routers/api/v1/repo/issue_comment.go
+++ b/routers/api/v1/repo/issue_comment.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/issue_label.go b/routers/api/v1/repo/issue_label.go
index 091f1ce27c..04d70913c7 100644
--- a/routers/api/v1/repo/issue_label.go
+++ b/routers/api/v1/repo/issue_label.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/issue_reaction.go b/routers/api/v1/repo/issue_reaction.go
index fb7fd713b3..dcfe7967b5 100644
--- a/routers/api/v1/repo/issue_reaction.go
+++ b/routers/api/v1/repo/issue_reaction.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/issue_stopwatch.go b/routers/api/v1/repo/issue_stopwatch.go
index 941b22e454..110139cc36 100644
--- a/routers/api/v1/repo/issue_stopwatch.go
+++ b/routers/api/v1/repo/issue_stopwatch.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/issue_subscription.go b/routers/api/v1/repo/issue_subscription.go
index 5e03e42b4c..32832d83f7 100644
--- a/routers/api/v1/repo/issue_subscription.go
+++ b/routers/api/v1/repo/issue_subscription.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/issue_tracked_time.go b/routers/api/v1/repo/issue_tracked_time.go
index e3abb973be..6786d23a93 100644
--- a/routers/api/v1/repo/issue_tracked_time.go
+++ b/routers/api/v1/repo/issue_tracked_time.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/key.go b/routers/api/v1/repo/key.go
index 14f6aa6148..cff6850469 100644
--- a/routers/api/v1/repo/key.go
+++ b/routers/api/v1/repo/key.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go
index 8b1e298668..8b49becd37 100644
--- a/routers/api/v1/repo/label.go
+++ b/routers/api/v1/repo/label.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/language.go b/routers/api/v1/repo/language.go
index ca803cb68b..12f1761ad0 100644
--- a/routers/api/v1/repo/language.go
+++ b/routers/api/v1/repo/language.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/main_test.go b/routers/api/v1/repo/main_test.go
index 1f91a24937..543fb922d6 100644
--- a/routers/api/v1/repo/main_test.go
+++ b/routers/api/v1/repo/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/migrate.go b/routers/api/v1/repo/migrate.go
index aeef862b1f..a0316c9a78 100644
--- a/routers/api/v1/repo/migrate.go
+++ b/routers/api/v1/repo/migrate.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/milestone.go b/routers/api/v1/repo/milestone.go
index 0e8800510b..2b80b4df73 100644
--- a/routers/api/v1/repo/milestone.go
+++ b/routers/api/v1/repo/milestone.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/mirror.go b/routers/api/v1/repo/mirror.go
index 91e5e0c031..b693c0e7db 100644
--- a/routers/api/v1/repo/mirror.go
+++ b/routers/api/v1/repo/mirror.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/notes.go b/routers/api/v1/repo/notes.go
index ee3133adec..91eebb4c72 100644
--- a/routers/api/v1/repo/notes.go
+++ b/routers/api/v1/repo/notes.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/patch.go b/routers/api/v1/repo/patch.go
index 40afe2d92b..6fbb9e7b3a 100644
--- a/routers/api/v1/repo/patch.go
+++ b/routers/api/v1/repo/patch.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/pull.go b/routers/api/v1/repo/pull.go
index fba7ed6462..53505e998c 100644
--- a/routers/api/v1/repo/pull.go
+++ b/routers/api/v1/repo/pull.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/pull_review.go b/routers/api/v1/repo/pull_review.go
index df88e2a57b..2f357afb79 100644
--- a/routers/api/v1/repo/pull_review.go
+++ b/routers/api/v1/repo/pull_review.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go
index 60cc19d565..4e1927ea3d 100644
--- a/routers/api/v1/repo/release.go
+++ b/routers/api/v1/repo/release.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/release_attachment.go b/routers/api/v1/repo/release_attachment.go
index 02f85d384a..88632b4637 100644
--- a/routers/api/v1/repo/release_attachment.go
+++ b/routers/api/v1/repo/release_attachment.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/release_tags.go b/routers/api/v1/repo/release_tags.go
index 77395bb469..5e1f1860ae 100644
--- a/routers/api/v1/repo/release_tags.go
+++ b/routers/api/v1/repo/release_tags.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go
index 29febe751c..e8603d1917 100644
--- a/routers/api/v1/repo/repo.go
+++ b/routers/api/v1/repo/repo.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/repo_test.go b/routers/api/v1/repo/repo_test.go
index 9acc0ee7d2..59c3bde819 100644
--- a/routers/api/v1/repo/repo_test.go
+++ b/routers/api/v1/repo/repo_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/star.go b/routers/api/v1/repo/star.go
index c78c3cc512..a3d1105873 100644
--- a/routers/api/v1/repo/star.go
+++ b/routers/api/v1/repo/star.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/status.go b/routers/api/v1/repo/status.go
index 97ef69a6ea..84827a91ad 100644
--- a/routers/api/v1/repo/status.go
+++ b/routers/api/v1/repo/status.go
@@ -1,6 +1,5 @@
// Copyright 2017 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/subscriber.go b/routers/api/v1/repo/subscriber.go
index c1aaa24193..5cc94abd48 100644
--- a/routers/api/v1/repo/subscriber.go
+++ b/routers/api/v1/repo/subscriber.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/tag.go b/routers/api/v1/repo/tag.go
index ab31866162..6b38a08c2f 100644
--- a/routers/api/v1/repo/tag.go
+++ b/routers/api/v1/repo/tag.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/teams.go b/routers/api/v1/repo/teams.go
index f485f2086e..1ea3ae0008 100644
--- a/routers/api/v1/repo/teams.go
+++ b/routers/api/v1/repo/teams.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/topic.go b/routers/api/v1/repo/topic.go
index 64dc763dc3..316b190259 100644
--- a/routers/api/v1/repo/topic.go
+++ b/routers/api/v1/repo/topic.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/transfer.go b/routers/api/v1/repo/transfer.go
index 067a4ebe19..a40419e13e 100644
--- a/routers/api/v1/repo/transfer.go
+++ b/routers/api/v1/repo/transfer.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/tree.go b/routers/api/v1/repo/tree.go
index b8294ebe31..9df96204cb 100644
--- a/routers/api/v1/repo/tree.go
+++ b/routers/api/v1/repo/tree.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/wiki.go b/routers/api/v1/repo/wiki.go
index 734a550a71..0b55a9b281 100644
--- a/routers/api/v1/repo/wiki.go
+++ b/routers/api/v1/repo/wiki.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/settings/settings.go b/routers/api/v1/settings/settings.go
index 36f93893a8..02bda1309d 100644
--- a/routers/api/v1/settings/settings.go
+++ b/routers/api/v1/settings/settings.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package settings
diff --git a/routers/api/v1/swagger/activitypub.go b/routers/api/v1/swagger/activitypub.go
index afc0c05057..91341669da 100644
--- a/routers/api/v1/swagger/activitypub.go
+++ b/routers/api/v1/swagger/activitypub.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/app.go b/routers/api/v1/swagger/app.go
index 9783abe1a0..6a08b11874 100644
--- a/routers/api/v1/swagger/app.go
+++ b/routers/api/v1/swagger/app.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/cron.go b/routers/api/v1/swagger/cron.go
index 85f2ed0e35..00cfbe0adb 100644
--- a/routers/api/v1/swagger/cron.go
+++ b/routers/api/v1/swagger/cron.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/issue.go b/routers/api/v1/swagger/issue.go
index 09e7077b20..62458a3424 100644
--- a/routers/api/v1/swagger/issue.go
+++ b/routers/api/v1/swagger/issue.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/key.go b/routers/api/v1/swagger/key.go
index c3da37af63..8390833589 100644
--- a/routers/api/v1/swagger/key.go
+++ b/routers/api/v1/swagger/key.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/misc.go b/routers/api/v1/swagger/misc.go
index 1d3c257efa..a4052a6a76 100644
--- a/routers/api/v1/swagger/misc.go
+++ b/routers/api/v1/swagger/misc.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/nodeinfo.go b/routers/api/v1/swagger/nodeinfo.go
index c1ecf3a3f3..8650dfa092 100644
--- a/routers/api/v1/swagger/nodeinfo.go
+++ b/routers/api/v1/swagger/nodeinfo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/notify.go b/routers/api/v1/swagger/notify.go
index cd30d496e0..743d807a0a 100644
--- a/routers/api/v1/swagger/notify.go
+++ b/routers/api/v1/swagger/notify.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go
index e8cfc0706f..979b184075 100644
--- a/routers/api/v1/swagger/options.go
+++ b/routers/api/v1/swagger/options.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/org.go b/routers/api/v1/swagger/org.go
index d98e821ba7..0105446b00 100644
--- a/routers/api/v1/swagger/org.go
+++ b/routers/api/v1/swagger/org.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/package.go b/routers/api/v1/swagger/package.go
index 2a1f057314..eada12d1ea 100644
--- a/routers/api/v1/swagger/package.go
+++ b/routers/api/v1/swagger/package.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/repo.go b/routers/api/v1/swagger/repo.go
index 642b1b7b91..bd867213a6 100644
--- a/routers/api/v1/swagger/repo.go
+++ b/routers/api/v1/swagger/repo.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/settings.go b/routers/api/v1/swagger/settings.go
index 4bf153cb9c..a9466699df 100644
--- a/routers/api/v1/swagger/settings.go
+++ b/routers/api/v1/swagger/settings.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/user.go b/routers/api/v1/swagger/user.go
index 857bdc2a14..fb6d185ee7 100644
--- a/routers/api/v1/swagger/user.go
+++ b/routers/api/v1/swagger/user.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go
index 14f1592591..6cb7b812b2 100644
--- a/routers/api/v1/user/app.go
+++ b/routers/api/v1/user/app.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/email.go b/routers/api/v1/user/email.go
index 31c13172fc..84823aaed2 100644
--- a/routers/api/v1/user/email.go
+++ b/routers/api/v1/user/email.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/follower.go b/routers/api/v1/user/follower.go
index 22f8f40e1c..38ddf990c4 100644
--- a/routers/api/v1/user/follower.go
+++ b/routers/api/v1/user/follower.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/gpg_key.go b/routers/api/v1/user/gpg_key.go
index b87cf0041e..7c91d2ac65 100644
--- a/routers/api/v1/user/gpg_key.go
+++ b/routers/api/v1/user/gpg_key.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/helper.go b/routers/api/v1/user/helper.go
index ae7fa5248e..28f600ad92 100644
--- a/routers/api/v1/user/helper.go
+++ b/routers/api/v1/user/helper.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/key.go b/routers/api/v1/user/key.go
index 71a2c910a6..d00eec85e4 100644
--- a/routers/api/v1/user/key.go
+++ b/routers/api/v1/user/key.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/repo.go b/routers/api/v1/user/repo.go
index d1917a9938..2af70f9ad3 100644
--- a/routers/api/v1/user/repo.go
+++ b/routers/api/v1/user/repo.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/settings.go b/routers/api/v1/user/settings.go
index f00bf8c268..89bfd83efc 100644
--- a/routers/api/v1/user/settings.go
+++ b/routers/api/v1/user/settings.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/star.go b/routers/api/v1/user/star.go
index 96748c630d..2ef5806974 100644
--- a/routers/api/v1/user/star.go
+++ b/routers/api/v1/user/star.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go
index 69197aef23..8a21c2c7ca 100644
--- a/routers/api/v1/user/user.go
+++ b/routers/api/v1/user/user.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/watch.go b/routers/api/v1/user/watch.go
index 7765a399f3..43c097444e 100644
--- a/routers/api/v1/user/watch.go
+++ b/routers/api/v1/user/watch.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/utils/git.go b/routers/api/v1/utils/git.go
index 816f8b3595..2801dee8ba 100644
--- a/routers/api/v1/utils/git.go
+++ b/routers/api/v1/utils/git.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package utils
diff --git a/routers/api/v1/utils/hook.go b/routers/api/v1/utils/hook.go
index aa922f4f5b..7faf609ae8 100644
--- a/routers/api/v1/utils/hook.go
+++ b/routers/api/v1/utils/hook.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package utils
diff --git a/routers/api/v1/utils/page.go b/routers/api/v1/utils/page.go
index 608bec7395..ef5806fa92 100644
--- a/routers/api/v1/utils/page.go
+++ b/routers/api/v1/utils/page.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package utils
diff --git a/routers/common/db.go b/routers/common/db.go
index 99d66f93e8..ac082ab36f 100644
--- a/routers/common/db.go
+++ b/routers/common/db.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package common
diff --git a/routers/common/middleware.go b/routers/common/middleware.go
index 6ea1e1dfbe..0c7838b0ef 100644
--- a/routers/common/middleware.go
+++ b/routers/common/middleware.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package common
diff --git a/routers/common/repo.go b/routers/common/repo.go
index 340eb1809f..4b04ddae34 100644
--- a/routers/common/repo.go
+++ b/routers/common/repo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package common
diff --git a/routers/init.go b/routers/init.go
index fecc5c439c..670191debc 100644
--- a/routers/init.go
+++ b/routers/init.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routers
diff --git a/routers/install/install.go b/routers/install/install.go
index 184dc5bae1..ab37f9ba35 100644
--- a/routers/install/install.go
+++ b/routers/install/install.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package install
diff --git a/routers/install/routes.go b/routers/install/routes.go
index 7617477827..9aa5a88d24 100644
--- a/routers/install/routes.go
+++ b/routers/install/routes.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package install
diff --git a/routers/install/routes_test.go b/routers/install/routes_test.go
index e69d2d15df..35b5e5e916 100644
--- a/routers/install/routes_test.go
+++ b/routers/install/routes_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package install
diff --git a/routers/install/setting.go b/routers/install/setting.go
index c4912f1124..b76219f45d 100644
--- a/routers/install/setting.go
+++ b/routers/install/setting.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package install
diff --git a/routers/private/default_branch.go b/routers/private/default_branch.go
index 55ffef43f3..268ebbe443 100644
--- a/routers/private/default_branch.go
+++ b/routers/private/default_branch.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/hook_post_receive.go b/routers/private/hook_post_receive.go
index 1370e5302b..9c69f9c345 100644
--- a/routers/private/hook_post_receive.go
+++ b/routers/private/hook_post_receive.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/hook_pre_receive.go b/routers/private/hook_pre_receive.go
index 86bdf60ab9..52a82bfa44 100644
--- a/routers/private/hook_pre_receive.go
+++ b/routers/private/hook_pre_receive.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/hook_proc_receive.go b/routers/private/hook_proc_receive.go
index 0653f8b0d2..05921e6f58 100644
--- a/routers/private/hook_proc_receive.go
+++ b/routers/private/hook_proc_receive.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/hook_verification.go b/routers/private/hook_verification.go
index 8a2d1cf33d..7b9550dfdd 100644
--- a/routers/private/hook_verification.go
+++ b/routers/private/hook_verification.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/internal.go b/routers/private/internal.go
index f8e451e80f..d5c85480a7 100644
--- a/routers/private/internal.go
+++ b/routers/private/internal.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/internal_repo.go b/routers/private/internal_repo.go
index c50d2a01a7..2e6f87d6b0 100644
--- a/routers/private/internal_repo.go
+++ b/routers/private/internal_repo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/key.go b/routers/private/key.go
index 9977492c63..b536019dd7 100644
--- a/routers/private/key.go
+++ b/routers/private/key.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/mail.go b/routers/private/mail.go
index 255e1d901d..622a01dd8f 100644
--- a/routers/private/mail.go
+++ b/routers/private/mail.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/routers/private/manager.go b/routers/private/manager.go
index e7f08ac455..f15da298d6 100644
--- a/routers/private/manager.go
+++ b/routers/private/manager.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/routers/private/manager_process.go b/routers/private/manager_process.go
index e12bbee18b..a5993bf371 100644
--- a/routers/private/manager_process.go
+++ b/routers/private/manager_process.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/routers/private/manager_unix.go b/routers/private/manager_unix.go
index 43cbdec01c..09ced33b8d 100644
--- a/routers/private/manager_unix.go
+++ b/routers/private/manager_unix.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/routers/private/manager_windows.go b/routers/private/manager_windows.go
index 2b72ee952d..b5382c7d91 100644
--- a/routers/private/manager_windows.go
+++ b/routers/private/manager_windows.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build windows
diff --git a/routers/private/restore_repo.go b/routers/private/restore_repo.go
index 34e06e51c2..97ac9a3c5a 100644
--- a/routers/private/restore_repo.go
+++ b/routers/private/restore_repo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/routers/private/serv.go b/routers/private/serv.go
index ddb2e6aa8b..676d83d9e1 100644
--- a/routers/private/serv.go
+++ b/routers/private/serv.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/ssh_log.go b/routers/private/ssh_log.go
index 2f1793a0e0..54604ad554 100644
--- a/routers/private/ssh_log.go
+++ b/routers/private/ssh_log.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/routers/utils/utils.go b/routers/utils/utils.go
index 66eaa1d9ce..d6856fceac 100644
--- a/routers/utils/utils.go
+++ b/routers/utils/utils.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package utils
diff --git a/routers/utils/utils_test.go b/routers/utils/utils_test.go
index 42cf948e30..6d19214c88 100644
--- a/routers/utils/utils_test.go
+++ b/routers/utils/utils_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package utils
diff --git a/routers/web/admin/admin.go b/routers/web/admin/admin.go
index d0664eb780..0a51000c70 100644
--- a/routers/web/admin/admin.go
+++ b/routers/web/admin/admin.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/web/admin/admin_test.go b/routers/web/admin/admin_test.go
index 1bc43998b2..2b65ab3ea3 100644
--- a/routers/web/admin/admin_test.go
+++ b/routers/web/admin/admin_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/web/admin/applications.go b/routers/web/admin/applications.go
index c7a9c3100f..745d17ff2a 100644
--- a/routers/web/admin/applications.go
+++ b/routers/web/admin/applications.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/web/admin/auths.go b/routers/web/admin/auths.go
index 7ea8a52809..1bc166902c 100644
--- a/routers/web/admin/auths.go
+++ b/routers/web/admin/auths.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/web/admin/config.go b/routers/web/admin/config.go
index 792eec8d56..eaa02588ca 100644
--- a/routers/web/admin/config.go
+++ b/routers/web/admin/config.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/web/admin/emails.go b/routers/web/admin/emails.go
index 9482ae0123..c16158c6ae 100644
--- a/routers/web/admin/emails.go
+++ b/routers/web/admin/emails.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/web/admin/hooks.go b/routers/web/admin/hooks.go
index bf71cb5595..e8db9a3ded 100644
--- a/routers/web/admin/hooks.go
+++ b/routers/web/admin/hooks.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/web/admin/main_test.go b/routers/web/admin/main_test.go
index 4e6ad4d743..ea79830fa1 100644
--- a/routers/web/admin/main_test.go
+++ b/routers/web/admin/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/web/admin/notice.go b/routers/web/admin/notice.go
index f5ec294cc3..f60cf90b3c 100644
--- a/routers/web/admin/notice.go
+++ b/routers/web/admin/notice.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/web/admin/orgs.go b/routers/web/admin/orgs.go
index 6081ab9b1c..a4eb0af58d 100644
--- a/routers/web/admin/orgs.go
+++ b/routers/web/admin/orgs.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/web/admin/packages.go b/routers/web/admin/packages.go
index 5de8922e6f..80cec51275 100644
--- a/routers/web/admin/packages.go
+++ b/routers/web/admin/packages.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/web/admin/repos.go b/routers/web/admin/repos.go
index 17b00975ec..b488bbbd14 100644
--- a/routers/web/admin/repos.go
+++ b/routers/web/admin/repos.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/web/admin/users.go b/routers/web/admin/users.go
index 5cdfb8142e..399633e39f 100644
--- a/routers/web/admin/users.go
+++ b/routers/web/admin/users.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/web/admin/users_test.go b/routers/web/admin/users_test.go
index da67cd5cb4..ed58a54eef 100644
--- a/routers/web/admin/users_test.go
+++ b/routers/web/admin/users_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/web/auth.go b/routers/web/auth.go
index a771643b66..1ca860ecc8 100644
--- a/routers/web/auth.go
+++ b/routers/web/auth.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/routers/web/auth/2fa.go b/routers/web/auth/2fa.go
index c61922cd9d..2aacf23037 100644
--- a/routers/web/auth/2fa.go
+++ b/routers/web/auth/2fa.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/routers/web/auth/auth.go b/routers/web/auth/auth.go
index 133a7cced1..565a15bc11 100644
--- a/routers/web/auth/auth.go
+++ b/routers/web/auth/auth.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/routers/web/auth/linkaccount.go b/routers/web/auth/linkaccount.go
index c36eaee078..6c409c6b9d 100644
--- a/routers/web/auth/linkaccount.go
+++ b/routers/web/auth/linkaccount.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/routers/web/auth/main_test.go b/routers/web/auth/main_test.go
index 71f522fb07..8295515ba9 100644
--- a/routers/web/auth/main_test.go
+++ b/routers/web/auth/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/routers/web/auth/oauth.go b/routers/web/auth/oauth.go
index d845f21a33..2b872178ca 100644
--- a/routers/web/auth/oauth.go
+++ b/routers/web/auth/oauth.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/routers/web/auth/oauth_test.go b/routers/web/auth/oauth_test.go
index 48400846d2..5116b4fc71 100644
--- a/routers/web/auth/oauth_test.go
+++ b/routers/web/auth/oauth_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/routers/web/auth/openid.go b/routers/web/auth/openid.go
index eedf3f5c1b..f544b65356 100644
--- a/routers/web/auth/openid.go
+++ b/routers/web/auth/openid.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/routers/web/auth/password.go b/routers/web/auth/password.go
index c21ca9cf69..e546c77bc9 100644
--- a/routers/web/auth/password.go
+++ b/routers/web/auth/password.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/routers/web/auth/webauthn.go b/routers/web/auth/webauthn.go
index 917cbdd57b..b60007bc03 100644
--- a/routers/web/auth/webauthn.go
+++ b/routers/web/auth/webauthn.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/routers/web/auth_windows.go b/routers/web/auth_windows.go
index f404fd3771..3125d7ce9a 100644
--- a/routers/web/auth_windows.go
+++ b/routers/web/auth_windows.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/routers/web/base.go b/routers/web/base.go
index 2441d6d517..b0d8a7c3f1 100644
--- a/routers/web/base.go
+++ b/routers/web/base.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/routers/web/events/events.go b/routers/web/events/events.go
index d8c6f38d02..1a5a162c1a 100644
--- a/routers/web/events/events.go
+++ b/routers/web/events/events.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package events
diff --git a/routers/web/explore/code.go b/routers/web/explore/code.go
index 38474255d1..942b1f8378 100644
--- a/routers/web/explore/code.go
+++ b/routers/web/explore/code.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package explore
diff --git a/routers/web/explore/org.go b/routers/web/explore/org.go
index eb6972fad3..c9fb05ff3a 100644
--- a/routers/web/explore/org.go
+++ b/routers/web/explore/org.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package explore
diff --git a/routers/web/explore/repo.go b/routers/web/explore/repo.go
index 8d4ecf1bc0..5271e39bbc 100644
--- a/routers/web/explore/repo.go
+++ b/routers/web/explore/repo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package explore
diff --git a/routers/web/explore/topic.go b/routers/web/explore/topic.go
index 39b87f2498..50df9d1113 100644
--- a/routers/web/explore/topic.go
+++ b/routers/web/explore/topic.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package explore
diff --git a/routers/web/explore/user.go b/routers/web/explore/user.go
index ea3d83e8d6..bb6aa3dc77 100644
--- a/routers/web/explore/user.go
+++ b/routers/web/explore/user.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package explore
diff --git a/routers/web/feed/convert.go b/routers/web/feed/convert.go
index c6fc352b64..e0e481d1a5 100644
--- a/routers/web/feed/convert.go
+++ b/routers/web/feed/convert.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package feed
diff --git a/routers/web/feed/profile.go b/routers/web/feed/profile.go
index ffa34572bc..7641769192 100644
--- a/routers/web/feed/profile.go
+++ b/routers/web/feed/profile.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package feed
diff --git a/routers/web/feed/repo.go b/routers/web/feed/repo.go
index 027f90872f..1d24b58800 100644
--- a/routers/web/feed/repo.go
+++ b/routers/web/feed/repo.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package feed
diff --git a/routers/web/goget.go b/routers/web/goget.go
index a58739fe42..b8e264c441 100644
--- a/routers/web/goget.go
+++ b/routers/web/goget.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/routers/web/healthcheck/check.go b/routers/web/healthcheck/check.go
index 57707b6121..1142a0aec5 100644
--- a/routers/web/healthcheck/check.go
+++ b/routers/web/healthcheck/check.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package healthcheck
diff --git a/routers/web/home.go b/routers/web/home.go
index 7640243ba0..ecfecf6e67 100644
--- a/routers/web/home.go
+++ b/routers/web/home.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/routers/web/metrics.go b/routers/web/metrics.go
index c7e01b8faa..46c13f0a24 100644
--- a/routers/web/metrics.go
+++ b/routers/web/metrics.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/routers/web/misc/markdown.go b/routers/web/misc/markdown.go
index 0567cbb30c..aaa3ed0781 100644
--- a/routers/web/misc/markdown.go
+++ b/routers/web/misc/markdown.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package misc
diff --git a/routers/web/misc/swagger.go b/routers/web/misc/swagger.go
index e46d4194b4..72c09a3780 100644
--- a/routers/web/misc/swagger.go
+++ b/routers/web/misc/swagger.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package misc
diff --git a/routers/web/nodeinfo.go b/routers/web/nodeinfo.go
index 2ee94e35e8..01b71e7086 100644
--- a/routers/web/nodeinfo.go
+++ b/routers/web/nodeinfo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/routers/web/org/home.go b/routers/web/org/home.go
index 6bd8a89d12..4cc364acd3 100644
--- a/routers/web/org/home.go
+++ b/routers/web/org/home.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/web/org/members.go b/routers/web/org/members.go
index ec5a98fc6a..3be2a39c2e 100644
--- a/routers/web/org/members.go
+++ b/routers/web/org/members.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/web/org/org.go b/routers/web/org/org.go
index 32d8787995..f67e7edb4c 100644
--- a/routers/web/org/org.go
+++ b/routers/web/org/org.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/web/org/org_labels.go b/routers/web/org/org_labels.go
index 185e1eee31..1c910a93a5 100644
--- a/routers/web/org/org_labels.go
+++ b/routers/web/org/org_labels.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/web/org/setting.go b/routers/web/org/setting.go
index 3f7bc59856..899e554ba0 100644
--- a/routers/web/org/setting.go
+++ b/routers/web/org/setting.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/web/org/setting_oauth2.go b/routers/web/org/setting_oauth2.go
index 47d1141f34..9bf4280b07 100644
--- a/routers/web/org/setting_oauth2.go
+++ b/routers/web/org/setting_oauth2.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/web/org/teams.go b/routers/web/org/teams.go
index 399d07fe47..d12e2fcc45 100644
--- a/routers/web/org/teams.go
+++ b/routers/web/org/teams.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/web/repo/activity.go b/routers/web/repo/activity.go
index 316cbcd95f..3d030edaca 100644
--- a/routers/web/repo/activity.go
+++ b/routers/web/repo/activity.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/attachment.go b/routers/web/repo/attachment.go
index 190dc6c2c7..d12fa60daf 100644
--- a/routers/web/repo/attachment.go
+++ b/routers/web/repo/attachment.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/blame.go b/routers/web/repo/blame.go
index 52d5c3c6e6..50bfa9d3bd 100644
--- a/routers/web/repo/blame.go
+++ b/routers/web/repo/blame.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/branch.go b/routers/web/repo/branch.go
index 43e6d43134..61fb24d058 100644
--- a/routers/web/repo/branch.go
+++ b/routers/web/repo/branch.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/cherry_pick.go b/routers/web/repo/cherry_pick.go
index d2a4e19d0e..2056ad1b37 100644
--- a/routers/web/repo/cherry_pick.go
+++ b/routers/web/repo/cherry_pick.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/commit.go b/routers/web/repo/commit.go
index a6553256b0..efc216661c 100644
--- a/routers/web/repo/commit.go
+++ b/routers/web/repo/commit.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/compare.go b/routers/web/repo/compare.go
index 0fb8e44725..a9d6eea1eb 100644
--- a/routers/web/repo/compare.go
+++ b/routers/web/repo/compare.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/download.go b/routers/web/repo/download.go
index cd2d305de6..c1e9ba58b9 100644
--- a/routers/web/repo/download.go
+++ b/routers/web/repo/download.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/editor.go b/routers/web/repo/editor.go
index e8fc020450..7b064adfc5 100644
--- a/routers/web/repo/editor.go
+++ b/routers/web/repo/editor.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/editor_test.go b/routers/web/repo/editor_test.go
index ac0c385897..1e53aac9b0 100644
--- a/routers/web/repo/editor_test.go
+++ b/routers/web/repo/editor_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/find.go b/routers/web/repo/find.go
index 7117c00076..daefe59c8f 100644
--- a/routers/web/repo/find.go
+++ b/routers/web/repo/find.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/http.go b/routers/web/repo/http.go
index 1ec781bb13..d2450066e3 100644
--- a/routers/web/repo/http.go
+++ b/routers/web/repo/http.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/http_test.go b/routers/web/repo/http_test.go
index 58ac1c07a1..5ba8de3d63 100644
--- a/routers/web/repo/http_test.go
+++ b/routers/web/repo/http_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go
index 318d9af703..2a0a849b5b 100644
--- a/routers/web/repo/issue.go
+++ b/routers/web/repo/issue.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/issue_content_history.go b/routers/web/repo/issue_content_history.go
index a9386d274a..dee506deac 100644
--- a/routers/web/repo/issue_content_history.go
+++ b/routers/web/repo/issue_content_history.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/issue_dependency.go b/routers/web/repo/issue_dependency.go
index d8d934ea1c..41c127be91 100644
--- a/routers/web/repo/issue_dependency.go
+++ b/routers/web/repo/issue_dependency.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/issue_label.go b/routers/web/repo/issue_label.go
index 560f25a0af..01421dc927 100644
--- a/routers/web/repo/issue_label.go
+++ b/routers/web/repo/issue_label.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/issue_label_test.go b/routers/web/repo/issue_label_test.go
index ea078e215c..a62d2afaa8 100644
--- a/routers/web/repo/issue_label_test.go
+++ b/routers/web/repo/issue_label_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/issue_lock.go b/routers/web/repo/issue_lock.go
index a89ea47571..10db968a21 100644
--- a/routers/web/repo/issue_lock.go
+++ b/routers/web/repo/issue_lock.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/issue_stopwatch.go b/routers/web/repo/issue_stopwatch.go
index 97d4441a27..d2a7a12a1f 100644
--- a/routers/web/repo/issue_stopwatch.go
+++ b/routers/web/repo/issue_stopwatch.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/issue_test.go b/routers/web/repo/issue_test.go
index ad82fe0f36..f1d0aac72f 100644
--- a/routers/web/repo/issue_test.go
+++ b/routers/web/repo/issue_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/issue_timetrack.go b/routers/web/repo/issue_timetrack.go
index 817a2c6d20..6e9d3673cf 100644
--- a/routers/web/repo/issue_timetrack.go
+++ b/routers/web/repo/issue_timetrack.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/issue_watch.go b/routers/web/repo/issue_watch.go
index 5210ecf777..c23dbf0622 100644
--- a/routers/web/repo/issue_watch.go
+++ b/routers/web/repo/issue_watch.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/lfs.go b/routers/web/repo/lfs.go
index 9bf4307bfe..82e0055ab2 100644
--- a/routers/web/repo/lfs.go
+++ b/routers/web/repo/lfs.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/main_test.go b/routers/web/repo/main_test.go
index a1ca3c3bc7..e3a09a95bd 100644
--- a/routers/web/repo/main_test.go
+++ b/routers/web/repo/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/middlewares.go b/routers/web/repo/middlewares.go
index c9e8eb4a89..9a4aa3382c 100644
--- a/routers/web/repo/middlewares.go
+++ b/routers/web/repo/middlewares.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/migrate.go b/routers/web/repo/migrate.go
index 393f8ed3d9..bbc349a0a5 100644
--- a/routers/web/repo/migrate.go
+++ b/routers/web/repo/migrate.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/milestone.go b/routers/web/repo/milestone.go
index 1e75bd79fb..0427156397 100644
--- a/routers/web/repo/milestone.go
+++ b/routers/web/repo/milestone.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/packages.go b/routers/web/repo/packages.go
index 57db19aa32..83324711da 100644
--- a/routers/web/repo/packages.go
+++ b/routers/web/repo/packages.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/patch.go b/routers/web/repo/patch.go
index cd731337ba..27199ba410 100644
--- a/routers/web/repo/patch.go
+++ b/routers/web/repo/patch.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/projects.go b/routers/web/repo/projects.go
index fb2d25a22b..73f0916346 100644
--- a/routers/web/repo/projects.go
+++ b/routers/web/repo/projects.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/projects_test.go b/routers/web/repo/projects_test.go
index 62fb045740..c712902ea9 100644
--- a/routers/web/repo/projects_test.go
+++ b/routers/web/repo/projects_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go
index 870bc1773b..682bc64ca2 100644
--- a/routers/web/repo/pull.go
+++ b/routers/web/repo/pull.go
@@ -1,8 +1,7 @@
// Copyright 2018 The Gitea Authors.
// Copyright 2014 The Gogs Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/pull_review.go b/routers/web/repo/pull_review.go
index bbaacc234c..9f4cdde864 100644
--- a/routers/web/repo/pull_review.go
+++ b/routers/web/repo/pull_review.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/release.go b/routers/web/repo/release.go
index 0373d5b158..9ef44eb582 100644
--- a/routers/web/repo/release.go
+++ b/routers/web/repo/release.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/release_test.go b/routers/web/repo/release_test.go
index 16371fc860..81ae58178f 100644
--- a/routers/web/repo/release_test.go
+++ b/routers/web/repo/release_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/render.go b/routers/web/repo/render.go
index 28a6d2f429..f07b4e8c11 100644
--- a/routers/web/repo/render.go
+++ b/routers/web/repo/render.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go
index 17e600182d..0a8a1eb4e8 100644
--- a/routers/web/repo/repo.go
+++ b/routers/web/repo/repo.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/search.go b/routers/web/repo/search.go
index 3d1835c7c3..137f38d409 100644
--- a/routers/web/repo/search.go
+++ b/routers/web/repo/search.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/setting.go b/routers/web/repo/setting.go
index 2b5691ce88..9e47d0bb12 100644
--- a/routers/web/repo/setting.go
+++ b/routers/web/repo/setting.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/setting_protected_branch.go b/routers/web/repo/setting_protected_branch.go
index c4cd3486aa..975873a9ef 100644
--- a/routers/web/repo/setting_protected_branch.go
+++ b/routers/web/repo/setting_protected_branch.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/settings_test.go b/routers/web/repo/settings_test.go
index 4acd7df5b8..3bb202505c 100644
--- a/routers/web/repo/settings_test.go
+++ b/routers/web/repo/settings_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/tag.go b/routers/web/repo/tag.go
index 4d46716c30..26df1dbf6c 100644
--- a/routers/web/repo/tag.go
+++ b/routers/web/repo/tag.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/topic.go b/routers/web/repo/topic.go
index efbfc62d56..4c0b38bd91 100644
--- a/routers/web/repo/topic.go
+++ b/routers/web/repo/topic.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/treelist.go b/routers/web/repo/treelist.go
index 80f43a0c40..c364e7090f 100644
--- a/routers/web/repo/treelist.go
+++ b/routers/web/repo/treelist.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go
index 1d1ba25064..c7f97410ff 100644
--- a/routers/web/repo/view.go
+++ b/routers/web/repo/view.go
@@ -1,7 +1,6 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/view_test.go b/routers/web/repo/view_test.go
index 803906b217..73ba118823 100644
--- a/routers/web/repo/view_test.go
+++ b/routers/web/repo/view_test.go
@@ -1,7 +1,6 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/webhook.go b/routers/web/repo/webhook.go
index 5496496e80..677fbc92ed 100644
--- a/routers/web/repo/webhook.go
+++ b/routers/web/repo/webhook.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/wiki.go b/routers/web/repo/wiki.go
index 24d851762b..885f84543c 100644
--- a/routers/web/repo/wiki.go
+++ b/routers/web/repo/wiki.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/repo/wiki_test.go b/routers/web/repo/wiki_test.go
index 34f466854f..4699f5379a 100644
--- a/routers/web/repo/wiki_test.go
+++ b/routers/web/repo/wiki_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/web/swagger_json.go b/routers/web/swagger_json.go
index 82d72698c6..2d626c558e 100644
--- a/routers/web/swagger_json.go
+++ b/routers/web/swagger_json.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/routers/web/user/avatar.go b/routers/web/user/avatar.go
index 05896299d2..20c2ef3e47 100644
--- a/routers/web/user/avatar.go
+++ b/routers/web/user/avatar.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/web/user/code.go b/routers/web/user/code.go
index 89bd23588b..0f95932061 100644
--- a/routers/web/user/code.go
+++ b/routers/web/user/code.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/web/user/home.go b/routers/web/user/home.go
index e67202b284..fc4c919de3 100644
--- a/routers/web/user/home.go
+++ b/routers/web/user/home.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/web/user/home_test.go b/routers/web/user/home_test.go
index 36e99bba5e..a75b3573a0 100644
--- a/routers/web/user/home_test.go
+++ b/routers/web/user/home_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/web/user/main_test.go b/routers/web/user/main_test.go
index 517957a85c..925482a1d2 100644
--- a/routers/web/user/main_test.go
+++ b/routers/web/user/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/web/user/notification.go b/routers/web/user/notification.go
index 323422a1b9..b21d52bbfd 100644
--- a/routers/web/user/notification.go
+++ b/routers/web/user/notification.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/web/user/package.go b/routers/web/user/package.go
index 7be37b6a50..ae4c239c70 100644
--- a/routers/web/user/package.go
+++ b/routers/web/user/package.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go
index 982290e0ab..0002d56de0 100644
--- a/routers/web/user/profile.go
+++ b/routers/web/user/profile.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/web/user/search.go b/routers/web/user/search.go
index 328c7bade4..093de406a9 100644
--- a/routers/web/user/search.go
+++ b/routers/web/user/search.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/web/user/setting/account.go b/routers/web/user/setting/account.go
index 8b95caf2fc..95b3b4040d 100644
--- a/routers/web/user/setting/account.go
+++ b/routers/web/user/setting/account.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/routers/web/user/setting/account_test.go b/routers/web/user/setting/account_test.go
index 005603e7ac..5fce41f065 100644
--- a/routers/web/user/setting/account_test.go
+++ b/routers/web/user/setting/account_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/routers/web/user/setting/adopt.go b/routers/web/user/setting/adopt.go
index a92aa6e989..0aaf5920bc 100644
--- a/routers/web/user/setting/adopt.go
+++ b/routers/web/user/setting/adopt.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/routers/web/user/setting/applications.go b/routers/web/user/setting/applications.go
index e9572a07a6..23c215738d 100644
--- a/routers/web/user/setting/applications.go
+++ b/routers/web/user/setting/applications.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/routers/web/user/setting/keys.go b/routers/web/user/setting/keys.go
index a8d07ea47a..89be795599 100644
--- a/routers/web/user/setting/keys.go
+++ b/routers/web/user/setting/keys.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/routers/web/user/setting/main_test.go b/routers/web/user/setting/main_test.go
index d4df464abd..c3938b3201 100644
--- a/routers/web/user/setting/main_test.go
+++ b/routers/web/user/setting/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/routers/web/user/setting/oauth2.go b/routers/web/user/setting/oauth2.go
index 0cc05dd040..93142c21fc 100644
--- a/routers/web/user/setting/oauth2.go
+++ b/routers/web/user/setting/oauth2.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/routers/web/user/setting/oauth2_common.go b/routers/web/user/setting/oauth2_common.go
index 49ee5c7c2f..f6ad1b2b38 100644
--- a/routers/web/user/setting/oauth2_common.go
+++ b/routers/web/user/setting/oauth2_common.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/routers/web/user/setting/profile.go b/routers/web/user/setting/profile.go
index ba3f5b5080..e46724f2e7 100644
--- a/routers/web/user/setting/profile.go
+++ b/routers/web/user/setting/profile.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package setting
diff --git a/routers/web/user/setting/security/2fa.go b/routers/web/user/setting/security/2fa.go
index 5fd81bae41..0cecb1aa37 100644
--- a/routers/web/user/setting/security/2fa.go
+++ b/routers/web/user/setting/security/2fa.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package security
diff --git a/routers/web/user/setting/security/openid.go b/routers/web/user/setting/security/openid.go
index a378c8bf64..08fcb6b623 100644
--- a/routers/web/user/setting/security/openid.go
+++ b/routers/web/user/setting/security/openid.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package security
diff --git a/routers/web/user/setting/security/security.go b/routers/web/user/setting/security/security.go
index 57ea24eeb1..db6faaed6e 100644
--- a/routers/web/user/setting/security/security.go
+++ b/routers/web/user/setting/security/security.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package security
diff --git a/routers/web/user/setting/security/webauthn.go b/routers/web/user/setting/security/webauthn.go
index bb2d1f733e..ba05996a1c 100644
--- a/routers/web/user/setting/security/webauthn.go
+++ b/routers/web/user/setting/security/webauthn.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package security
diff --git a/routers/web/user/stop_watch.go b/routers/web/user/stop_watch.go
index f40d850fc1..26c7558c11 100644
--- a/routers/web/user/stop_watch.go
+++ b/routers/web/user/stop_watch.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/web/user/task.go b/routers/web/user/task.go
index 7f5ef792ad..3818682403 100644
--- a/routers/web/user/task.go
+++ b/routers/web/user/task.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/web/web.go b/routers/web/web.go
index fe5007abb7..889a89f0d4 100644
--- a/routers/web/web.go
+++ b/routers/web/web.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/routers/web/webfinger.go b/routers/web/webfinger.go
index 972182bece..935832aa1f 100644
--- a/routers/web/webfinger.go
+++ b/routers/web/webfinger.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/services/agit/agit.go b/services/agit/agit.go
index 803ff696b0..e21a1ea29d 100644
--- a/services/agit/agit.go
+++ b/services/agit/agit.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package agit
diff --git a/services/asymkey/deploy_key.go b/services/asymkey/deploy_key.go
index 4feeadd952..f5ca54b723 100644
--- a/services/asymkey/deploy_key.go
+++ b/services/asymkey/deploy_key.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/services/asymkey/main_test.go b/services/asymkey/main_test.go
index cb3d059456..3fa88340fd 100644
--- a/services/asymkey/main_test.go
+++ b/services/asymkey/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/services/asymkey/sign.go b/services/asymkey/sign.go
index a9d1e179ae..227e0bbf33 100644
--- a/services/asymkey/sign.go
+++ b/services/asymkey/sign.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/services/asymkey/ssh_key.go b/services/asymkey/ssh_key.go
index 06b20001fd..0809458107 100644
--- a/services/asymkey/ssh_key.go
+++ b/services/asymkey/ssh_key.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/services/asymkey/ssh_key_test.go b/services/asymkey/ssh_key_test.go
index 9bc23a719c..32c31a4332 100644
--- a/services/asymkey/ssh_key_test.go
+++ b/services/asymkey/ssh_key_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package asymkey
diff --git a/services/attachment/attachment.go b/services/attachment/attachment.go
index cc329f568b..522acd00a3 100644
--- a/services/attachment/attachment.go
+++ b/services/attachment/attachment.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package attachment
diff --git a/services/attachment/attachment_test.go b/services/attachment/attachment_test.go
index 561792db2f..72d1b2ab3a 100644
--- a/services/attachment/attachment_test.go
+++ b/services/attachment/attachment_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package attachment
diff --git a/services/auth/auth.go b/services/auth/auth.go
index 3a5bb9d27e..00e277c41a 100644
--- a/services/auth/auth.go
+++ b/services/auth/auth.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/services/auth/auth_test.go b/services/auth/auth_test.go
index 8a9dee6cef..f4e3cdf0d3 100644
--- a/services/auth/auth_test.go
+++ b/services/auth/auth_test.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/services/auth/basic.go b/services/auth/basic.go
index 9b32ad29af..0a82fc5b72 100644
--- a/services/auth/basic.go
+++ b/services/auth/basic.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/services/auth/group.go b/services/auth/group.go
index bbafe64b49..a9112029c5 100644
--- a/services/auth/group.go
+++ b/services/auth/group.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/services/auth/httpsign.go b/services/auth/httpsign.go
index 67053d2b77..dcdc2de83a 100644
--- a/services/auth/httpsign.go
+++ b/services/auth/httpsign.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/services/auth/interface.go b/services/auth/interface.go
index ecc9ad2ca6..d238a40856 100644
--- a/services/auth/interface.go
+++ b/services/auth/interface.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/services/auth/oauth2.go b/services/auth/oauth2.go
index 8f038d6104..da8c526382 100644
--- a/services/auth/oauth2.go
+++ b/services/auth/oauth2.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/services/auth/reverseproxy.go b/services/auth/reverseproxy.go
index 8dec1c8ea7..2d5b6611b5 100644
--- a/services/auth/reverseproxy.go
+++ b/services/auth/reverseproxy.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/services/auth/session.go b/services/auth/session.go
index 1ec94aa0af..f35fad1a0c 100644
--- a/services/auth/session.go
+++ b/services/auth/session.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/services/auth/signin.go b/services/auth/signin.go
index 3ccf68c3a7..2af15c4133 100644
--- a/services/auth/signin.go
+++ b/services/auth/signin.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/services/auth/source.go b/services/auth/source.go
index b7108292d5..aae3a78102 100644
--- a/services/auth/source.go
+++ b/services/auth/source.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/services/auth/source/db/assert_interface_test.go b/services/auth/source/db/assert_interface_test.go
index f39aaeb1e4..62387c78f0 100644
--- a/services/auth/source/db/assert_interface_test.go
+++ b/services/auth/source/db/assert_interface_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db_test
diff --git a/services/auth/source/db/authenticate.go b/services/auth/source/db/authenticate.go
index f062f66ae0..ec89984499 100644
--- a/services/auth/source/db/authenticate.go
+++ b/services/auth/source/db/authenticate.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/services/auth/source/db/source.go b/services/auth/source/db/source.go
index ecab6d5f35..3f4113c790 100644
--- a/services/auth/source/db/source.go
+++ b/services/auth/source/db/source.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package db
diff --git a/services/auth/source/ldap/assert_interface_test.go b/services/auth/source/ldap/assert_interface_test.go
index 8fc6903cf3..33347687dc 100644
--- a/services/auth/source/ldap/assert_interface_test.go
+++ b/services/auth/source/ldap/assert_interface_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ldap_test
diff --git a/services/auth/source/ldap/security_protocol.go b/services/auth/source/ldap/security_protocol.go
index bb0c7770a1..af83ce191d 100644
--- a/services/auth/source/ldap/security_protocol.go
+++ b/services/auth/source/ldap/security_protocol.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ldap
diff --git a/services/auth/source/ldap/source.go b/services/auth/source/ldap/source.go
index ad97e2dd49..dc4cb2c940 100644
--- a/services/auth/source/ldap/source.go
+++ b/services/auth/source/ldap/source.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ldap
diff --git a/services/auth/source/ldap/source_authenticate.go b/services/auth/source/ldap/source_authenticate.go
index 785cb8ed31..321cf5540d 100644
--- a/services/auth/source/ldap/source_authenticate.go
+++ b/services/auth/source/ldap/source_authenticate.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ldap
diff --git a/services/auth/source/ldap/source_group_sync.go b/services/auth/source/ldap/source_group_sync.go
index e797e015b2..95a6084922 100644
--- a/services/auth/source/ldap/source_group_sync.go
+++ b/services/auth/source/ldap/source_group_sync.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ldap
diff --git a/services/auth/source/ldap/source_search.go b/services/auth/source/ldap/source_search.go
index 6ea84ec288..6b6b56db2f 100644
--- a/services/auth/source/ldap/source_search.go
+++ b/services/auth/source/ldap/source_search.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ldap
diff --git a/services/auth/source/ldap/source_sync.go b/services/auth/source/ldap/source_sync.go
index eb5ee8463f..73e8309aca 100644
--- a/services/auth/source/ldap/source_sync.go
+++ b/services/auth/source/ldap/source_sync.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ldap
diff --git a/services/auth/source/ldap/util.go b/services/auth/source/ldap/util.go
index f27de37c87..bd11e2d119 100644
--- a/services/auth/source/ldap/util.go
+++ b/services/auth/source/ldap/util.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package ldap
diff --git a/services/auth/source/oauth2/assert_interface_test.go b/services/auth/source/oauth2/assert_interface_test.go
index 0ec7361ca8..56fe0e4aa8 100644
--- a/services/auth/source/oauth2/assert_interface_test.go
+++ b/services/auth/source/oauth2/assert_interface_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2_test
diff --git a/services/auth/source/oauth2/init.go b/services/auth/source/oauth2/init.go
index e4eedd34cb..32fe545c90 100644
--- a/services/auth/source/oauth2/init.go
+++ b/services/auth/source/oauth2/init.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/oauth2/jwtsigningkey.go b/services/auth/source/oauth2/jwtsigningkey.go
index 352f932746..93c1574379 100644
--- a/services/auth/source/oauth2/jwtsigningkey.go
+++ b/services/auth/source/oauth2/jwtsigningkey.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/oauth2/providers.go b/services/auth/source/oauth2/providers.go
index aa3ee3842d..7ba370855a 100644
--- a/services/auth/source/oauth2/providers.go
+++ b/services/auth/source/oauth2/providers.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/oauth2/providers_base.go b/services/auth/source/oauth2/providers_base.go
index b6b6d0bbd2..61654d8eaa 100644
--- a/services/auth/source/oauth2/providers_base.go
+++ b/services/auth/source/oauth2/providers_base.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/oauth2/providers_custom.go b/services/auth/source/oauth2/providers_custom.go
index c3ebdf9df0..b5fe179441 100644
--- a/services/auth/source/oauth2/providers_custom.go
+++ b/services/auth/source/oauth2/providers_custom.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/oauth2/providers_openid.go b/services/auth/source/oauth2/providers_openid.go
index 80ee56d4a4..2433cd3c7f 100644
--- a/services/auth/source/oauth2/providers_openid.go
+++ b/services/auth/source/oauth2/providers_openid.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/oauth2/providers_simple.go b/services/auth/source/oauth2/providers_simple.go
index 39d3d74f6d..731c1b59a9 100644
--- a/services/auth/source/oauth2/providers_simple.go
+++ b/services/auth/source/oauth2/providers_simple.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/oauth2/source.go b/services/auth/source/oauth2/source.go
index 457686ba1f..0abebc04ec 100644
--- a/services/auth/source/oauth2/source.go
+++ b/services/auth/source/oauth2/source.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/oauth2/source_authenticate.go b/services/auth/source/oauth2/source_authenticate.go
index fdc18411a7..e3e2a9e192 100644
--- a/services/auth/source/oauth2/source_authenticate.go
+++ b/services/auth/source/oauth2/source_authenticate.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/oauth2/source_callout.go b/services/auth/source/oauth2/source_callout.go
index 7447e5d453..8d70bee248 100644
--- a/services/auth/source/oauth2/source_callout.go
+++ b/services/auth/source/oauth2/source_callout.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/oauth2/source_name.go b/services/auth/source/oauth2/source_name.go
index 0b794ad650..eee789eff7 100644
--- a/services/auth/source/oauth2/source_name.go
+++ b/services/auth/source/oauth2/source_name.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/oauth2/source_register.go b/services/auth/source/oauth2/source_register.go
index f61de7e1d6..3527d54b65 100644
--- a/services/auth/source/oauth2/source_register.go
+++ b/services/auth/source/oauth2/source_register.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/oauth2/store.go b/services/auth/source/oauth2/store.go
index f00264f997..394bf99463 100644
--- a/services/auth/source/oauth2/store.go
+++ b/services/auth/source/oauth2/store.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/oauth2/token.go b/services/auth/source/oauth2/token.go
index 0c69913ff4..c5a064054e 100644
--- a/services/auth/source/oauth2/token.go
+++ b/services/auth/source/oauth2/token.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/oauth2/urlmapping.go b/services/auth/source/oauth2/urlmapping.go
index 43c8dde9a5..d0442d58a8 100644
--- a/services/auth/source/oauth2/urlmapping.go
+++ b/services/auth/source/oauth2/urlmapping.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oauth2
diff --git a/services/auth/source/pam/assert_interface_test.go b/services/auth/source/pam/assert_interface_test.go
index d8754cdf77..8e7648b8d3 100644
--- a/services/auth/source/pam/assert_interface_test.go
+++ b/services/auth/source/pam/assert_interface_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pam_test
diff --git a/services/auth/source/pam/source.go b/services/auth/source/pam/source.go
index 957c89dc85..96b182e185 100644
--- a/services/auth/source/pam/source.go
+++ b/services/auth/source/pam/source.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pam
diff --git a/services/auth/source/pam/source_authenticate.go b/services/auth/source/pam/source_authenticate.go
index 16ddc0598e..48cd905a0a 100644
--- a/services/auth/source/pam/source_authenticate.go
+++ b/services/auth/source/pam/source_authenticate.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pam
diff --git a/services/auth/source/smtp/assert_interface_test.go b/services/auth/source/smtp/assert_interface_test.go
index c7fae6431f..6c9cde66e1 100644
--- a/services/auth/source/smtp/assert_interface_test.go
+++ b/services/auth/source/smtp/assert_interface_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package smtp_test
diff --git a/services/auth/source/smtp/auth.go b/services/auth/source/smtp/auth.go
index e8453fde69..6446fcd706 100644
--- a/services/auth/source/smtp/auth.go
+++ b/services/auth/source/smtp/auth.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package smtp
diff --git a/services/auth/source/smtp/source.go b/services/auth/source/smtp/source.go
index 5e69f912da..2a648e421e 100644
--- a/services/auth/source/smtp/source.go
+++ b/services/auth/source/smtp/source.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package smtp
diff --git a/services/auth/source/smtp/source_authenticate.go b/services/auth/source/smtp/source_authenticate.go
index dff24d494e..00aaa8e084 100644
--- a/services/auth/source/smtp/source_authenticate.go
+++ b/services/auth/source/smtp/source_authenticate.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package smtp
diff --git a/services/auth/source/sspi/assert_interface_test.go b/services/auth/source/sspi/assert_interface_test.go
index 3344245186..03d836dd6f 100644
--- a/services/auth/source/sspi/assert_interface_test.go
+++ b/services/auth/source/sspi/assert_interface_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package sspi_test
diff --git a/services/auth/source/sspi/source.go b/services/auth/source/sspi/source.go
index e6e63ee1eb..bdd6ef451c 100644
--- a/services/auth/source/sspi/source.go
+++ b/services/auth/source/sspi/source.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package sspi
diff --git a/services/auth/sspi_windows.go b/services/auth/sspi_windows.go
index 757d596c4c..988afb4730 100644
--- a/services/auth/sspi_windows.go
+++ b/services/auth/sspi_windows.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/services/auth/sync.go b/services/auth/sync.go
index b7f3232a30..e42e8a51a7 100644
--- a/services/auth/sync.go
+++ b/services/auth/sync.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package auth
diff --git a/services/automerge/automerge.go b/services/automerge/automerge.go
index 3291ed31f0..f5bf1f4491 100644
--- a/services/automerge/automerge.go
+++ b/services/automerge/automerge.go
@@ -1,6 +1,5 @@
// Copyright 2021 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package automerge
diff --git a/services/comments/comments.go b/services/comments/comments.go
index 190b8a6725..21640d90b4 100644
--- a/services/comments/comments.go
+++ b/services/comments/comments.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package comments
diff --git a/services/context/user.go b/services/context/user.go
index 1c92d24d4a..9dc84c3ac1 100644
--- a/services/context/user.go
+++ b/services/context/user.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package context
diff --git a/services/cron/cron.go b/services/cron/cron.go
index 8e19e04416..bda8f12f12 100644
--- a/services/cron/cron.go
+++ b/services/cron/cron.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cron
diff --git a/services/cron/setting.go b/services/cron/setting.go
index eb13242e94..952a4d17ab 100644
--- a/services/cron/setting.go
+++ b/services/cron/setting.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cron
diff --git a/services/cron/tasks.go b/services/cron/tasks.go
index 6ff5964d1e..1c5493c898 100644
--- a/services/cron/tasks.go
+++ b/services/cron/tasks.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cron
diff --git a/services/cron/tasks_basic.go b/services/cron/tasks_basic.go
index ca35f5be57..acf3896b71 100644
--- a/services/cron/tasks_basic.go
+++ b/services/cron/tasks_basic.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cron
diff --git a/services/cron/tasks_extended.go b/services/cron/tasks_extended.go
index c730477cbd..4486be0c2f 100644
--- a/services/cron/tasks_extended.go
+++ b/services/cron/tasks_extended.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package cron
diff --git a/services/externalaccount/link.go b/services/externalaccount/link.go
index 95ada22542..dcdc57ee48 100644
--- a/services/externalaccount/link.go
+++ b/services/externalaccount/link.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package externalaccount
diff --git a/services/externalaccount/user.go b/services/externalaccount/user.go
index e5cd443770..87d2e02b48 100644
--- a/services/externalaccount/user.go
+++ b/services/externalaccount/user.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package externalaccount
diff --git a/services/forms/admin.go b/services/forms/admin.go
index 537b9f982c..a749f863f3 100644
--- a/services/forms/admin.go
+++ b/services/forms/admin.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package forms
diff --git a/services/forms/auth_form.go b/services/forms/auth_form.go
index 7e7c756752..0cede07f95 100644
--- a/services/forms/auth_form.go
+++ b/services/forms/auth_form.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package forms
diff --git a/services/forms/org.go b/services/forms/org.go
index c7ee911345..d753531371 100644
--- a/services/forms/org.go
+++ b/services/forms/org.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package forms
diff --git a/services/forms/repo_branch_form.go b/services/forms/repo_branch_form.go
index 011926092f..bf1183fc43 100644
--- a/services/forms/repo_branch_form.go
+++ b/services/forms/repo_branch_form.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package forms
diff --git a/services/forms/repo_form.go b/services/forms/repo_form.go
index 64f47aadd5..d4fb051d8d 100644
--- a/services/forms/repo_form.go
+++ b/services/forms/repo_form.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package forms
diff --git a/services/forms/repo_form_test.go b/services/forms/repo_form_test.go
index 198437f7ea..2c5a8e2c0f 100644
--- a/services/forms/repo_form_test.go
+++ b/services/forms/repo_form_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package forms
diff --git a/services/forms/repo_tag_form.go b/services/forms/repo_tag_form.go
index 337e7fe1ea..1209d2346f 100644
--- a/services/forms/repo_tag_form.go
+++ b/services/forms/repo_tag_form.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package forms
diff --git a/services/forms/user_form.go b/services/forms/user_form.go
index da30ae94d6..cd2c45261b 100644
--- a/services/forms/user_form.go
+++ b/services/forms/user_form.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package forms
diff --git a/services/forms/user_form_auth_openid.go b/services/forms/user_form_auth_openid.go
index 459c938f08..f95eb98405 100644
--- a/services/forms/user_form_auth_openid.go
+++ b/services/forms/user_form_auth_openid.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package forms
diff --git a/services/forms/user_form_hidden_comments.go b/services/forms/user_form_hidden_comments.go
index 35c1a6dd2a..7eb800a020 100644
--- a/services/forms/user_form_hidden_comments.go
+++ b/services/forms/user_form_hidden_comments.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package forms
diff --git a/services/forms/user_form_test.go b/services/forms/user_form_test.go
index 9f67143d12..463b39d0bf 100644
--- a/services/forms/user_form_test.go
+++ b/services/forms/user_form_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package forms
diff --git a/services/gitdiff/csv.go b/services/gitdiff/csv.go
index 642c9937dd..5781d7e909 100644
--- a/services/gitdiff/csv.go
+++ b/services/gitdiff/csv.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitdiff
diff --git a/services/gitdiff/csv_test.go b/services/gitdiff/csv_test.go
index 2c15b42d91..ac53e2d1ef 100644
--- a/services/gitdiff/csv_test.go
+++ b/services/gitdiff/csv_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitdiff
diff --git a/services/gitdiff/gitdiff.go b/services/gitdiff/gitdiff.go
index d24c0ac082..d3ee93ec94 100644
--- a/services/gitdiff/gitdiff.go
+++ b/services/gitdiff/gitdiff.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitdiff
diff --git a/services/gitdiff/gitdiff_test.go b/services/gitdiff/gitdiff_test.go
index a7fd677fef..267f0e4cff 100644
--- a/services/gitdiff/gitdiff_test.go
+++ b/services/gitdiff/gitdiff_test.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitdiff
diff --git a/services/gitdiff/highlightdiff.go b/services/gitdiff/highlightdiff.go
index 727827232d..f1e2b1d3cb 100644
--- a/services/gitdiff/highlightdiff.go
+++ b/services/gitdiff/highlightdiff.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitdiff
diff --git a/services/gitdiff/highlightdiff_test.go b/services/gitdiff/highlightdiff_test.go
index 205f9a0773..545a060e20 100644
--- a/services/gitdiff/highlightdiff_test.go
+++ b/services/gitdiff/highlightdiff_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitdiff
diff --git a/services/gitdiff/main_test.go b/services/gitdiff/main_test.go
index 0d36a600f6..a5ac274b8f 100644
--- a/services/gitdiff/main_test.go
+++ b/services/gitdiff/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package gitdiff
diff --git a/services/issue/assignee.go b/services/issue/assignee.go
index 291fc31637..2e62f7cf1c 100644
--- a/services/issue/assignee.go
+++ b/services/issue/assignee.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issue
diff --git a/services/issue/assignee_test.go b/services/issue/assignee_test.go
index 5c8b822499..946085cb91 100644
--- a/services/issue/assignee_test.go
+++ b/services/issue/assignee_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issue
diff --git a/services/issue/commit.go b/services/issue/commit.go
index c8cfa6cc8a..f9d59b6bd0 100644
--- a/services/issue/commit.go
+++ b/services/issue/commit.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issue
diff --git a/services/issue/commit_test.go b/services/issue/commit_test.go
index 8469bf1ac1..590e7adce9 100644
--- a/services/issue/commit_test.go
+++ b/services/issue/commit_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issue
diff --git a/services/issue/content.go b/services/issue/content.go
index 851d986de3..819ac3f20f 100644
--- a/services/issue/content.go
+++ b/services/issue/content.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issue
diff --git a/services/issue/issue.go b/services/issue/issue.go
index 9ec43f8264..23b48c2861 100644
--- a/services/issue/issue.go
+++ b/services/issue/issue.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issue
diff --git a/services/issue/issue_test.go b/services/issue/issue_test.go
index 20f3a3296c..44168388e6 100644
--- a/services/issue/issue_test.go
+++ b/services/issue/issue_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issue
diff --git a/services/issue/label.go b/services/issue/label.go
index cd29fcebae..c18abbfcda 100644
--- a/services/issue/label.go
+++ b/services/issue/label.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issue
diff --git a/services/issue/label_test.go b/services/issue/label_test.go
index 482db95139..af220601f1 100644
--- a/services/issue/label_test.go
+++ b/services/issue/label_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issue
diff --git a/services/issue/main_test.go b/services/issue/main_test.go
index 689ae744f6..0f2427122f 100644
--- a/services/issue/main_test.go
+++ b/services/issue/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issue
diff --git a/services/issue/milestone.go b/services/issue/milestone.go
index 2be4a9e70a..6019a28a99 100644
--- a/services/issue/milestone.go
+++ b/services/issue/milestone.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issue
diff --git a/services/issue/milestone_test.go b/services/issue/milestone_test.go
index 087c256700..069117d1f1 100644
--- a/services/issue/milestone_test.go
+++ b/services/issue/milestone_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issue
diff --git a/services/issue/status.go b/services/issue/status.go
index 2d4622324c..782ce0bd96 100644
--- a/services/issue/status.go
+++ b/services/issue/status.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package issue
diff --git a/services/lfs/locks.go b/services/lfs/locks.go
index 45ba8faacd..aab4f1a44e 100644
--- a/services/lfs/locks.go
+++ b/services/lfs/locks.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/services/lfs/server.go b/services/lfs/server.go
index 830112fac6..32bd843ebf 100644
--- a/services/lfs/server.go
+++ b/services/lfs/server.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package lfs
diff --git a/services/mailer/mail.go b/services/mailer/mail.go
index a9e36e10f8..674011bede 100644
--- a/services/mailer/mail.go
+++ b/services/mailer/mail.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mailer
diff --git a/services/mailer/mail_comment.go b/services/mailer/mail_comment.go
index af07821c29..1812441d5a 100644
--- a/services/mailer/mail_comment.go
+++ b/services/mailer/mail_comment.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mailer
diff --git a/services/mailer/mail_issue.go b/services/mailer/mail_issue.go
index e7ff1d59d6..be5279aac5 100644
--- a/services/mailer/mail_issue.go
+++ b/services/mailer/mail_issue.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mailer
diff --git a/services/mailer/mail_release.go b/services/mailer/mail_release.go
index b15fc05ce9..96227270c8 100644
--- a/services/mailer/mail_release.go
+++ b/services/mailer/mail_release.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mailer
diff --git a/services/mailer/mail_repo.go b/services/mailer/mail_repo.go
index d3f5120929..5fa13f5044 100644
--- a/services/mailer/mail_repo.go
+++ b/services/mailer/mail_repo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mailer
diff --git a/services/mailer/mail_team_invite.go b/services/mailer/mail_team_invite.go
index c2b2a00e76..f01d6f47dd 100644
--- a/services/mailer/mail_team_invite.go
+++ b/services/mailer/mail_team_invite.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mailer
diff --git a/services/mailer/mail_test.go b/services/mailer/mail_test.go
index acb1f69961..6ed4fed9bd 100644
--- a/services/mailer/mail_test.go
+++ b/services/mailer/mail_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mailer
diff --git a/services/mailer/mailer.go b/services/mailer/mailer.go
index 2663b6b2ba..6149644600 100644
--- a/services/mailer/mailer.go
+++ b/services/mailer/mailer.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mailer
diff --git a/services/mailer/mailer_test.go b/services/mailer/mailer_test.go
index b94fce8443..79c5231218 100644
--- a/services/mailer/mailer_test.go
+++ b/services/mailer/mailer_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mailer
diff --git a/services/mailer/main_test.go b/services/mailer/main_test.go
index 0bd154113f..16a6a26545 100644
--- a/services/mailer/main_test.go
+++ b/services/mailer/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mailer
diff --git a/services/markup/main_test.go b/services/markup/main_test.go
index 8efd08e69d..ce892435a1 100644
--- a/services/markup/main_test.go
+++ b/services/markup/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/services/markup/processorhelper.go b/services/markup/processorhelper.go
index 5042884e5e..2897f203a9 100644
--- a/services/markup/processorhelper.go
+++ b/services/markup/processorhelper.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/services/markup/processorhelper_test.go b/services/markup/processorhelper_test.go
index f7eab3d958..6c9c1c27e7 100644
--- a/services/markup/processorhelper_test.go
+++ b/services/markup/processorhelper_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package markup
diff --git a/services/migrations/codebase.go b/services/migrations/codebase.go
index edeb276773..c02c8e13a2 100644
--- a/services/migrations/codebase.go
+++ b/services/migrations/codebase.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/codebase_test.go b/services/migrations/codebase_test.go
index 03b5946d71..68721e0641 100644
--- a/services/migrations/codebase_test.go
+++ b/services/migrations/codebase_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/common.go b/services/migrations/common.go
index 052975c9e7..34d7c93ddf 100644
--- a/services/migrations/common.go
+++ b/services/migrations/common.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/dump.go b/services/migrations/dump.go
index 8103e2faac..cc8518d4a2 100644
--- a/services/migrations/dump.go
+++ b/services/migrations/dump.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/error.go b/services/migrations/error.go
index d26fa8112c..46d303ac8e 100644
--- a/services/migrations/error.go
+++ b/services/migrations/error.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/git.go b/services/migrations/git.go
index 3198f934ca..22ffd5e765 100644
--- a/services/migrations/git.go
+++ b/services/migrations/git.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/gitbucket.go b/services/migrations/gitbucket.go
index 21d8c672dd..65c138ed04 100644
--- a/services/migrations/gitbucket.go
+++ b/services/migrations/gitbucket.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/gitea_downloader.go b/services/migrations/gitea_downloader.go
index 9775af1cdc..470090b501 100644
--- a/services/migrations/gitea_downloader.go
+++ b/services/migrations/gitea_downloader.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/gitea_downloader_test.go b/services/migrations/gitea_downloader_test.go
index 601b0a7c79..c37c70947e 100644
--- a/services/migrations/gitea_downloader_test.go
+++ b/services/migrations/gitea_downloader_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/gitea_uploader.go b/services/migrations/gitea_uploader.go
index 8a7533b3d1..ea9b1a7142 100644
--- a/services/migrations/gitea_uploader.go
+++ b/services/migrations/gitea_uploader.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/gitea_uploader_test.go b/services/migrations/gitea_uploader_test.go
index 362492631f..6a942b9b57 100644
--- a/services/migrations/gitea_uploader_test.go
+++ b/services/migrations/gitea_uploader_test.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/github.go b/services/migrations/github.go
index e5683fb530..48dd90323d 100644
--- a/services/migrations/github.go
+++ b/services/migrations/github.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/github_test.go b/services/migrations/github_test.go
index 7bbbbb6168..2b89e6dc0f 100644
--- a/services/migrations/github_test.go
+++ b/services/migrations/github_test.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/gitlab.go b/services/migrations/gitlab.go
index b8bb0c77b5..44e1d70713 100644
--- a/services/migrations/gitlab.go
+++ b/services/migrations/gitlab.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/gitlab_test.go b/services/migrations/gitlab_test.go
index 829964b384..1d8c5989bb 100644
--- a/services/migrations/gitlab_test.go
+++ b/services/migrations/gitlab_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/gogs.go b/services/migrations/gogs.go
index 14bc734c4e..d01934ac6d 100644
--- a/services/migrations/gogs.go
+++ b/services/migrations/gogs.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/gogs_test.go b/services/migrations/gogs_test.go
index 501161b610..610af183de 100644
--- a/services/migrations/gogs_test.go
+++ b/services/migrations/gogs_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/http_client.go b/services/migrations/http_client.go
index 0d683693a1..9e3caec191 100644
--- a/services/migrations/http_client.go
+++ b/services/migrations/http_client.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/main_test.go b/services/migrations/main_test.go
index ad9bc9c731..30875f6e5b 100644
--- a/services/migrations/main_test.go
+++ b/services/migrations/main_test.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/migrate.go b/services/migrations/migrate.go
index dfb21b884b..a3b9d1cfa8 100644
--- a/services/migrations/migrate.go
+++ b/services/migrations/migrate.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2018 Jonas Franz. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/migrate_test.go b/services/migrations/migrate_test.go
index 3fc4034777..03efa6185b 100644
--- a/services/migrations/migrate_test.go
+++ b/services/migrations/migrate_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/onedev.go b/services/migrations/onedev.go
index 8cc826c3b4..d4b1b73d37 100644
--- a/services/migrations/onedev.go
+++ b/services/migrations/onedev.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/onedev_test.go b/services/migrations/onedev_test.go
index 6a17eb334b..48412fec64 100644
--- a/services/migrations/onedev_test.go
+++ b/services/migrations/onedev_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/restore.go b/services/migrations/restore.go
index 10fe8c4ee8..fd337b22c7 100644
--- a/services/migrations/restore.go
+++ b/services/migrations/restore.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/migrations/update.go b/services/migrations/update.go
index cdec73cd1b..48b61885e8 100644
--- a/services/migrations/update.go
+++ b/services/migrations/update.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/services/mirror/mirror.go b/services/mirror/mirror.go
index 3b4a8e5f8a..9e569a70e3 100644
--- a/services/mirror/mirror.go
+++ b/services/mirror/mirror.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mirror
diff --git a/services/mirror/mirror_pull.go b/services/mirror/mirror_pull.go
index 4a77569d86..98e8d122a5 100644
--- a/services/mirror/mirror_pull.go
+++ b/services/mirror/mirror_pull.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mirror
diff --git a/services/mirror/mirror_push.go b/services/mirror/mirror_push.go
index 60611130ba..c0c68a3f54 100644
--- a/services/mirror/mirror_push.go
+++ b/services/mirror/mirror_push.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package mirror
diff --git a/services/org/org.go b/services/org/org.go
index d993f82bbf..e45fb305de 100644
--- a/services/org/org.go
+++ b/services/org/org.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/services/org/org_test.go b/services/org/org_test.go
index c4e6088a71..cc22595c6f 100644
--- a/services/org/org_test.go
+++ b/services/org/org_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/services/org/repo.go b/services/org/repo.go
index 88520c819f..179249c7a8 100644
--- a/services/org/repo.go
+++ b/services/org/repo.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/services/org/repo_test.go b/services/org/repo_test.go
index 21158bfa21..40b0d17077 100644
--- a/services/org/repo_test.go
+++ b/services/org/repo_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/services/org/team_invite.go b/services/org/team_invite.go
index 1108a46da5..3f28044dbf 100644
--- a/services/org/team_invite.go
+++ b/services/org/team_invite.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/services/packages/auth.go b/services/packages/auth.go
index 50212fccfd..9b84ac79a6 100644
--- a/services/packages/auth.go
+++ b/services/packages/auth.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/services/packages/container/blob_uploader.go b/services/packages/container/blob_uploader.go
index 762f9e5259..ba92b05073 100644
--- a/services/packages/container/blob_uploader.go
+++ b/services/packages/container/blob_uploader.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/services/packages/container/cleanup.go b/services/packages/container/cleanup.go
index e3d414d45c..d6d4d152c8 100644
--- a/services/packages/container/cleanup.go
+++ b/services/packages/container/cleanup.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/services/packages/packages.go b/services/packages/packages.go
index 7343ffc530..f819949c96 100644
--- a/services/packages/packages.go
+++ b/services/packages/packages.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/services/pull/check.go b/services/pull/check.go
index faf3459f16..af8f2df0b6 100644
--- a/services/pull/check.go
+++ b/services/pull/check.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/services/pull/check_test.go b/services/pull/check_test.go
index b4de02b5e2..590065250f 100644
--- a/services/pull/check_test.go
+++ b/services/pull/check_test.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/services/pull/commit_status.go b/services/pull/commit_status.go
index 10692221a4..7e4db311d9 100644
--- a/services/pull/commit_status.go
+++ b/services/pull/commit_status.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/services/pull/edits.go b/services/pull/edits.go
index 84f7c80da7..c7550dcb07 100644
--- a/services/pull/edits.go
+++ b/services/pull/edits.go
@@ -1,7 +1,6 @@
// Copyright 2022 The Gitea Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/services/pull/lfs.go b/services/pull/lfs.go
index 8cca0a91b7..4b9826bedd 100644
--- a/services/pull/lfs.go
+++ b/services/pull/lfs.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/services/pull/main_test.go b/services/pull/main_test.go
index 5471686e72..2014b19275 100644
--- a/services/pull/main_test.go
+++ b/services/pull/main_test.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/services/pull/merge.go b/services/pull/merge.go
index b29c9bc859..afed98989b 100644
--- a/services/pull/merge.go
+++ b/services/pull/merge.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/services/pull/patch.go b/services/pull/patch.go
index 1046095ff1..925f310a2c 100644
--- a/services/pull/patch.go
+++ b/services/pull/patch.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/services/pull/patch_unmerged.go b/services/pull/patch_unmerged.go
index 3f1bb7d523..c60c48d923 100644
--- a/services/pull/patch_unmerged.go
+++ b/services/pull/patch_unmerged.go
@@ -1,7 +1,6 @@
// Copyright 2021 The Gitea Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/services/pull/pull.go b/services/pull/pull.go
index e0dcefe141..ddb407b053 100644
--- a/services/pull/pull.go
+++ b/services/pull/pull.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/services/pull/pull_test.go b/services/pull/pull_test.go
index 22eefd1624..cbbdccce9c 100644
--- a/services/pull/pull_test.go
+++ b/services/pull/pull_test.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/services/pull/review.go b/services/pull/review.go
index 2555e1b3b3..1f2bc77e2c 100644
--- a/services/pull/review.go
+++ b/services/pull/review.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/services/pull/temp_repo.go b/services/pull/temp_repo.go
index 9c04aa1c92..842719467f 100644
--- a/services/pull/temp_repo.go
+++ b/services/pull/temp_repo.go
@@ -1,7 +1,6 @@
// Copyright 2019 The Gitea Authors.
// All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/services/pull/update.go b/services/pull/update.go
index 36e66bb7a9..6ff554e612 100644
--- a/services/pull/update.go
+++ b/services/pull/update.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pull
diff --git a/services/release/release.go b/services/release/release.go
index eb989381f0..07e329cf43 100644
--- a/services/release/release.go
+++ b/services/release/release.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package release
diff --git a/services/release/release_test.go b/services/release/release_test.go
index 1ade9bed37..9b8aaa3649 100644
--- a/services/release/release_test.go
+++ b/services/release/release_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package release
diff --git a/services/repository/adopt.go b/services/repository/adopt.go
index 3895c54c7b..fb7adcfd29 100644
--- a/services/repository/adopt.go
+++ b/services/repository/adopt.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/adopt_test.go b/services/repository/adopt_test.go
index b450005f34..be8897693e 100644
--- a/services/repository/adopt_test.go
+++ b/services/repository/adopt_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/archiver/archiver.go b/services/repository/archiver/archiver.go
index f1c2693aeb..94fff6ffa2 100644
--- a/services/repository/archiver/archiver.go
+++ b/services/repository/archiver/archiver.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package archiver
diff --git a/services/repository/archiver/archiver_test.go b/services/repository/archiver/archiver_test.go
index 24437ce76c..3cd6e81351 100644
--- a/services/repository/archiver/archiver_test.go
+++ b/services/repository/archiver/archiver_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package archiver
diff --git a/services/repository/avatar.go b/services/repository/avatar.go
index e4c8da3ba2..a829a1000a 100644
--- a/services/repository/avatar.go
+++ b/services/repository/avatar.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/avatar_test.go b/services/repository/avatar_test.go
index e5d9ac9d53..3875302696 100644
--- a/services/repository/avatar_test.go
+++ b/services/repository/avatar_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/branch.go b/services/repository/branch.go
index e1f26b89af..e5ffbbeb74 100644
--- a/services/repository/branch.go
+++ b/services/repository/branch.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/cache.go b/services/repository/cache.go
index 855fe7f4a0..6fd4fa7250 100644
--- a/services/repository/cache.go
+++ b/services/repository/cache.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/check.go b/services/repository/check.go
index 5725f540b0..6e29dc93d1 100644
--- a/services/repository/check.go
+++ b/services/repository/check.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/files/cherry_pick.go b/services/repository/files/cherry_pick.go
index a30d4f6025..6bc67e2636 100644
--- a/services/repository/files/cherry_pick.go
+++ b/services/repository/files/cherry_pick.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/commit.go b/services/repository/files/commit.go
index bc5a4c8ed3..c49b03d608 100644
--- a/services/repository/files/commit.go
+++ b/services/repository/files/commit.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/content.go b/services/repository/files/content.go
index 34c8aeec25..a311625f31 100644
--- a/services/repository/files/content.go
+++ b/services/repository/files/content.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/content_test.go b/services/repository/files/content_test.go
index 24fcd6c4c5..a43b71cf31 100644
--- a/services/repository/files/content_test.go
+++ b/services/repository/files/content_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/delete.go b/services/repository/files/delete.go
index f098052ad8..faa60bb3ba 100644
--- a/services/repository/files/delete.go
+++ b/services/repository/files/delete.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/diff.go b/services/repository/files/diff.go
index dbe1bef52b..373249b114 100644
--- a/services/repository/files/diff.go
+++ b/services/repository/files/diff.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/diff_test.go b/services/repository/files/diff_test.go
index 310308ca88..621816e97d 100644
--- a/services/repository/files/diff_test.go
+++ b/services/repository/files/diff_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/file.go b/services/repository/files/file.go
index c6c626c9ce..ddd64a5399 100644
--- a/services/repository/files/file.go
+++ b/services/repository/files/file.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/file_test.go b/services/repository/files/file_test.go
index e158c63de2..e1c7d5d7fb 100644
--- a/services/repository/files/file_test.go
+++ b/services/repository/files/file_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/patch.go b/services/repository/files/patch.go
index 2be01f25be..b5eef8c091 100644
--- a/services/repository/files/patch.go
+++ b/services/repository/files/patch.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/temp_repo.go b/services/repository/files/temp_repo.go
index b96d9e7b3d..1f3375cdcc 100644
--- a/services/repository/files/temp_repo.go
+++ b/services/repository/files/temp_repo.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/tree.go b/services/repository/files/tree.go
index 59e5690977..1aa6d0df36 100644
--- a/services/repository/files/tree.go
+++ b/services/repository/files/tree.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/tree_test.go b/services/repository/files/tree_test.go
index e900480d35..a500dbdb22 100644
--- a/services/repository/files/tree_test.go
+++ b/services/repository/files/tree_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/update.go b/services/repository/files/update.go
index 1721b00b01..f7a41ef24c 100644
--- a/services/repository/files/update.go
+++ b/services/repository/files/update.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/files/upload.go b/services/repository/files/upload.go
index 3728780991..0ada3885b1 100644
--- a/services/repository/files/upload.go
+++ b/services/repository/files/upload.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package files
diff --git a/services/repository/fork.go b/services/repository/fork.go
index a9a2b33ed8..cf9b3992cd 100644
--- a/services/repository/fork.go
+++ b/services/repository/fork.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/fork_test.go b/services/repository/fork_test.go
index d4ba507351..c809ed4529 100644
--- a/services/repository/fork_test.go
+++ b/services/repository/fork_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/hooks.go b/services/repository/hooks.go
index d29384e012..a8b6f7a622 100644
--- a/services/repository/hooks.go
+++ b/services/repository/hooks.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/main_test.go b/services/repository/main_test.go
index 42134fa7ad..007790f2a9 100644
--- a/services/repository/main_test.go
+++ b/services/repository/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/push.go b/services/repository/push.go
index e2db18e1f7..bce01cb76a 100644
--- a/services/repository/push.go
+++ b/services/repository/push.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/repository.go b/services/repository/repository.go
index c369b98aae..859c32cf8f 100644
--- a/services/repository/repository.go
+++ b/services/repository/repository.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/repository_test.go b/services/repository/repository_test.go
index e0ffcac3cc..5f5283bddb 100644
--- a/services/repository/repository_test.go
+++ b/services/repository/repository_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/review.go b/services/repository/review.go
index 9e8012978e..d30d61ee06 100644
--- a/services/repository/review.go
+++ b/services/repository/review.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/review_test.go b/services/repository/review_test.go
index badacf39a6..2bf4cdbf5c 100644
--- a/services/repository/review_test.go
+++ b/services/repository/review_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/template.go b/services/repository/template.go
index 625bc305de..13e0749869 100644
--- a/services/repository/template.go
+++ b/services/repository/template.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/transfer.go b/services/repository/transfer.go
index 2778f2e744..af28f5a4a5 100644
--- a/services/repository/transfer.go
+++ b/services/repository/transfer.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/repository/transfer_test.go b/services/repository/transfer_test.go
index bf2a0ce0a2..2bbc5abbd2 100644
--- a/services/repository/transfer_test.go
+++ b/services/repository/transfer_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repository
diff --git a/services/task/migrate.go b/services/task/migrate.go
index 307c60a09a..03d083e596 100644
--- a/services/task/migrate.go
+++ b/services/task/migrate.go
@@ -1,6 +1,5 @@
// Copyright 2019 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package task
diff --git a/services/task/task.go b/services/task/task.go
index 138dc88a04..41bc07f2f6 100644
--- a/services/task/task.go
+++ b/services/task/task.go
@@ -1,6 +1,5 @@
// Copyright 2019 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package task
diff --git a/services/user/user.go b/services/user/user.go
index 9976bc7bd3..65db732bf9 100644
--- a/services/user/user.go
+++ b/services/user/user.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/services/user/user_test.go b/services/user/user_test.go
index c07244e7e1..5e052a9df2 100644
--- a/services/user/user_test.go
+++ b/services/user/user_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/services/webhook/deliver.go b/services/webhook/deliver.go
index 07fdf18c83..eed711c580 100644
--- a/services/webhook/deliver.go
+++ b/services/webhook/deliver.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/deliver_test.go b/services/webhook/deliver_test.go
index 498cf7d159..e7a042f4d2 100644
--- a/services/webhook/deliver_test.go
+++ b/services/webhook/deliver_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/dingtalk.go b/services/webhook/dingtalk.go
index e047e994c2..7cb1fb75fc 100644
--- a/services/webhook/dingtalk.go
+++ b/services/webhook/dingtalk.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/dingtalk_test.go b/services/webhook/dingtalk_test.go
index fc15380f4d..89b5f9d219 100644
--- a/services/webhook/dingtalk_test.go
+++ b/services/webhook/dingtalk_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/discord.go b/services/webhook/discord.go
index 22d75db893..c9fdc95320 100644
--- a/services/webhook/discord.go
+++ b/services/webhook/discord.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/discord_test.go b/services/webhook/discord_test.go
index 8e4e60a7ff..df3cdc15bd 100644
--- a/services/webhook/discord_test.go
+++ b/services/webhook/discord_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/feishu.go b/services/webhook/feishu.go
index 782684d0ff..58b6fff331 100644
--- a/services/webhook/feishu.go
+++ b/services/webhook/feishu.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/feishu_test.go b/services/webhook/feishu_test.go
index 85cfb759fe..df44fd1f72 100644
--- a/services/webhook/feishu_test.go
+++ b/services/webhook/feishu_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/general.go b/services/webhook/general.go
index f6ef673923..bec752cffe 100644
--- a/services/webhook/general.go
+++ b/services/webhook/general.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/general_test.go b/services/webhook/general_test.go
index da3123d3ab..ba58ca4f90 100644
--- a/services/webhook/general_test.go
+++ b/services/webhook/general_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/main_test.go b/services/webhook/main_test.go
index 5ddb6cf1f3..6cf9410735 100644
--- a/services/webhook/main_test.go
+++ b/services/webhook/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/matrix.go b/services/webhook/matrix.go
index 7ff8b1e638..bd3efd46b2 100644
--- a/services/webhook/matrix.go
+++ b/services/webhook/matrix.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/matrix_test.go b/services/webhook/matrix_test.go
index bbcdef3567..754234eccf 100644
--- a/services/webhook/matrix_test.go
+++ b/services/webhook/matrix_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/msteams.go b/services/webhook/msteams.go
index bf9e95edc5..ef8366f8d5 100644
--- a/services/webhook/msteams.go
+++ b/services/webhook/msteams.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/msteams_test.go b/services/webhook/msteams_test.go
index 8292beed7f..8daf99f867 100644
--- a/services/webhook/msteams_test.go
+++ b/services/webhook/msteams_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/packagist.go b/services/webhook/packagist.go
index 5badc7462a..815e1a93e9 100644
--- a/services/webhook/packagist.go
+++ b/services/webhook/packagist.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/packagist_test.go b/services/webhook/packagist_test.go
index 4a24b76523..4941ae3f01 100644
--- a/services/webhook/packagist_test.go
+++ b/services/webhook/packagist_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/payloader.go b/services/webhook/payloader.go
index a9d01c9891..7b04f1dd36 100644
--- a/services/webhook/payloader.go
+++ b/services/webhook/payloader.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/slack.go b/services/webhook/slack.go
index f5c69d74b6..1814361a1c 100644
--- a/services/webhook/slack.go
+++ b/services/webhook/slack.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/slack_test.go b/services/webhook/slack_test.go
index 3af38b5158..db97b351c5 100644
--- a/services/webhook/slack_test.go
+++ b/services/webhook/slack_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/telegram.go b/services/webhook/telegram.go
index 7ca5f61062..8bc68490e5 100644
--- a/services/webhook/telegram.go
+++ b/services/webhook/telegram.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/telegram_test.go b/services/webhook/telegram_test.go
index 5ca78d0508..b092f7e732 100644
--- a/services/webhook/telegram_test.go
+++ b/services/webhook/telegram_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/webhook.go b/services/webhook/webhook.go
index 5c9139b41f..21173e7cd8 100644
--- a/services/webhook/webhook.go
+++ b/services/webhook/webhook.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/webhook_test.go b/services/webhook/webhook_test.go
index 8d44aa504a..a1f197d809 100644
--- a/services/webhook/webhook_test.go
+++ b/services/webhook/webhook_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/webhook/wechatwork.go b/services/webhook/wechatwork.go
index acaa12253b..a77d871dd7 100644
--- a/services/webhook/wechatwork.go
+++ b/services/webhook/wechatwork.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package webhook
diff --git a/services/wiki/wiki.go b/services/wiki/wiki.go
index f6986cff86..e483416fda 100644
--- a/services/wiki/wiki.go
+++ b/services/wiki/wiki.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package wiki
diff --git a/services/wiki/wiki_test.go b/services/wiki/wiki_test.go
index 774ef6c283..268d8848c5 100644
--- a/services/wiki/wiki_test.go
+++ b/services/wiki/wiki_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package wiki
diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go
index 6028ff74fc..697a828e01 100644
--- a/tests/e2e/e2e_test.go
+++ b/tests/e2e/e2e_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// This is primarily coped from /tests/integration/integration_test.go
// TODO: Move common functions to shared file
diff --git a/tests/e2e/utils_e2e_test.go b/tests/e2e/utils_e2e_test.go
index f8f3e94cda..e6e35c4746 100644
--- a/tests/e2e/utils_e2e_test.go
+++ b/tests/e2e/utils_e2e_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package e2e
diff --git a/tests/integration/admin_user_test.go b/tests/integration/admin_user_test.go
index ffe3f670fe..dd6b9ccbbe 100644
--- a/tests/integration/admin_user_test.go
+++ b/tests/integration/admin_user_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_activitypub_person_test.go b/tests/integration/api_activitypub_person_test.go
index e7ef79d156..dadc417aa4 100644
--- a/tests/integration/api_activitypub_person_test.go
+++ b/tests/integration/api_activitypub_person_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_admin_org_test.go b/tests/integration/api_admin_org_test.go
index a8770db4ca..9710163330 100644
--- a/tests/integration/api_admin_org_test.go
+++ b/tests/integration/api_admin_org_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_admin_test.go b/tests/integration/api_admin_test.go
index d6bc6016ff..2a487fb83a 100644
--- a/tests/integration/api_admin_test.go
+++ b/tests/integration/api_admin_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_branch_test.go b/tests/integration/api_branch_test.go
index bdfdd3c752..1fa757d9d8 100644
--- a/tests/integration/api_branch_test.go
+++ b/tests/integration/api_branch_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_comment_test.go b/tests/integration/api_comment_test.go
index 9cac32b9b9..ef21d7f901 100644
--- a/tests/integration/api_comment_test.go
+++ b/tests/integration/api_comment_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_feed_user_test.go b/tests/integration/api_feed_user_test.go
index c137dd1209..c44f9a1951 100644
--- a/tests/integration/api_feed_user_test.go
+++ b/tests/integration/api_feed_user_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_fork_test.go b/tests/integration/api_fork_test.go
index 131dcf70bb..7c231415a3 100644
--- a/tests/integration/api_fork_test.go
+++ b/tests/integration/api_fork_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_gpg_keys_test.go b/tests/integration/api_gpg_keys_test.go
index 0ad876c9b9..9e1641d3b9 100644
--- a/tests/integration/api_gpg_keys_test.go
+++ b/tests/integration/api_gpg_keys_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_helper_for_declarative_test.go b/tests/integration/api_helper_for_declarative_test.go
index 5a798f79f0..dbfe502ec1 100644
--- a/tests/integration/api_helper_for_declarative_test.go
+++ b/tests/integration/api_helper_for_declarative_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_httpsig_test.go b/tests/integration/api_httpsig_test.go
index 80b3c586b4..d5db5952c4 100644
--- a/tests/integration/api_httpsig_test.go
+++ b/tests/integration/api_httpsig_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_issue_label_test.go b/tests/integration/api_issue_label_test.go
index 586c50a55f..8a324a6684 100644
--- a/tests/integration/api_issue_label_test.go
+++ b/tests/integration/api_issue_label_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_issue_milestone_test.go b/tests/integration/api_issue_milestone_test.go
index e22a091bb8..7adaa0a1ee 100644
--- a/tests/integration/api_issue_milestone_test.go
+++ b/tests/integration/api_issue_milestone_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_issue_reaction_test.go b/tests/integration/api_issue_reaction_test.go
index 9afc7475e2..85a39fffea 100644
--- a/tests/integration/api_issue_reaction_test.go
+++ b/tests/integration/api_issue_reaction_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_issue_stopwatch_test.go b/tests/integration/api_issue_stopwatch_test.go
index c2ad9c45e8..4539d0ff62 100644
--- a/tests/integration/api_issue_stopwatch_test.go
+++ b/tests/integration/api_issue_stopwatch_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_issue_subscription_test.go b/tests/integration/api_issue_subscription_test.go
index f4588fbbc4..68b29f3641 100644
--- a/tests/integration/api_issue_subscription_test.go
+++ b/tests/integration/api_issue_subscription_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_issue_test.go b/tests/integration/api_issue_test.go
index 3e651c620b..095ebb1773 100644
--- a/tests/integration/api_issue_test.go
+++ b/tests/integration/api_issue_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_issue_tracked_time_test.go b/tests/integration/api_issue_tracked_time_test.go
index 6e2c77030c..aacf1e0fd0 100644
--- a/tests/integration/api_issue_tracked_time_test.go
+++ b/tests/integration/api_issue_tracked_time_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_keys_test.go b/tests/integration/api_keys_test.go
index 1cb0b20ffe..e70fa4a4ea 100644
--- a/tests/integration/api_keys_test.go
+++ b/tests/integration/api_keys_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_nodeinfo_test.go b/tests/integration/api_nodeinfo_test.go
index 2446acec94..a7313f3b2c 100644
--- a/tests/integration/api_nodeinfo_test.go
+++ b/tests/integration/api_nodeinfo_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_notification_test.go b/tests/integration/api_notification_test.go
index f143802228..2ee4778ab5 100644
--- a/tests/integration/api_notification_test.go
+++ b/tests/integration/api_notification_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_oauth2_apps_test.go b/tests/integration/api_oauth2_apps_test.go
index 6352449d6a..59be697a14 100644
--- a/tests/integration/api_oauth2_apps_test.go
+++ b/tests/integration/api_oauth2_apps_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.package models
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_org_test.go b/tests/integration/api_org_test.go
index 16e53d6b81..5cd138eee2 100644
--- a/tests/integration/api_org_test.go
+++ b/tests/integration/api_org_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_packages_composer_test.go b/tests/integration/api_packages_composer_test.go
index 90285f78d3..87647cc475 100644
--- a/tests/integration/api_packages_composer_test.go
+++ b/tests/integration/api_packages_composer_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_packages_conan_test.go b/tests/integration/api_packages_conan_test.go
index 40c8b70883..5ced388b48 100644
--- a/tests/integration/api_packages_conan_test.go
+++ b/tests/integration/api_packages_conan_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_packages_container_test.go b/tests/integration/api_packages_container_test.go
index 60cbecd067..851021da1b 100644
--- a/tests/integration/api_packages_container_test.go
+++ b/tests/integration/api_packages_container_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_packages_generic_test.go b/tests/integration/api_packages_generic_test.go
index 4c5c0c615c..875b9ed96e 100644
--- a/tests/integration/api_packages_generic_test.go
+++ b/tests/integration/api_packages_generic_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_packages_helm_test.go b/tests/integration/api_packages_helm_test.go
index 3c30a6848e..4a7d563431 100644
--- a/tests/integration/api_packages_helm_test.go
+++ b/tests/integration/api_packages_helm_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_packages_maven_test.go b/tests/integration/api_packages_maven_test.go
index e71e1ff03b..5c0dbfc99c 100644
--- a/tests/integration/api_packages_maven_test.go
+++ b/tests/integration/api_packages_maven_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_packages_npm_test.go b/tests/integration/api_packages_npm_test.go
index 20412fe727..39d1c91e87 100644
--- a/tests/integration/api_packages_npm_test.go
+++ b/tests/integration/api_packages_npm_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_packages_nuget_test.go b/tests/integration/api_packages_nuget_test.go
index bf4217ef26..72329b6691 100644
--- a/tests/integration/api_packages_nuget_test.go
+++ b/tests/integration/api_packages_nuget_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_packages_pub_test.go b/tests/integration/api_packages_pub_test.go
index 9e4ce63fa1..325401fe75 100644
--- a/tests/integration/api_packages_pub_test.go
+++ b/tests/integration/api_packages_pub_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_packages_pypi_test.go b/tests/integration/api_packages_pypi_test.go
index 83719dcca0..71197f92a8 100644
--- a/tests/integration/api_packages_pypi_test.go
+++ b/tests/integration/api_packages_pypi_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_packages_rubygems_test.go b/tests/integration/api_packages_rubygems_test.go
index 6cf5af710b..c85ff9aaf5 100644
--- a/tests/integration/api_packages_rubygems_test.go
+++ b/tests/integration/api_packages_rubygems_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_packages_test.go b/tests/integration/api_packages_test.go
index 8efb70848b..8346e3bccc 100644
--- a/tests/integration/api_packages_test.go
+++ b/tests/integration/api_packages_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_packages_vagrant_test.go b/tests/integration/api_packages_vagrant_test.go
index 1d2952e1a2..d3e4449f29 100644
--- a/tests/integration/api_packages_vagrant_test.go
+++ b/tests/integration/api_packages_vagrant_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_private_serv_test.go b/tests/integration/api_private_serv_test.go
index 6fd6d616db..d26935f446 100644
--- a/tests/integration/api_private_serv_test.go
+++ b/tests/integration/api_private_serv_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_pull_commits_test.go b/tests/integration/api_pull_commits_test.go
index 6753ceaa97..3068ca2dd6 100644
--- a/tests/integration/api_pull_commits_test.go
+++ b/tests/integration/api_pull_commits_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_pull_review_test.go b/tests/integration/api_pull_review_test.go
index 6ebad106fb..ac7982773d 100644
--- a/tests/integration/api_pull_review_test.go
+++ b/tests/integration/api_pull_review_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_pull_test.go b/tests/integration/api_pull_test.go
index 81842b05fb..5e987c441e 100644
--- a/tests/integration/api_pull_test.go
+++ b/tests/integration/api_pull_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_releases_test.go b/tests/integration/api_releases_test.go
index 0c7f5e2d52..90691d81ab 100644
--- a/tests/integration/api_releases_test.go
+++ b/tests/integration/api_releases_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_archive_test.go b/tests/integration/api_repo_archive_test.go
index 3707cb7c1c..a3c03ba2fc 100644
--- a/tests/integration/api_repo_archive_test.go
+++ b/tests/integration/api_repo_archive_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_collaborator_test.go b/tests/integration/api_repo_collaborator_test.go
index 3527e16572..cb834096cb 100644
--- a/tests/integration/api_repo_collaborator_test.go
+++ b/tests/integration/api_repo_collaborator_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_edit_test.go b/tests/integration/api_repo_edit_test.go
index 4dfae97e43..dcaecbd035 100644
--- a/tests/integration/api_repo_edit_test.go
+++ b/tests/integration/api_repo_edit_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_file_create_test.go b/tests/integration/api_repo_file_create_test.go
index f03efaa0ea..17e26d966b 100644
--- a/tests/integration/api_repo_file_create_test.go
+++ b/tests/integration/api_repo_file_create_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_file_delete_test.go b/tests/integration/api_repo_file_delete_test.go
index 2c8b1e381f..1956c2a3a2 100644
--- a/tests/integration/api_repo_file_delete_test.go
+++ b/tests/integration/api_repo_file_delete_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_file_get_test.go b/tests/integration/api_repo_file_get_test.go
index cca72c2b3e..4fca55c93d 100644
--- a/tests/integration/api_repo_file_get_test.go
+++ b/tests/integration/api_repo_file_get_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_file_helpers.go b/tests/integration/api_repo_file_helpers.go
index 298bae95c0..d773bcd629 100644
--- a/tests/integration/api_repo_file_helpers.go
+++ b/tests/integration/api_repo_file_helpers.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_file_update_test.go b/tests/integration/api_repo_file_update_test.go
index a3be67ad84..eba1d78fe7 100644
--- a/tests/integration/api_repo_file_update_test.go
+++ b/tests/integration/api_repo_file_update_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_get_contents_list_test.go b/tests/integration/api_repo_get_contents_list_test.go
index 4f2f5cb528..e0db8329de 100644
--- a/tests/integration/api_repo_get_contents_list_test.go
+++ b/tests/integration/api_repo_get_contents_list_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_get_contents_test.go b/tests/integration/api_repo_get_contents_test.go
index dddc316e1a..ccbcfba486 100644
--- a/tests/integration/api_repo_get_contents_test.go
+++ b/tests/integration/api_repo_get_contents_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_git_blobs_test.go b/tests/integration/api_repo_git_blobs_test.go
index cb5116c743..1dd59776c1 100644
--- a/tests/integration/api_repo_git_blobs_test.go
+++ b/tests/integration/api_repo_git_blobs_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_git_commits_test.go b/tests/integration/api_repo_git_commits_test.go
index 99f83f943c..90d17795c1 100644
--- a/tests/integration/api_repo_git_commits_test.go
+++ b/tests/integration/api_repo_git_commits_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_git_hook_test.go b/tests/integration/api_repo_git_hook_test.go
index a6c4f91d4a..a3bbe9bbad 100644
--- a/tests/integration/api_repo_git_hook_test.go
+++ b/tests/integration/api_repo_git_hook_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_git_notes_test.go b/tests/integration/api_repo_git_notes_test.go
index 713c7599c3..e57055340e 100644
--- a/tests/integration/api_repo_git_notes_test.go
+++ b/tests/integration/api_repo_git_notes_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_git_ref_test.go b/tests/integration/api_repo_git_ref_test.go
index e8fc47f8dc..ee4ae6e126 100644
--- a/tests/integration/api_repo_git_ref_test.go
+++ b/tests/integration/api_repo_git_ref_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_git_tags_test.go b/tests/integration/api_repo_git_tags_test.go
index 3357f9568d..941ede45f9 100644
--- a/tests/integration/api_repo_git_tags_test.go
+++ b/tests/integration/api_repo_git_tags_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_git_trees_test.go b/tests/integration/api_repo_git_trees_test.go
index 385fec12ba..b99326e1ac 100644
--- a/tests/integration/api_repo_git_trees_test.go
+++ b/tests/integration/api_repo_git_trees_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_hook_test.go b/tests/integration/api_repo_hook_test.go
index e503834e18..cf080575da 100644
--- a/tests/integration/api_repo_hook_test.go
+++ b/tests/integration/api_repo_hook_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_languages_test.go b/tests/integration/api_repo_languages_test.go
index 98373fb6b1..17e626fa7f 100644
--- a/tests/integration/api_repo_languages_test.go
+++ b/tests/integration/api_repo_languages_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_lfs_locks_test.go b/tests/integration/api_repo_lfs_locks_test.go
index 2186933bd9..5aa1396941 100644
--- a/tests/integration/api_repo_lfs_locks_test.go
+++ b/tests/integration/api_repo_lfs_locks_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_lfs_migrate_test.go b/tests/integration/api_repo_lfs_migrate_test.go
index d2edf67e8b..50d0c5966b 100644
--- a/tests/integration/api_repo_lfs_migrate_test.go
+++ b/tests/integration/api_repo_lfs_migrate_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_lfs_test.go b/tests/integration/api_repo_lfs_test.go
index 440dd04a81..d4334ff8b9 100644
--- a/tests/integration/api_repo_lfs_test.go
+++ b/tests/integration/api_repo_lfs_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_raw_test.go b/tests/integration/api_repo_raw_test.go
index 9793e12b42..f050e354ac 100644
--- a/tests/integration/api_repo_raw_test.go
+++ b/tests/integration/api_repo_raw_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_tags_test.go b/tests/integration/api_repo_tags_test.go
index 5d3a209a76..5149542915 100644
--- a/tests/integration/api_repo_tags_test.go
+++ b/tests/integration/api_repo_tags_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_teams_test.go b/tests/integration/api_repo_teams_test.go
index 1e476a89e2..58ba841948 100644
--- a/tests/integration/api_repo_teams_test.go
+++ b/tests/integration/api_repo_teams_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_test.go b/tests/integration/api_repo_test.go
index bfe0c0aa9c..e32bb47bc7 100644
--- a/tests/integration/api_repo_test.go
+++ b/tests/integration/api_repo_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_repo_topic_test.go b/tests/integration/api_repo_topic_test.go
index 4e1e293890..81eb1a9427 100644
--- a/tests/integration/api_repo_topic_test.go
+++ b/tests/integration/api_repo_topic_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_settings_test.go b/tests/integration/api_settings_test.go
index b8da17b963..9881578fba 100644
--- a/tests/integration/api_settings_test.go
+++ b/tests/integration/api_settings_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_team_test.go b/tests/integration/api_team_test.go
index a667949c09..c6be5c1947 100644
--- a/tests/integration/api_team_test.go
+++ b/tests/integration/api_team_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_team_user_test.go b/tests/integration/api_team_user_test.go
index b999b97a2b..d09749d65c 100644
--- a/tests/integration/api_team_user_test.go
+++ b/tests/integration/api_team_user_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_token_test.go b/tests/integration/api_token_test.go
index 023bf30179..498bd41b0f 100644
--- a/tests/integration/api_token_test.go
+++ b/tests/integration/api_token_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_user_email_test.go b/tests/integration/api_user_email_test.go
index 7bd265187c..5f2592252a 100644
--- a/tests/integration/api_user_email_test.go
+++ b/tests/integration/api_user_email_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_user_follow_test.go b/tests/integration/api_user_follow_test.go
index e21556aa5b..65749521cc 100644
--- a/tests/integration/api_user_follow_test.go
+++ b/tests/integration/api_user_follow_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_user_heatmap_test.go b/tests/integration/api_user_heatmap_test.go
index da6af0118d..432306914c 100644
--- a/tests/integration/api_user_heatmap_test.go
+++ b/tests/integration/api_user_heatmap_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.package models
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_user_info_test.go b/tests/integration/api_user_info_test.go
index 27fec1d587..65262792b7 100644
--- a/tests/integration/api_user_info_test.go
+++ b/tests/integration/api_user_info_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_user_org_perm_test.go b/tests/integration/api_user_org_perm_test.go
index fef653545c..9483283e32 100644
--- a/tests/integration/api_user_org_perm_test.go
+++ b/tests/integration/api_user_org_perm_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_user_orgs_test.go b/tests/integration/api_user_orgs_test.go
index c28bf391eb..f29014e934 100644
--- a/tests/integration/api_user_orgs_test.go
+++ b/tests/integration/api_user_orgs_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.package models
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_user_search_test.go b/tests/integration/api_user_search_test.go
index 9e9276077b..58b24d0e1e 100644
--- a/tests/integration/api_user_search_test.go
+++ b/tests/integration/api_user_search_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.package models
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_user_star_test.go b/tests/integration/api_user_star_test.go
index 76c3dc2d17..63363f22de 100644
--- a/tests/integration/api_user_star_test.go
+++ b/tests/integration/api_user_star_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_user_watch_test.go b/tests/integration/api_user_watch_test.go
index e45050a278..295e639fd1 100644
--- a/tests/integration/api_user_watch_test.go
+++ b/tests/integration/api_user_watch_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/api_wiki_test.go b/tests/integration/api_wiki_test.go
index c6f4841d08..d56b04e913 100644
--- a/tests/integration/api_wiki_test.go
+++ b/tests/integration/api_wiki_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/attachment_test.go b/tests/integration/attachment_test.go
index 2d2c979f7b..a92814ecee 100644
--- a/tests/integration/attachment_test.go
+++ b/tests/integration/attachment_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/auth_ldap_test.go b/tests/integration/auth_ldap_test.go
index f3c3e6d7b3..88571ecd61 100644
--- a/tests/integration/auth_ldap_test.go
+++ b/tests/integration/auth_ldap_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/benchmarks_test.go b/tests/integration/benchmarks_test.go
index bf66d221fb..2f91f8273e 100644
--- a/tests/integration/benchmarks_test.go
+++ b/tests/integration/benchmarks_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/branches_test.go b/tests/integration/branches_test.go
index bd0bd63c50..efb3798bd7 100644
--- a/tests/integration/branches_test.go
+++ b/tests/integration/branches_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/change_default_branch_test.go b/tests/integration/change_default_branch_test.go
index 8edc0e63c4..703834b712 100644
--- a/tests/integration/change_default_branch_test.go
+++ b/tests/integration/change_default_branch_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/cmd_keys_test.go b/tests/integration/cmd_keys_test.go
index 0c72956c29..ccde048914 100644
--- a/tests/integration/cmd_keys_test.go
+++ b/tests/integration/cmd_keys_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/compare_test.go b/tests/integration/compare_test.go
index 134ae520a8..dc2bff89fd 100644
--- a/tests/integration/compare_test.go
+++ b/tests/integration/compare_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/cors_test.go b/tests/integration/cors_test.go
index c702c62e48..cc2d85b41e 100644
--- a/tests/integration/cors_test.go
+++ b/tests/integration/cors_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/create_no_session_test.go b/tests/integration/create_no_session_test.go
index c617b1828a..9a96ed61fa 100644
--- a/tests/integration/create_no_session_test.go
+++ b/tests/integration/create_no_session_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/csrf_test.go b/tests/integration/csrf_test.go
index 18a157412b..a789859889 100644
--- a/tests/integration/csrf_test.go
+++ b/tests/integration/csrf_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/delete_user_test.go b/tests/integration/delete_user_test.go
index 1d9d257f12..806b87dc4c 100644
--- a/tests/integration/delete_user_test.go
+++ b/tests/integration/delete_user_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/download_test.go b/tests/integration/download_test.go
index 9d3b17d103..9e03ec2882 100644
--- a/tests/integration/download_test.go
+++ b/tests/integration/download_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/dump_restore_test.go b/tests/integration/dump_restore_test.go
index 80c71810e3..e34738aaf1 100644
--- a/tests/integration/dump_restore_test.go
+++ b/tests/integration/dump_restore_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/editor_test.go b/tests/integration/editor_test.go
index 19e80dc7bf..4355dd0a4d 100644
--- a/tests/integration/editor_test.go
+++ b/tests/integration/editor_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/empty_repo_test.go b/tests/integration/empty_repo_test.go
index 8810363dc8..4bc1d811bf 100644
--- a/tests/integration/empty_repo_test.go
+++ b/tests/integration/empty_repo_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/eventsource_test.go b/tests/integration/eventsource_test.go
index 2f698659cb..e810a9fa24 100644
--- a/tests/integration/eventsource_test.go
+++ b/tests/integration/eventsource_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/explore_repos_test.go b/tests/integration/explore_repos_test.go
index dca3252753..26fd1dde64 100644
--- a/tests/integration/explore_repos_test.go
+++ b/tests/integration/explore_repos_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/git_clone_wiki_test.go b/tests/integration/git_clone_wiki_test.go
index e8764e6bd9..d7949dfe25 100644
--- a/tests/integration/git_clone_wiki_test.go
+++ b/tests/integration/git_clone_wiki_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/git_helper_for_declarative_test.go b/tests/integration/git_helper_for_declarative_test.go
index 45b4f44475..9e3ff9c448 100644
--- a/tests/integration/git_helper_for_declarative_test.go
+++ b/tests/integration/git_helper_for_declarative_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/git_smart_http_test.go b/tests/integration/git_smart_http_test.go
index 02b0e93870..15336b9b81 100644
--- a/tests/integration/git_smart_http_test.go
+++ b/tests/integration/git_smart_http_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/git_test.go b/tests/integration/git_test.go
index 6f656ef2ce..6508df1ef0 100644
--- a/tests/integration/git_test.go
+++ b/tests/integration/git_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/goget_test.go b/tests/integration/goget_test.go
index c969f4aff1..fab3911464 100644
--- a/tests/integration/goget_test.go
+++ b/tests/integration/goget_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/gpg_git_test.go b/tests/integration/gpg_git_test.go
index 4dcf6276c2..669212ff14 100644
--- a/tests/integration/gpg_git_test.go
+++ b/tests/integration/gpg_git_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/html_helper.go b/tests/integration/html_helper.go
index 35d61f7b3e..933bb51cf8 100644
--- a/tests/integration/html_helper.go
+++ b/tests/integration/html_helper.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/integration_test.go b/tests/integration/integration_test.go
index 416cc126bd..9bf4c38ee0 100644
--- a/tests/integration/integration_test.go
+++ b/tests/integration/integration_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/issue_test.go b/tests/integration/issue_test.go
index 1f0f894ca4..c913a2000c 100644
--- a/tests/integration/issue_test.go
+++ b/tests/integration/issue_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/lfs_getobject_test.go b/tests/integration/lfs_getobject_test.go
index f2b0ac80c3..1a486b6051 100644
--- a/tests/integration/lfs_getobject_test.go
+++ b/tests/integration/lfs_getobject_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/lfs_local_endpoint_test.go b/tests/integration/lfs_local_endpoint_test.go
index 4042dc95b3..d42888bbe1 100644
--- a/tests/integration/lfs_local_endpoint_test.go
+++ b/tests/integration/lfs_local_endpoint_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/links_test.go b/tests/integration/links_test.go
index 4eb29f0cee..9136f8f915 100644
--- a/tests/integration/links_test.go
+++ b/tests/integration/links_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/migrate_test.go b/tests/integration/migrate_test.go
index 99d5d6c8dd..9eca69cfcf 100644
--- a/tests/integration/migrate_test.go
+++ b/tests/integration/migrate_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/migration-test/migration_test.go b/tests/integration/migration-test/migration_test.go
index 0159fb4f3c..170a6dd444 100644
--- a/tests/integration/migration-test/migration_test.go
+++ b/tests/integration/migration-test/migration_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package migrations
diff --git a/tests/integration/mirror_pull_test.go b/tests/integration/mirror_pull_test.go
index 707cf46fa0..753b7e7663 100644
--- a/tests/integration/mirror_pull_test.go
+++ b/tests/integration/mirror_pull_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/mirror_push_test.go b/tests/integration/mirror_push_test.go
index f2adf5f5a3..b2ec6c0932 100644
--- a/tests/integration/mirror_push_test.go
+++ b/tests/integration/mirror_push_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/nonascii_branches_test.go b/tests/integration/nonascii_branches_test.go
index 638b9a6164..d9e5b0fce3 100644
--- a/tests/integration/nonascii_branches_test.go
+++ b/tests/integration/nonascii_branches_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/oauth_test.go b/tests/integration/oauth_test.go
index 7863313b14..9649b256a9 100644
--- a/tests/integration/oauth_test.go
+++ b/tests/integration/oauth_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/org_count_test.go b/tests/integration/org_count_test.go
index 96f39924f1..a6fe7f188e 100644
--- a/tests/integration/org_count_test.go
+++ b/tests/integration/org_count_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/org_team_invite_test.go b/tests/integration/org_team_invite_test.go
index 470478589a..4d848dfc60 100644
--- a/tests/integration/org_team_invite_test.go
+++ b/tests/integration/org_team_invite_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/org_test.go b/tests/integration/org_test.go
index d04fcf7f57..09a5f42082 100644
--- a/tests/integration/org_test.go
+++ b/tests/integration/org_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/privateactivity_test.go b/tests/integration/privateactivity_test.go
index 3f352e49c6..06019406d7 100644
--- a/tests/integration/privateactivity_test.go
+++ b/tests/integration/privateactivity_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/pull_compare_test.go b/tests/integration/pull_compare_test.go
index 60e69e97eb..fa385ddae4 100644
--- a/tests/integration/pull_compare_test.go
+++ b/tests/integration/pull_compare_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/pull_create_test.go b/tests/integration/pull_create_test.go
index b5cb7877bc..35f7cb8ab7 100644
--- a/tests/integration/pull_create_test.go
+++ b/tests/integration/pull_create_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/pull_merge_test.go b/tests/integration/pull_merge_test.go
index bec85e8a8d..e72d00ffb3 100644
--- a/tests/integration/pull_merge_test.go
+++ b/tests/integration/pull_merge_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/pull_review_test.go b/tests/integration/pull_review_test.go
index d713c0f858..68d80a1021 100644
--- a/tests/integration/pull_review_test.go
+++ b/tests/integration/pull_review_test.go
@@ -1,6 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
package integration
import (
diff --git a/tests/integration/pull_status_test.go b/tests/integration/pull_status_test.go
index 381cc73cd1..bca8ec848b 100644
--- a/tests/integration/pull_status_test.go
+++ b/tests/integration/pull_status_test.go
@@ -1,6 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
package integration
import (
diff --git a/tests/integration/pull_update_test.go b/tests/integration/pull_update_test.go
index 1bfe5c7050..1e20a63e66 100644
--- a/tests/integration/pull_update_test.go
+++ b/tests/integration/pull_update_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/release_test.go b/tests/integration/release_test.go
index 2a52a5cde2..b4f7560fa3 100644
--- a/tests/integration/release_test.go
+++ b/tests/integration/release_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/rename_branch_test.go b/tests/integration/rename_branch_test.go
index 9ea69702af..d8434c28bb 100644
--- a/tests/integration/rename_branch_test.go
+++ b/tests/integration/rename_branch_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/repo_activity_test.go b/tests/integration/repo_activity_test.go
index ea8845ac39..c8d0c46d64 100644
--- a/tests/integration/repo_activity_test.go
+++ b/tests/integration/repo_activity_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/repo_branch_test.go b/tests/integration/repo_branch_test.go
index 96ffa5a46e..c56aa43c51 100644
--- a/tests/integration/repo_branch_test.go
+++ b/tests/integration/repo_branch_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/repo_commits_search_test.go b/tests/integration/repo_commits_search_test.go
index 83f30758a4..1c27b6db9d 100644
--- a/tests/integration/repo_commits_search_test.go
+++ b/tests/integration/repo_commits_search_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/repo_commits_test.go b/tests/integration/repo_commits_test.go
index c9e7753596..438e1c2cc4 100644
--- a/tests/integration/repo_commits_test.go
+++ b/tests/integration/repo_commits_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/repo_fork_test.go b/tests/integration/repo_fork_test.go
index 4ab3577b54..26c81f5bee 100644
--- a/tests/integration/repo_fork_test.go
+++ b/tests/integration/repo_fork_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/repo_generate_test.go b/tests/integration/repo_generate_test.go
index 61a632721e..4654fd70fa 100644
--- a/tests/integration/repo_generate_test.go
+++ b/tests/integration/repo_generate_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/repo_migrate_test.go b/tests/integration/repo_migrate_test.go
index c69a2642cb..91e2961d6d 100644
--- a/tests/integration/repo_migrate_test.go
+++ b/tests/integration/repo_migrate_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/repo_search_test.go b/tests/integration/repo_search_test.go
index b20943c22a..34328100fd 100644
--- a/tests/integration/repo_search_test.go
+++ b/tests/integration/repo_search_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/repo_tag_test.go b/tests/integration/repo_tag_test.go
index e20c725915..5ea9392a99 100644
--- a/tests/integration/repo_tag_test.go
+++ b/tests/integration/repo_tag_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/repo_test.go b/tests/integration/repo_test.go
index 8e494a9af4..3692b11eca 100644
--- a/tests/integration/repo_test.go
+++ b/tests/integration/repo_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/repo_topic_test.go b/tests/integration/repo_topic_test.go
index 5ff0c8273a..58fee8418f 100644
--- a/tests/integration/repo_topic_test.go
+++ b/tests/integration/repo_topic_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/repo_watch_test.go b/tests/integration/repo_watch_test.go
index 152600bf29..c47080298e 100644
--- a/tests/integration/repo_watch_test.go
+++ b/tests/integration/repo_watch_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/repofiles_delete_test.go b/tests/integration/repofiles_delete_test.go
index f594efdeeb..6698b280bd 100644
--- a/tests/integration/repofiles_delete_test.go
+++ b/tests/integration/repofiles_delete_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/repofiles_update_test.go b/tests/integration/repofiles_update_test.go
index c62c49eeeb..47b61c1eeb 100644
--- a/tests/integration/repofiles_update_test.go
+++ b/tests/integration/repofiles_update_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/setting_test.go b/tests/integration/setting_test.go
index 6273545c23..71b28a6258 100644
--- a/tests/integration/setting_test.go
+++ b/tests/integration/setting_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/signin_test.go b/tests/integration/signin_test.go
index 7dc078e274..9ae45d3242 100644
--- a/tests/integration/signin_test.go
+++ b/tests/integration/signin_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/signout_test.go b/tests/integration/signout_test.go
index 1f1346a5c3..0416930c67 100644
--- a/tests/integration/signout_test.go
+++ b/tests/integration/signout_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/signup_test.go b/tests/integration/signup_test.go
index 1c598fd0d1..f983f98ad8 100644
--- a/tests/integration/signup_test.go
+++ b/tests/integration/signup_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/ssh_key_test.go b/tests/integration/ssh_key_test.go
index fd98af5125..89a2774303 100644
--- a/tests/integration/ssh_key_test.go
+++ b/tests/integration/ssh_key_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/timetracking_test.go b/tests/integration/timetracking_test.go
index 54b81ff3bc..52081615a0 100644
--- a/tests/integration/timetracking_test.go
+++ b/tests/integration/timetracking_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/user_avatar_test.go b/tests/integration/user_avatar_test.go
index 35be840c29..08ecb8b749 100644
--- a/tests/integration/user_avatar_test.go
+++ b/tests/integration/user_avatar_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/user_test.go b/tests/integration/user_test.go
index 017700ad40..eeaa6d6e00 100644
--- a/tests/integration/user_test.go
+++ b/tests/integration/user_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/version_test.go b/tests/integration/version_test.go
index 83be62d3f4..a6ae649b40 100644
--- a/tests/integration/version_test.go
+++ b/tests/integration/version_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/view_test.go b/tests/integration/view_test.go
index f55afb038c..f434446801 100644
--- a/tests/integration/view_test.go
+++ b/tests/integration/view_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/webfinger_test.go b/tests/integration/webfinger_test.go
index bb3447c809..226c25615f 100644
--- a/tests/integration/webfinger_test.go
+++ b/tests/integration/webfinger_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/integration/xss_test.go b/tests/integration/xss_test.go
index 53b23072ad..e575ed3990 100644
--- a/tests/integration/xss_test.go
+++ b/tests/integration/xss_test.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package integration
diff --git a/tests/test_utils.go b/tests/test_utils.go
index 0662530002..b4bd4a011e 100644
--- a/tests/test_utils.go
+++ b/tests/test_utils.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package tests
diff --git a/tests/testlogger.go b/tests/testlogger.go
index b65573a771..a7cc27a926 100644
--- a/tests/testlogger.go
+++ b/tests/testlogger.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package tests
diff --git a/tools/fuzz.go b/tools/fuzz.go
index 8098868d5e..449ba67067 100644
--- a/tools/fuzz.go
+++ b/tools/fuzz.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build gofuzz