diff options
Diffstat (limited to 'services/repository')
36 files changed, 36 insertions, 72 deletions
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 |