aboutsummaryrefslogtreecommitdiffstats
path: root/routers/private
diff options
context:
space:
mode:
authorflynnnnnnnnnn <118399147+flynnnnnnnnnn@users.noreply.github.com>2022-11-27 13:20:29 -0500
committerGitHub <noreply@github.com>2022-11-27 18:20:29 +0000
commite81ccc406bf723a5a58d685e7782f281736affd4 (patch)
treebc9812f3f1779f8ce86b8f915d08aafd02e944b9 /routers/private
parentf6fd501841816f5e5c1c9a30fbc4c9a2a6f987bc (diff)
downloadgitea-e81ccc406bf723a5a58d685e7782f281736affd4.tar.gz
gitea-e81ccc406bf723a5a58d685e7782f281736affd4.zip
Implement FSFE REUSE for golang files (#21840)
Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers/private')
-rw-r--r--routers/private/default_branch.go3
-rw-r--r--routers/private/hook_post_receive.go3
-rw-r--r--routers/private/hook_pre_receive.go3
-rw-r--r--routers/private/hook_proc_receive.go3
-rw-r--r--routers/private/hook_verification.go3
-rw-r--r--routers/private/internal.go3
-rw-r--r--routers/private/internal_repo.go3
-rw-r--r--routers/private/key.go3
-rw-r--r--routers/private/mail.go3
-rw-r--r--routers/private/manager.go3
-rw-r--r--routers/private/manager_process.go3
-rw-r--r--routers/private/manager_unix.go3
-rw-r--r--routers/private/manager_windows.go3
-rw-r--r--routers/private/restore_repo.go3
-rw-r--r--routers/private/serv.go3
-rw-r--r--routers/private/ssh_log.go3
16 files changed, 16 insertions, 32 deletions
diff --git a/routers/private/default_branch.go b/routers/private/default_branch.go
index 55ffef43f3..268ebbe443 100644
--- a/routers/private/default_branch.go
+++ b/routers/private/default_branch.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/hook_post_receive.go b/routers/private/hook_post_receive.go
index 1370e5302b..9c69f9c345 100644
--- a/routers/private/hook_post_receive.go
+++ b/routers/private/hook_post_receive.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/hook_pre_receive.go b/routers/private/hook_pre_receive.go
index 86bdf60ab9..52a82bfa44 100644
--- a/routers/private/hook_pre_receive.go
+++ b/routers/private/hook_pre_receive.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/hook_proc_receive.go b/routers/private/hook_proc_receive.go
index 0653f8b0d2..05921e6f58 100644
--- a/routers/private/hook_proc_receive.go
+++ b/routers/private/hook_proc_receive.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/hook_verification.go b/routers/private/hook_verification.go
index 8a2d1cf33d..7b9550dfdd 100644
--- a/routers/private/hook_verification.go
+++ b/routers/private/hook_verification.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/internal.go b/routers/private/internal.go
index f8e451e80f..d5c85480a7 100644
--- a/routers/private/internal.go
+++ b/routers/private/internal.go
@@ -1,6 +1,5 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/internal_repo.go b/routers/private/internal_repo.go
index c50d2a01a7..2e6f87d6b0 100644
--- a/routers/private/internal_repo.go
+++ b/routers/private/internal_repo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/key.go b/routers/private/key.go
index 9977492c63..b536019dd7 100644
--- a/routers/private/key.go
+++ b/routers/private/key.go
@@ -1,6 +1,5 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/mail.go b/routers/private/mail.go
index 255e1d901d..622a01dd8f 100644
--- a/routers/private/mail.go
+++ b/routers/private/mail.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/routers/private/manager.go b/routers/private/manager.go
index e7f08ac455..f15da298d6 100644
--- a/routers/private/manager.go
+++ b/routers/private/manager.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/routers/private/manager_process.go b/routers/private/manager_process.go
index e12bbee18b..a5993bf371 100644
--- a/routers/private/manager_process.go
+++ b/routers/private/manager_process.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/routers/private/manager_unix.go b/routers/private/manager_unix.go
index 43cbdec01c..09ced33b8d 100644
--- a/routers/private/manager_unix.go
+++ b/routers/private/manager_unix.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/routers/private/manager_windows.go b/routers/private/manager_windows.go
index 2b72ee952d..b5382c7d91 100644
--- a/routers/private/manager_windows.go
+++ b/routers/private/manager_windows.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build windows
diff --git a/routers/private/restore_repo.go b/routers/private/restore_repo.go
index 34e06e51c2..97ac9a3c5a 100644
--- a/routers/private/restore_repo.go
+++ b/routers/private/restore_repo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private
diff --git a/routers/private/serv.go b/routers/private/serv.go
index ddb2e6aa8b..676d83d9e1 100644
--- a/routers/private/serv.go
+++ b/routers/private/serv.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// Package private includes all internal routes. The package name internal is ideal but Golang is not allowed, so we use private as package name instead.
package private
diff --git a/routers/private/ssh_log.go b/routers/private/ssh_log.go
index 2f1793a0e0..54604ad554 100644
--- a/routers/private/ssh_log.go
+++ b/routers/private/ssh_log.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package private