summaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/packages/api.go3
-rw-r--r--routers/api/packages/composer/api.go3
-rw-r--r--routers/api/packages/composer/composer.go3
-rw-r--r--routers/api/packages/conan/auth.go3
-rw-r--r--routers/api/packages/conan/conan.go3
-rw-r--r--routers/api/packages/conan/search.go3
-rw-r--r--routers/api/packages/container/auth.go3
-rw-r--r--routers/api/packages/container/blob.go3
-rw-r--r--routers/api/packages/container/container.go3
-rw-r--r--routers/api/packages/container/errors.go3
-rw-r--r--routers/api/packages/container/manifest.go3
-rw-r--r--routers/api/packages/generic/generic.go3
-rw-r--r--routers/api/packages/helm/helm.go3
-rw-r--r--routers/api/packages/helper/helper.go3
-rw-r--r--routers/api/packages/maven/api.go3
-rw-r--r--routers/api/packages/maven/maven.go3
-rw-r--r--routers/api/packages/npm/api.go3
-rw-r--r--routers/api/packages/npm/npm.go3
-rw-r--r--routers/api/packages/nuget/api_v2.go3
-rw-r--r--routers/api/packages/nuget/api_v3.go3
-rw-r--r--routers/api/packages/nuget/auth.go3
-rw-r--r--routers/api/packages/nuget/links.go3
-rw-r--r--routers/api/packages/nuget/nuget.go3
-rw-r--r--routers/api/packages/pub/pub.go3
-rw-r--r--routers/api/packages/pypi/pypi.go3
-rw-r--r--routers/api/packages/pypi/pypi_test.go3
-rw-r--r--routers/api/packages/rubygems/rubygems.go3
-rw-r--r--routers/api/packages/vagrant/vagrant.go3
-rw-r--r--routers/api/v1/activitypub/person.go3
-rw-r--r--routers/api/v1/activitypub/reqsignature.go3
-rw-r--r--routers/api/v1/admin/adopt.go3
-rw-r--r--routers/api/v1/admin/cron.go3
-rw-r--r--routers/api/v1/admin/org.go3
-rw-r--r--routers/api/v1/admin/repo.go3
-rw-r--r--routers/api/v1/admin/user.go3
-rw-r--r--routers/api/v1/api.go3
-rw-r--r--routers/api/v1/auth.go3
-rw-r--r--routers/api/v1/auth_windows.go3
-rw-r--r--routers/api/v1/misc/markdown.go3
-rw-r--r--routers/api/v1/misc/markdown_test.go3
-rw-r--r--routers/api/v1/misc/nodeinfo.go3
-rw-r--r--routers/api/v1/misc/signing.go3
-rw-r--r--routers/api/v1/misc/version.go3
-rw-r--r--routers/api/v1/notify/notifications.go3
-rw-r--r--routers/api/v1/notify/repo.go3
-rw-r--r--routers/api/v1/notify/threads.go3
-rw-r--r--routers/api/v1/notify/user.go3
-rw-r--r--routers/api/v1/org/hook.go3
-rw-r--r--routers/api/v1/org/label.go3
-rw-r--r--routers/api/v1/org/member.go3
-rw-r--r--routers/api/v1/org/org.go3
-rw-r--r--routers/api/v1/org/team.go3
-rw-r--r--routers/api/v1/packages/package.go3
-rw-r--r--routers/api/v1/repo/blob.go3
-rw-r--r--routers/api/v1/repo/branch.go3
-rw-r--r--routers/api/v1/repo/collaborators.go3
-rw-r--r--routers/api/v1/repo/commits.go3
-rw-r--r--routers/api/v1/repo/file.go3
-rw-r--r--routers/api/v1/repo/fork.go3
-rw-r--r--routers/api/v1/repo/git_hook.go3
-rw-r--r--routers/api/v1/repo/git_ref.go3
-rw-r--r--routers/api/v1/repo/hook.go3
-rw-r--r--routers/api/v1/repo/hook_test.go3
-rw-r--r--routers/api/v1/repo/issue.go3
-rw-r--r--routers/api/v1/repo/issue_comment.go3
-rw-r--r--routers/api/v1/repo/issue_label.go3
-rw-r--r--routers/api/v1/repo/issue_reaction.go3
-rw-r--r--routers/api/v1/repo/issue_stopwatch.go3
-rw-r--r--routers/api/v1/repo/issue_subscription.go3
-rw-r--r--routers/api/v1/repo/issue_tracked_time.go3
-rw-r--r--routers/api/v1/repo/key.go3
-rw-r--r--routers/api/v1/repo/label.go3
-rw-r--r--routers/api/v1/repo/language.go3
-rw-r--r--routers/api/v1/repo/main_test.go3
-rw-r--r--routers/api/v1/repo/migrate.go3
-rw-r--r--routers/api/v1/repo/milestone.go3
-rw-r--r--routers/api/v1/repo/mirror.go3
-rw-r--r--routers/api/v1/repo/notes.go3
-rw-r--r--routers/api/v1/repo/patch.go3
-rw-r--r--routers/api/v1/repo/pull.go3
-rw-r--r--routers/api/v1/repo/pull_review.go3
-rw-r--r--routers/api/v1/repo/release.go3
-rw-r--r--routers/api/v1/repo/release_attachment.go3
-rw-r--r--routers/api/v1/repo/release_tags.go3
-rw-r--r--routers/api/v1/repo/repo.go3
-rw-r--r--routers/api/v1/repo/repo_test.go3
-rw-r--r--routers/api/v1/repo/star.go3
-rw-r--r--routers/api/v1/repo/status.go3
-rw-r--r--routers/api/v1/repo/subscriber.go3
-rw-r--r--routers/api/v1/repo/tag.go3
-rw-r--r--routers/api/v1/repo/teams.go3
-rw-r--r--routers/api/v1/repo/topic.go3
-rw-r--r--routers/api/v1/repo/transfer.go3
-rw-r--r--routers/api/v1/repo/tree.go3
-rw-r--r--routers/api/v1/repo/wiki.go3
-rw-r--r--routers/api/v1/settings/settings.go3
-rw-r--r--routers/api/v1/swagger/activitypub.go3
-rw-r--r--routers/api/v1/swagger/app.go3
-rw-r--r--routers/api/v1/swagger/cron.go3
-rw-r--r--routers/api/v1/swagger/issue.go3
-rw-r--r--routers/api/v1/swagger/key.go3
-rw-r--r--routers/api/v1/swagger/misc.go3
-rw-r--r--routers/api/v1/swagger/nodeinfo.go3
-rw-r--r--routers/api/v1/swagger/notify.go3
-rw-r--r--routers/api/v1/swagger/options.go3
-rw-r--r--routers/api/v1/swagger/org.go3
-rw-r--r--routers/api/v1/swagger/package.go3
-rw-r--r--routers/api/v1/swagger/repo.go3
-rw-r--r--routers/api/v1/swagger/settings.go3
-rw-r--r--routers/api/v1/swagger/user.go3
-rw-r--r--routers/api/v1/user/app.go3
-rw-r--r--routers/api/v1/user/email.go3
-rw-r--r--routers/api/v1/user/follower.go3
-rw-r--r--routers/api/v1/user/gpg_key.go3
-rw-r--r--routers/api/v1/user/helper.go3
-rw-r--r--routers/api/v1/user/key.go3
-rw-r--r--routers/api/v1/user/repo.go3
-rw-r--r--routers/api/v1/user/settings.go3
-rw-r--r--routers/api/v1/user/star.go3
-rw-r--r--routers/api/v1/user/user.go3
-rw-r--r--routers/api/v1/user/watch.go3
-rw-r--r--routers/api/v1/utils/git.go3
-rw-r--r--routers/api/v1/utils/hook.go3
-rw-r--r--routers/api/v1/utils/page.go3
124 files changed, 124 insertions, 248 deletions
diff --git a/routers/api/packages/api.go b/routers/api/packages/api.go
index 0d8b9ce61e..b523725c48 100644
--- a/routers/api/packages/api.go
+++ b/routers/api/packages/api.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/routers/api/packages/composer/api.go b/routers/api/packages/composer/api.go
index ed52d16513..a3bcf80417 100644
--- a/routers/api/packages/composer/api.go
+++ b/routers/api/packages/composer/api.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package composer
diff --git a/routers/api/packages/composer/composer.go b/routers/api/packages/composer/composer.go
index a19433c6f0..c6e0593b42 100644
--- a/routers/api/packages/composer/composer.go
+++ b/routers/api/packages/composer/composer.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package composer
diff --git a/routers/api/packages/conan/auth.go b/routers/api/packages/conan/auth.go
index 00855a97a4..fe33e2c740 100644
--- a/routers/api/packages/conan/auth.go
+++ b/routers/api/packages/conan/auth.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/routers/api/packages/conan/conan.go b/routers/api/packages/conan/conan.go
index e7c891b35f..d538cc7d39 100644
--- a/routers/api/packages/conan/conan.go
+++ b/routers/api/packages/conan/conan.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/routers/api/packages/conan/search.go b/routers/api/packages/conan/search.go
index 39dd6362aa..2bcf9df162 100644
--- a/routers/api/packages/conan/search.go
+++ b/routers/api/packages/conan/search.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/routers/api/packages/container/auth.go b/routers/api/packages/container/auth.go
index 770068a3bf..948001dcad 100644
--- a/routers/api/packages/container/auth.go
+++ b/routers/api/packages/container/auth.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/routers/api/packages/container/blob.go b/routers/api/packages/container/blob.go
index 06b450de02..fd5819d506 100644
--- a/routers/api/packages/container/blob.go
+++ b/routers/api/packages/container/blob.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/routers/api/packages/container/container.go b/routers/api/packages/container/container.go
index 7af06a9171..cbbdf8eb88 100644
--- a/routers/api/packages/container/container.go
+++ b/routers/api/packages/container/container.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/routers/api/packages/container/errors.go b/routers/api/packages/container/errors.go
index 0efbb081ca..1a9b0f32d2 100644
--- a/routers/api/packages/container/errors.go
+++ b/routers/api/packages/container/errors.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/routers/api/packages/container/manifest.go b/routers/api/packages/container/manifest.go
index 64c958c2d0..350933f3d2 100644
--- a/routers/api/packages/container/manifest.go
+++ b/routers/api/packages/container/manifest.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/routers/api/packages/generic/generic.go b/routers/api/packages/generic/generic.go
index 1c233da20f..5fba02cacd 100644
--- a/routers/api/packages/generic/generic.go
+++ b/routers/api/packages/generic/generic.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package generic
diff --git a/routers/api/packages/helm/helm.go b/routers/api/packages/helm/helm.go
index 11291ca14e..af863bc4b9 100644
--- a/routers/api/packages/helm/helm.go
+++ b/routers/api/packages/helm/helm.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package helm
diff --git a/routers/api/packages/helper/helper.go b/routers/api/packages/helper/helper.go
index 8cde84023f..660aaec1a3 100644
--- a/routers/api/packages/helper/helper.go
+++ b/routers/api/packages/helper/helper.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package helper
diff --git a/routers/api/packages/maven/api.go b/routers/api/packages/maven/api.go
index 4ca541dd6f..167fe42b56 100644
--- a/routers/api/packages/maven/api.go
+++ b/routers/api/packages/maven/api.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package maven
diff --git a/routers/api/packages/maven/maven.go b/routers/api/packages/maven/maven.go
index 3125062b92..0ca3fa1793 100644
--- a/routers/api/packages/maven/maven.go
+++ b/routers/api/packages/maven/maven.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package maven
diff --git a/routers/api/packages/npm/api.go b/routers/api/packages/npm/api.go
index 490387a0e4..f8d50f03cf 100644
--- a/routers/api/packages/npm/api.go
+++ b/routers/api/packages/npm/api.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package npm
diff --git a/routers/api/packages/npm/npm.go b/routers/api/packages/npm/npm.go
index 6c11286a86..4306d5ba36 100644
--- a/routers/api/packages/npm/npm.go
+++ b/routers/api/packages/npm/npm.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package npm
diff --git a/routers/api/packages/nuget/api_v2.go b/routers/api/packages/nuget/api_v2.go
index 60a5d9c0e4..c545d0fc4e 100644
--- a/routers/api/packages/nuget/api_v2.go
+++ b/routers/api/packages/nuget/api_v2.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/routers/api/packages/nuget/api_v3.go b/routers/api/packages/nuget/api_v3.go
index bb3e447bd6..b5900b6c0b 100644
--- a/routers/api/packages/nuget/api_v3.go
+++ b/routers/api/packages/nuget/api_v3.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/routers/api/packages/nuget/auth.go b/routers/api/packages/nuget/auth.go
index 1dad452648..2be102a38b 100644
--- a/routers/api/packages/nuget/auth.go
+++ b/routers/api/packages/nuget/auth.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/routers/api/packages/nuget/links.go b/routers/api/packages/nuget/links.go
index 618b54ae8d..1b02e46184 100644
--- a/routers/api/packages/nuget/links.go
+++ b/routers/api/packages/nuget/links.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/routers/api/packages/nuget/nuget.go b/routers/api/packages/nuget/nuget.go
index 06aaca596d..d6f7d1d7f6 100644
--- a/routers/api/packages/nuget/nuget.go
+++ b/routers/api/packages/nuget/nuget.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/routers/api/packages/pub/pub.go b/routers/api/packages/pub/pub.go
index 26cb9fbb9a..247950a214 100644
--- a/routers/api/packages/pub/pub.go
+++ b/routers/api/packages/pub/pub.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pub
diff --git a/routers/api/packages/pypi/pypi.go b/routers/api/packages/pypi/pypi.go
index 76801a92e1..826f58095e 100644
--- a/routers/api/packages/pypi/pypi.go
+++ b/routers/api/packages/pypi/pypi.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pypi
diff --git a/routers/api/packages/pypi/pypi_test.go b/routers/api/packages/pypi/pypi_test.go
index 56e327a347..3023692177 100644
--- a/routers/api/packages/pypi/pypi_test.go
+++ b/routers/api/packages/pypi/pypi_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pypi
diff --git a/routers/api/packages/rubygems/rubygems.go b/routers/api/packages/rubygems/rubygems.go
index f0b00f42c3..c1a10b5e78 100644
--- a/routers/api/packages/rubygems/rubygems.go
+++ b/routers/api/packages/rubygems/rubygems.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package rubygems
diff --git a/routers/api/packages/vagrant/vagrant.go b/routers/api/packages/vagrant/vagrant.go
index 746a2b19ba..7b76ab79b0 100644
--- a/routers/api/packages/vagrant/vagrant.go
+++ b/routers/api/packages/vagrant/vagrant.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package vagrant
diff --git a/routers/api/v1/activitypub/person.go b/routers/api/v1/activitypub/person.go
index 542ae7e120..8085580985 100644
--- a/routers/api/v1/activitypub/person.go
+++ b/routers/api/v1/activitypub/person.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/routers/api/v1/activitypub/reqsignature.go b/routers/api/v1/activitypub/reqsignature.go
index 649cb488b3..2d945c27a5 100644
--- a/routers/api/v1/activitypub/reqsignature.go
+++ b/routers/api/v1/activitypub/reqsignature.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package activitypub
diff --git a/routers/api/v1/admin/adopt.go b/routers/api/v1/admin/adopt.go
index 48222f89eb..0e4e498e98 100644
--- a/routers/api/v1/admin/adopt.go
+++ b/routers/api/v1/admin/adopt.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/api/v1/admin/cron.go b/routers/api/v1/admin/cron.go
index 0c4333b892..cc8c6c9e23 100644
--- a/routers/api/v1/admin/cron.go
+++ b/routers/api/v1/admin/cron.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/api/v1/admin/org.go b/routers/api/v1/admin/org.go
index 727f3193cf..9d0725e3e8 100644
--- a/routers/api/v1/admin/org.go
+++ b/routers/api/v1/admin/org.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/api/v1/admin/repo.go b/routers/api/v1/admin/repo.go
index 712ced89c9..83ed06e49b 100644
--- a/routers/api/v1/admin/repo.go
+++ b/routers/api/v1/admin/repo.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go
index 1a4b020011..183ade8a0a 100644
--- a/routers/api/v1/admin/user.go
+++ b/routers/api/v1/admin/user.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package admin
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index e41fccb635..3f5cf431f8 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package v1 Gitea API.
//
diff --git a/routers/api/v1/auth.go b/routers/api/v1/auth.go
index becf45f643..e44271ba14 100644
--- a/routers/api/v1/auth.go
+++ b/routers/api/v1/auth.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/routers/api/v1/auth_windows.go b/routers/api/v1/auth_windows.go
index d41c4bb223..3514e21baa 100644
--- a/routers/api/v1/auth_windows.go
+++ b/routers/api/v1/auth_windows.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package v1
diff --git a/routers/api/v1/misc/markdown.go b/routers/api/v1/misc/markdown.go
index eb0b78a5ba..3ff42f08d6 100644
--- a/routers/api/v1/misc/markdown.go
+++ b/routers/api/v1/misc/markdown.go
@@ -1,6 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package misc
diff --git a/routers/api/v1/misc/markdown_test.go b/routers/api/v1/misc/markdown_test.go
index 65ce060278..025f2f44b0 100644
--- a/routers/api/v1/misc/markdown_test.go
+++ b/routers/api/v1/misc/markdown_test.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package misc
diff --git a/routers/api/v1/misc/nodeinfo.go b/routers/api/v1/misc/nodeinfo.go
index a4ba440356..319c3483e1 100644
--- a/routers/api/v1/misc/nodeinfo.go
+++ b/routers/api/v1/misc/nodeinfo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package misc
diff --git a/routers/api/v1/misc/signing.go b/routers/api/v1/misc/signing.go
index 1070cc78cb..2ca9813e15 100644
--- a/routers/api/v1/misc/signing.go
+++ b/routers/api/v1/misc/signing.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package misc
diff --git a/routers/api/v1/misc/version.go b/routers/api/v1/misc/version.go
index b8c7d4f9ad..83fa35219a 100644
--- a/routers/api/v1/misc/version.go
+++ b/routers/api/v1/misc/version.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package misc
diff --git a/routers/api/v1/notify/notifications.go b/routers/api/v1/notify/notifications.go
index 9948f90a12..3b6a9bfdc2 100644
--- a/routers/api/v1/notify/notifications.go
+++ b/routers/api/v1/notify/notifications.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package notify
diff --git a/routers/api/v1/notify/repo.go b/routers/api/v1/notify/repo.go
index 6d9664400a..a2e72cb48d 100644
--- a/routers/api/v1/notify/repo.go
+++ b/routers/api/v1/notify/repo.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package notify
diff --git a/routers/api/v1/notify/threads.go b/routers/api/v1/notify/threads.go
index f8e4960912..47d0e49721 100644
--- a/routers/api/v1/notify/threads.go
+++ b/routers/api/v1/notify/threads.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package notify
diff --git a/routers/api/v1/notify/user.go b/routers/api/v1/notify/user.go
index 5f4d8b35c2..725eeff017 100644
--- a/routers/api/v1/notify/user.go
+++ b/routers/api/v1/notify/user.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package notify
diff --git a/routers/api/v1/org/hook.go b/routers/api/v1/org/hook.go
index f8ea5a876c..2e9d7c656a 100644
--- a/routers/api/v1/org/hook.go
+++ b/routers/api/v1/org/hook.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/api/v1/org/label.go b/routers/api/v1/org/label.go
index a67bd56dfc..c95a6be3d2 100644
--- a/routers/api/v1/org/label.go
+++ b/routers/api/v1/org/label.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/api/v1/org/member.go b/routers/api/v1/org/member.go
index 85fe2ded4d..fe07143958 100644
--- a/routers/api/v1/org/member.go
+++ b/routers/api/v1/org/member.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/api/v1/org/org.go b/routers/api/v1/org/org.go
index 5a8b253a20..cf985d44fb 100644
--- a/routers/api/v1/org/org.go
+++ b/routers/api/v1/org/org.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go
index b2bcc4d586..f233494fa5 100644
--- a/routers/api/v1/org/team.go
+++ b/routers/api/v1/org/team.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package org
diff --git a/routers/api/v1/packages/package.go b/routers/api/v1/packages/package.go
index 29fa6c85a5..433a79939c 100644
--- a/routers/api/v1/packages/package.go
+++ b/routers/api/v1/packages/package.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/routers/api/v1/repo/blob.go b/routers/api/v1/repo/blob.go
index 035f2dc1e1..d0004f0686 100644
--- a/routers/api/v1/repo/blob.go
+++ b/routers/api/v1/repo/blob.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/branch.go b/routers/api/v1/repo/branch.go
index d10a308df3..f5b1eb1c42 100644
--- a/routers/api/v1/repo/branch.go
+++ b/routers/api/v1/repo/branch.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/collaborators.go b/routers/api/v1/repo/collaborators.go
index 0e6236216c..383193daa7 100644
--- a/routers/api/v1/repo/collaborators.go
+++ b/routers/api/v1/repo/collaborators.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/commits.go b/routers/api/v1/repo/commits.go
index 4e77c3f2f5..682044407d 100644
--- a/routers/api/v1/repo/commits.go
+++ b/routers/api/v1/repo/commits.go
@@ -1,7 +1,6 @@
// Copyright 2018 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go
index aba5b1f9e7..623fe18e5d 100644
--- a/routers/api/v1/repo/file.go
+++ b/routers/api/v1/repo/file.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/fork.go b/routers/api/v1/repo/fork.go
index c0a79d1a63..e2cb4400f5 100644
--- a/routers/api/v1/repo/fork.go
+++ b/routers/api/v1/repo/fork.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/git_hook.go b/routers/api/v1/repo/git_hook.go
index 0b4e09cadd..963cbc719f 100644
--- a/routers/api/v1/repo/git_hook.go
+++ b/routers/api/v1/repo/git_hook.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/git_ref.go b/routers/api/v1/repo/git_ref.go
index 47f46df339..34d2dcfcc8 100644
--- a/routers/api/v1/repo/git_ref.go
+++ b/routers/api/v1/repo/git_ref.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/hook.go b/routers/api/v1/repo/hook.go
index 57fff7d326..9b84fb2b30 100644
--- a/routers/api/v1/repo/hook.go
+++ b/routers/api/v1/repo/hook.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/hook_test.go b/routers/api/v1/repo/hook_test.go
index fd9a165bf3..34dc990c3d 100644
--- a/routers/api/v1/repo/hook_test.go
+++ b/routers/api/v1/repo/hook_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go
index 60f9859e10..c539a36238 100644
--- a/routers/api/v1/repo/issue.go
+++ b/routers/api/v1/repo/issue.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/issue_comment.go b/routers/api/v1/repo/issue_comment.go
index a5da091727..7f6f24605d 100644
--- a/routers/api/v1/repo/issue_comment.go
+++ b/routers/api/v1/repo/issue_comment.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/issue_label.go b/routers/api/v1/repo/issue_label.go
index 091f1ce27c..04d70913c7 100644
--- a/routers/api/v1/repo/issue_label.go
+++ b/routers/api/v1/repo/issue_label.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/issue_reaction.go b/routers/api/v1/repo/issue_reaction.go
index fb7fd713b3..dcfe7967b5 100644
--- a/routers/api/v1/repo/issue_reaction.go
+++ b/routers/api/v1/repo/issue_reaction.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/issue_stopwatch.go b/routers/api/v1/repo/issue_stopwatch.go
index 941b22e454..110139cc36 100644
--- a/routers/api/v1/repo/issue_stopwatch.go
+++ b/routers/api/v1/repo/issue_stopwatch.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/issue_subscription.go b/routers/api/v1/repo/issue_subscription.go
index 5e03e42b4c..32832d83f7 100644
--- a/routers/api/v1/repo/issue_subscription.go
+++ b/routers/api/v1/repo/issue_subscription.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/issue_tracked_time.go b/routers/api/v1/repo/issue_tracked_time.go
index e3abb973be..6786d23a93 100644
--- a/routers/api/v1/repo/issue_tracked_time.go
+++ b/routers/api/v1/repo/issue_tracked_time.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/key.go b/routers/api/v1/repo/key.go
index 14f6aa6148..cff6850469 100644
--- a/routers/api/v1/repo/key.go
+++ b/routers/api/v1/repo/key.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go
index 8b1e298668..8b49becd37 100644
--- a/routers/api/v1/repo/label.go
+++ b/routers/api/v1/repo/label.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/language.go b/routers/api/v1/repo/language.go
index ca803cb68b..12f1761ad0 100644
--- a/routers/api/v1/repo/language.go
+++ b/routers/api/v1/repo/language.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/main_test.go b/routers/api/v1/repo/main_test.go
index 1f91a24937..543fb922d6 100644
--- a/routers/api/v1/repo/main_test.go
+++ b/routers/api/v1/repo/main_test.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/migrate.go b/routers/api/v1/repo/migrate.go
index aeef862b1f..a0316c9a78 100644
--- a/routers/api/v1/repo/migrate.go
+++ b/routers/api/v1/repo/migrate.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/milestone.go b/routers/api/v1/repo/milestone.go
index 0e8800510b..2b80b4df73 100644
--- a/routers/api/v1/repo/milestone.go
+++ b/routers/api/v1/repo/milestone.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/mirror.go b/routers/api/v1/repo/mirror.go
index 91e5e0c031..b693c0e7db 100644
--- a/routers/api/v1/repo/mirror.go
+++ b/routers/api/v1/repo/mirror.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/notes.go b/routers/api/v1/repo/notes.go
index ee3133adec..91eebb4c72 100644
--- a/routers/api/v1/repo/notes.go
+++ b/routers/api/v1/repo/notes.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/patch.go b/routers/api/v1/repo/patch.go
index 40afe2d92b..6fbb9e7b3a 100644
--- a/routers/api/v1/repo/patch.go
+++ b/routers/api/v1/repo/patch.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/pull.go b/routers/api/v1/repo/pull.go
index fba7ed6462..53505e998c 100644
--- a/routers/api/v1/repo/pull.go
+++ b/routers/api/v1/repo/pull.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/pull_review.go b/routers/api/v1/repo/pull_review.go
index df88e2a57b..2f357afb79 100644
--- a/routers/api/v1/repo/pull_review.go
+++ b/routers/api/v1/repo/pull_review.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go
index 60cc19d565..4e1927ea3d 100644
--- a/routers/api/v1/repo/release.go
+++ b/routers/api/v1/repo/release.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/release_attachment.go b/routers/api/v1/repo/release_attachment.go
index 02f85d384a..88632b4637 100644
--- a/routers/api/v1/repo/release_attachment.go
+++ b/routers/api/v1/repo/release_attachment.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/release_tags.go b/routers/api/v1/repo/release_tags.go
index 77395bb469..5e1f1860ae 100644
--- a/routers/api/v1/repo/release_tags.go
+++ b/routers/api/v1/repo/release_tags.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go
index 29febe751c..e8603d1917 100644
--- a/routers/api/v1/repo/repo.go
+++ b/routers/api/v1/repo/repo.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/repo_test.go b/routers/api/v1/repo/repo_test.go
index 9acc0ee7d2..59c3bde819 100644
--- a/routers/api/v1/repo/repo_test.go
+++ b/routers/api/v1/repo/repo_test.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/star.go b/routers/api/v1/repo/star.go
index c78c3cc512..a3d1105873 100644
--- a/routers/api/v1/repo/star.go
+++ b/routers/api/v1/repo/star.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/status.go b/routers/api/v1/repo/status.go
index 97ef69a6ea..84827a91ad 100644
--- a/routers/api/v1/repo/status.go
+++ b/routers/api/v1/repo/status.go
@@ -1,6 +1,5 @@
// Copyright 2017 Gitea. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/subscriber.go b/routers/api/v1/repo/subscriber.go
index c1aaa24193..5cc94abd48 100644
--- a/routers/api/v1/repo/subscriber.go
+++ b/routers/api/v1/repo/subscriber.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/tag.go b/routers/api/v1/repo/tag.go
index ab31866162..6b38a08c2f 100644
--- a/routers/api/v1/repo/tag.go
+++ b/routers/api/v1/repo/tag.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/teams.go b/routers/api/v1/repo/teams.go
index f485f2086e..1ea3ae0008 100644
--- a/routers/api/v1/repo/teams.go
+++ b/routers/api/v1/repo/teams.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/topic.go b/routers/api/v1/repo/topic.go
index 64dc763dc3..316b190259 100644
--- a/routers/api/v1/repo/topic.go
+++ b/routers/api/v1/repo/topic.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/transfer.go b/routers/api/v1/repo/transfer.go
index 067a4ebe19..a40419e13e 100644
--- a/routers/api/v1/repo/transfer.go
+++ b/routers/api/v1/repo/transfer.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/tree.go b/routers/api/v1/repo/tree.go
index b8294ebe31..9df96204cb 100644
--- a/routers/api/v1/repo/tree.go
+++ b/routers/api/v1/repo/tree.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/repo/wiki.go b/routers/api/v1/repo/wiki.go
index 734a550a71..0b55a9b281 100644
--- a/routers/api/v1/repo/wiki.go
+++ b/routers/api/v1/repo/wiki.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package repo
diff --git a/routers/api/v1/settings/settings.go b/routers/api/v1/settings/settings.go
index 36f93893a8..02bda1309d 100644
--- a/routers/api/v1/settings/settings.go
+++ b/routers/api/v1/settings/settings.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package settings
diff --git a/routers/api/v1/swagger/activitypub.go b/routers/api/v1/swagger/activitypub.go
index afc0c05057..91341669da 100644
--- a/routers/api/v1/swagger/activitypub.go
+++ b/routers/api/v1/swagger/activitypub.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/app.go b/routers/api/v1/swagger/app.go
index 9783abe1a0..6a08b11874 100644
--- a/routers/api/v1/swagger/app.go
+++ b/routers/api/v1/swagger/app.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/cron.go b/routers/api/v1/swagger/cron.go
index 85f2ed0e35..00cfbe0adb 100644
--- a/routers/api/v1/swagger/cron.go
+++ b/routers/api/v1/swagger/cron.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/issue.go b/routers/api/v1/swagger/issue.go
index 09e7077b20..62458a3424 100644
--- a/routers/api/v1/swagger/issue.go
+++ b/routers/api/v1/swagger/issue.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/key.go b/routers/api/v1/swagger/key.go
index c3da37af63..8390833589 100644
--- a/routers/api/v1/swagger/key.go
+++ b/routers/api/v1/swagger/key.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/misc.go b/routers/api/v1/swagger/misc.go
index 1d3c257efa..a4052a6a76 100644
--- a/routers/api/v1/swagger/misc.go
+++ b/routers/api/v1/swagger/misc.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/nodeinfo.go b/routers/api/v1/swagger/nodeinfo.go
index c1ecf3a3f3..8650dfa092 100644
--- a/routers/api/v1/swagger/nodeinfo.go
+++ b/routers/api/v1/swagger/nodeinfo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/notify.go b/routers/api/v1/swagger/notify.go
index cd30d496e0..743d807a0a 100644
--- a/routers/api/v1/swagger/notify.go
+++ b/routers/api/v1/swagger/notify.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go
index e8cfc0706f..979b184075 100644
--- a/routers/api/v1/swagger/options.go
+++ b/routers/api/v1/swagger/options.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/org.go b/routers/api/v1/swagger/org.go
index d98e821ba7..0105446b00 100644
--- a/routers/api/v1/swagger/org.go
+++ b/routers/api/v1/swagger/org.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/package.go b/routers/api/v1/swagger/package.go
index 2a1f057314..eada12d1ea 100644
--- a/routers/api/v1/swagger/package.go
+++ b/routers/api/v1/swagger/package.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/repo.go b/routers/api/v1/swagger/repo.go
index 642b1b7b91..bd867213a6 100644
--- a/routers/api/v1/swagger/repo.go
+++ b/routers/api/v1/swagger/repo.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/settings.go b/routers/api/v1/swagger/settings.go
index 4bf153cb9c..a9466699df 100644
--- a/routers/api/v1/swagger/settings.go
+++ b/routers/api/v1/swagger/settings.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/swagger/user.go b/routers/api/v1/swagger/user.go
index 857bdc2a14..fb6d185ee7 100644
--- a/routers/api/v1/swagger/user.go
+++ b/routers/api/v1/swagger/user.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package swagger
diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go
index 14f1592591..6cb7b812b2 100644
--- a/routers/api/v1/user/app.go
+++ b/routers/api/v1/user/app.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/email.go b/routers/api/v1/user/email.go
index 31c13172fc..84823aaed2 100644
--- a/routers/api/v1/user/email.go
+++ b/routers/api/v1/user/email.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/follower.go b/routers/api/v1/user/follower.go
index 22f8f40e1c..38ddf990c4 100644
--- a/routers/api/v1/user/follower.go
+++ b/routers/api/v1/user/follower.go
@@ -1,7 +1,6 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/gpg_key.go b/routers/api/v1/user/gpg_key.go
index b87cf0041e..7c91d2ac65 100644
--- a/routers/api/v1/user/gpg_key.go
+++ b/routers/api/v1/user/gpg_key.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/helper.go b/routers/api/v1/user/helper.go
index ae7fa5248e..28f600ad92 100644
--- a/routers/api/v1/user/helper.go
+++ b/routers/api/v1/user/helper.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/key.go b/routers/api/v1/user/key.go
index 71a2c910a6..d00eec85e4 100644
--- a/routers/api/v1/user/key.go
+++ b/routers/api/v1/user/key.go
@@ -1,6 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/repo.go b/routers/api/v1/user/repo.go
index d1917a9938..2af70f9ad3 100644
--- a/routers/api/v1/user/repo.go
+++ b/routers/api/v1/user/repo.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/settings.go b/routers/api/v1/user/settings.go
index f00bf8c268..89bfd83efc 100644
--- a/routers/api/v1/user/settings.go
+++ b/routers/api/v1/user/settings.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/star.go b/routers/api/v1/user/star.go
index 96748c630d..2ef5806974 100644
--- a/routers/api/v1/user/star.go
+++ b/routers/api/v1/user/star.go
@@ -1,7 +1,6 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go
index 69197aef23..8a21c2c7ca 100644
--- a/routers/api/v1/user/user.go
+++ b/routers/api/v1/user/user.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/user/watch.go b/routers/api/v1/user/watch.go
index 7765a399f3..43c097444e 100644
--- a/routers/api/v1/user/watch.go
+++ b/routers/api/v1/user/watch.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package user
diff --git a/routers/api/v1/utils/git.go b/routers/api/v1/utils/git.go
index 816f8b3595..2801dee8ba 100644
--- a/routers/api/v1/utils/git.go
+++ b/routers/api/v1/utils/git.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package utils
diff --git a/routers/api/v1/utils/hook.go b/routers/api/v1/utils/hook.go
index aa922f4f5b..7faf609ae8 100644
--- a/routers/api/v1/utils/hook.go
+++ b/routers/api/v1/utils/hook.go
@@ -1,6 +1,5 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package utils
diff --git a/routers/api/v1/utils/page.go b/routers/api/v1/utils/page.go
index 608bec7395..ef5806fa92 100644
--- a/routers/api/v1/utils/page.go
+++ b/routers/api/v1/utils/page.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package utils