diff --git a/models/activities/action_test.go b/models/activities/action_test.go index 485305761c..29312bd482 100644 --- a/models/activities/action_test.go +++ b/models/activities/action_test.go @@ -9,7 +9,7 @@ import ( activities_model "code.gitea.io/gitea/models/activities" "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" + issue_model "code.gitea.io/gitea/models/issues" repo_model "code.gitea.io/gitea/models/repo" "code.gitea.io/gitea/models/unittest" user_model "code.gitea.io/gitea/models/user" @@ -30,7 +30,7 @@ func TestAction_GetRepoLink(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1}) owner := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: repo.OwnerID}) - comment := unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{ID: 2}) + comment := unittest.AssertExistsAndLoadBean(t, &issue_model.Comment{ID: 2}) action := &activities_model.Action{RepoID: repo.ID, CommentID: comment.ID} setting.AppSubURL = "/suburl" expected := path.Join(setting.AppSubURL, owner.Name, repo.Name) diff --git a/services/activitypub/client.go b/services/activitypub/client.go index 9fb5ba448c..ed5c9990d6 100644 --- a/services/activitypub/client.go +++ b/services/activitypub/client.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Forgejo Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub diff --git a/services/activitypub/client_test.go b/services/activitypub/client_test.go index 8438c20a60..0ab512c5ba 100644 --- a/services/activitypub/client_test.go +++ b/services/activitypub/client_test.go @@ -1,4 +1,4 @@ -// Copyright 2023 The Forgejo Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub diff --git a/tests/integration/api_comment_attachment_test.go b/tests/integration/api_comment_attachment_test.go index 5f3583de7a..b23db53d28 100644 --- a/tests/integration/api_comment_attachment_test.go +++ b/tests/integration/api_comment_attachment_test.go @@ -1,5 +1,6 @@ // Copyright 2021 The Gitea Authors. All rights reserved. -// SPDX-License-Identifier: MIT +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. package integration diff --git a/tests/integration/api_issue_attachment_test.go b/tests/integration/api_issue_attachment_test.go index 44c2e1fffd..0558dda56a 100644 --- a/tests/integration/api_issue_attachment_test.go +++ b/tests/integration/api_issue_attachment_test.go @@ -1,5 +1,6 @@ // Copyright 2021 The Gitea Authors. All rights reserved. -// SPDX-License-Identifier: MIT +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. package integration diff --git a/tests/integration/markup_external_test.go b/tests/integration/markup_external_test.go index f031f646e0..6ea0226ec6 100644 --- a/tests/integration/markup_external_test.go +++ b/tests/integration/markup_external_test.go @@ -1,5 +1,6 @@ // Copyright 2022 The Gitea Authors. All rights reserved. -// SPDX-License-Identifier: MIT +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. package integration