aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-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
233 files changed, 233 insertions, 466 deletions
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