From 37420442ded9acaa8be10ab065881d050df6d9d1 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Fri, 12 Apr 2024 13:52:26 +0200 Subject: [PATCH] unify copyright comment --- models/forgefed/activity.go | 2 +- models/forgefed/actor.go | 2 +- models/forgefed/actor_test.go | 2 +- models/forgefed/federationhost_test.go | 2 +- models/repo/following_repo.go | 2 +- models/repo/repo.go | 3 ++- models/repo/repo_repository.go | 2 +- models/repo/repo_test.go | 1 + models/user/user.go | 2 +- models/user/user_test.go | 1 + modules/activitypub/client.go | 3 ++- modules/activitypub/client_test.go | 2 +- modules/templates/helper.go | 1 + modules/validation/helpers.go | 1 + modules/validation/validatable.go | 3 ++- modules/validation/validatable_test.go | 2 +- routers/api/v1/activitypub/repository.go | 2 +- routers/api/v1/activitypub/repository_test.go | 3 +++ routers/api/v1/api.go | 2 +- routers/api/v1/swagger/options.go | 3 ++- routers/api/v1/user/star.go | 2 +- routers/utils/utils.go | 3 ++- routers/web/repo/repo.go | 2 +- routers/web/repo/setting/setting.go | 2 +- services/context/repo.go | 1 + services/context/repository.go | 2 +- services/forms/repo_form.go | 1 + services/repository/repository.go | 1 + services/repository/star.go | 2 +- services/user/user.go | 1 + 30 files changed, 37 insertions(+), 21 deletions(-) diff --git a/models/forgefed/activity.go b/models/forgefed/activity.go index 32b375d8b3..47e7438604 100644 --- a/models/forgefed/activity.go +++ b/models/forgefed/activity.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Forgejo Authors. All rights reserved. +// Copyright 2023, 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package forgefed diff --git a/models/forgefed/actor.go b/models/forgefed/actor.go index b422ddb201..d504eecc79 100644 --- a/models/forgefed/actor.go +++ b/models/forgefed/actor.go @@ -1,4 +1,4 @@ -// Copyright 2023 The forgejo Authors. All rights reserved. +// Copyright 2023, 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package forgefed diff --git a/models/forgefed/actor_test.go b/models/forgefed/actor_test.go index 40e2a25f4d..88d2867429 100644 --- a/models/forgefed/actor_test.go +++ b/models/forgefed/actor_test.go @@ -1,4 +1,4 @@ -// Copyright 2023 The forgejo Authors. All rights reserved. +// Copyright 2023, 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package forgefed diff --git a/models/forgefed/federationhost_test.go b/models/forgefed/federationhost_test.go index 75ddfff9dd..3ab6810a17 100644 --- a/models/forgefed/federationhost_test.go +++ b/models/forgefed/federationhost_test.go @@ -1,4 +1,4 @@ -// Copyright 2024 The forgejo Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package forgefed diff --git a/models/repo/following_repo.go b/models/repo/following_repo.go index b5c932ef52..c8e155eac6 100644 --- a/models/repo/following_repo.go +++ b/models/repo/following_repo.go @@ -1,4 +1,4 @@ -// Copyright 2024 The forgejo Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package repo diff --git a/models/repo/repo.go b/models/repo/repo.go index 3298ca8c4d..8af38f6248 100644 --- a/models/repo/repo.go +++ b/models/repo/repo.go @@ -1,4 +1,5 @@ -// Copyright 2021, 2024 The Gitea & forgejo Authors. All rights reserved. +// Copyright 2021 The Gitea Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package repo diff --git a/models/repo/repo_repository.go b/models/repo/repo_repository.go index a9d91d3318..1835e440fd 100644 --- a/models/repo/repo_repository.go +++ b/models/repo/repo_repository.go @@ -1,4 +1,4 @@ -// Copyright 2024 The forgejo Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT // ToDo: Is this package the right place for federated repo? May need to diskuss this. package repo diff --git a/models/repo/repo_test.go b/models/repo/repo_test.go index 209aa99e44..7fa5f4fb68 100644 --- a/models/repo/repo_test.go +++ b/models/repo/repo_test.go @@ -1,4 +1,5 @@ // Copyright 2017 The Gitea Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package repo_test diff --git a/models/user/user.go b/models/user/user.go index 5afdec9a07..322854e56b 100644 --- a/models/user/user.go +++ b/models/user/user.go @@ -1,6 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved. -// Copyright 2024 The forgejo Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package user diff --git a/models/user/user_test.go b/models/user/user_test.go index 1ba9778315..53b6bce6f3 100644 --- a/models/user/user_test.go +++ b/models/user/user_test.go @@ -1,4 +1,5 @@ // Copyright 2017 The Gitea Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package user_test diff --git a/modules/activitypub/client.go b/modules/activitypub/client.go index 23475ab065..4962ad79a4 100644 --- a/modules/activitypub/client.go +++ b/modules/activitypub/client.go @@ -1,4 +1,5 @@ -// Copyright 2022, 2023 The Forgejo & Gitea Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT // TODO: Think about whether this should be moved to services/activitypub (compare to exosy/services/activitypub/client.go) diff --git a/modules/activitypub/client_test.go b/modules/activitypub/client_test.go index b84d0ac158..2ef16fcdf5 100644 --- a/modules/activitypub/client_test.go +++ b/modules/activitypub/client_test.go @@ -1,5 +1,5 @@ // Copyright 2022 The Gitea Authors. All rights reserved. -// Copyright 2023 The forgejo Authors. All rights reserved. +// Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub diff --git a/modules/templates/helper.go b/modules/templates/helper.go index f5569e6e96..9e6b5baf17 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -1,3 +1,4 @@ +// Copyright 2024 The Forgejo Authors. All rights reserved. // Copyright 2018 The Gitea Authors. All rights reserved. // Copyright 2014 The Gogs Authors. All rights reserved. // SPDX-License-Identifier: MIT diff --git a/modules/validation/helpers.go b/modules/validation/helpers.go index 6f2fc6ca6e..415df4154c 100644 --- a/modules/validation/helpers.go +++ b/modules/validation/helpers.go @@ -1,3 +1,4 @@ +// Copyright 2024 The Forgejo Authors. All rights reserved. // Copyright 2018 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT diff --git a/modules/validation/validatable.go b/modules/validation/validatable.go index 1e9de3929f..ec69da14f9 100644 --- a/modules/validation/validatable.go +++ b/modules/validation/validatable.go @@ -1,4 +1,5 @@ -// Copyright 2023 The forgejo Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. +// Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package validation diff --git a/modules/validation/validatable_test.go b/modules/validation/validatable_test.go index b86bd20e05..daa3678683 100644 --- a/modules/validation/validatable_test.go +++ b/modules/validation/validatable_test.go @@ -1,4 +1,4 @@ -// Copyright 2024 The forgejo Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package validation diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index 68e4a51a83..65d5fc9074 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -1,4 +1,4 @@ -// Copyright 2023, 2024 The forgejo Authors. All rights reserved. +// Copyright 2023, 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub diff --git a/routers/api/v1/activitypub/repository_test.go b/routers/api/v1/activitypub/repository_test.go index bd593b27af..acd588d99b 100644 --- a/routers/api/v1/activitypub/repository_test.go +++ b/routers/api/v1/activitypub/repository_test.go @@ -1,3 +1,6 @@ +// Copyright 2024 The Forgejo Authors. All rights reserved. +// SPDX-License-Identifier: MIT + package activitypub import ( diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index e109824885..25311aa7a6 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -1,6 +1,6 @@ // Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2016 The Gitea Authors. All rights reserved. -// Copyright 2023 The forgejo Authors. All rights reserved. +// Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT // Package v1 Gitea API diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go index e741a7dfab..55effaab6f 100644 --- a/routers/api/v1/swagger/options.go +++ b/routers/api/v1/swagger/options.go @@ -1,4 +1,5 @@ -// Copyright 2023 The Gitea & forgejo Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. +// Copyright 2017 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT package swagger diff --git a/routers/api/v1/user/star.go b/routers/api/v1/user/star.go index 4d9a4f5fad..e0bb580878 100644 --- a/routers/api/v1/user/star.go +++ b/routers/api/v1/user/star.go @@ -1,6 +1,6 @@ // Copyright 2016 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. -// Copyright 2024 The forgejo Authors. +// Copyright 2024 The Forgejo Authors. // SPDX-License-Identifier: MIT package user diff --git a/routers/utils/utils.go b/routers/utils/utils.go index 3d8d1b8656..93359a842d 100644 --- a/routers/utils/utils.go +++ b/routers/utils/utils.go @@ -1,4 +1,5 @@ -// Copyright 2017, 2023 The Gitea & forgejo Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. +// Copyright 2017, 2023 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT package utils diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go index b95b3f788c..a728e2f0df 100644 --- a/routers/web/repo/repo.go +++ b/routers/web/repo/repo.go @@ -1,6 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2020 The Gitea Authors. All rights reserved. -// Copyright 2024 The forgejo Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package repo diff --git a/routers/web/repo/setting/setting.go b/routers/web/repo/setting/setting.go index 08e324b77b..773bc5be6b 100644 --- a/routers/web/repo/setting/setting.go +++ b/routers/web/repo/setting/setting.go @@ -1,6 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2018 The Gitea Authors. All rights reserved. -// Copyright 2024 The forgejo Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package setting diff --git a/services/context/repo.go b/services/context/repo.go index 43aa7d31c8..d865ee25aa 100644 --- a/services/context/repo.go +++ b/services/context/repo.go @@ -1,3 +1,4 @@ +// Copyright 2024 The Forgejo Authors. All rights reserved. // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2017 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT diff --git a/services/context/repository.go b/services/context/repository.go index c49d5bb4e3..d69a5f317d 100644 --- a/services/context/repository.go +++ b/services/context/repository.go @@ -1,4 +1,4 @@ -// Copyright 2023 The forgejo Authors. All rights reserved. +// Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package context diff --git a/services/forms/repo_form.go b/services/forms/repo_form.go index 25c70bf81a..7d692598df 100644 --- a/services/forms/repo_form.go +++ b/services/forms/repo_form.go @@ -1,3 +1,4 @@ +// Copyright 2024 The Forgejo Authors. All rights reserved. // Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2017 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT diff --git a/services/repository/repository.go b/services/repository/repository.go index 088cb654d4..742d93dd2e 100644 --- a/services/repository/repository.go +++ b/services/repository/repository.go @@ -1,3 +1,4 @@ +// Copyright 2024 The Forgejo Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT diff --git a/services/repository/star.go b/services/repository/star.go index 2162544713..b44b3f1894 100644 --- a/services/repository/star.go +++ b/services/repository/star.go @@ -1,4 +1,4 @@ -// Copyright 2024 The forgejo Authors. All rights reserved. +// Copyright 2024 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package repository diff --git a/services/user/user.go b/services/user/user.go index 183628410c..4e983eb9f6 100644 --- a/services/user/user.go +++ b/services/user/user.go @@ -1,3 +1,4 @@ +// Copyright 2024 The Forgejo Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT