diff options
author | flynnnnnnnnnn <118399147+flynnnnnnnnnn@users.noreply.github.com> | 2022-11-27 13:20:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 18:20:29 +0000 |
commit | e81ccc406bf723a5a58d685e7782f281736affd4 (patch) | |
tree | bc9812f3f1779f8ce86b8f915d08aafd02e944b9 /models/issues | |
parent | f6fd501841816f5e5c1c9a30fbc4c9a2a6f987bc (diff) | |
download | gitea-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 'models/issues')
38 files changed, 38 insertions, 76 deletions
diff --git a/models/issues/assignees.go b/models/issues/assignees.go index 19480fa1e1..25ecd4b05c 100644 --- a/models/issues/assignees.go +++ b/models/issues/assignees.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 issues diff --git a/models/issues/assignees_test.go b/models/issues/assignees_test.go index 4286bdd7ee..7f18569d49 100644 --- a/models/issues/assignees_test.go +++ b/models/issues/assignees_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 issues_test diff --git a/models/issues/comment.go b/models/issues/comment.go index 9483814a19..0aaa870b46 100644 --- a/models/issues/comment.go +++ b/models/issues/comment.go @@ -1,8 +1,7 @@ // Copyright 2018 The Gitea Authors. // Copyright 2016 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 issues diff --git a/models/issues/comment_list.go b/models/issues/comment_list.go index e42b8605f9..2b55bc212f 100644 --- a/models/issues/comment_list.go +++ b/models/issues/comment_list.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 issues diff --git a/models/issues/comment_test.go b/models/issues/comment_test.go index f12da0177f..6a647474dc 100644 --- a/models/issues/comment_test.go +++ b/models/issues/comment_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 issues_test diff --git a/models/issues/content_history.go b/models/issues/content_history.go index f5cfa65b8f..cc06b184d7 100644 --- a/models/issues/content_history.go +++ b/models/issues/content_history.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 issues diff --git a/models/issues/content_history_test.go b/models/issues/content_history_test.go index 1218d871d0..7d52f1bcc6 100644 --- a/models/issues/content_history_test.go +++ b/models/issues/content_history_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 issues_test diff --git a/models/issues/dependency.go b/models/issues/dependency.go index a02280d8a6..bd39824369 100644 --- a/models/issues/dependency.go +++ b/models/issues/dependency.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 issues diff --git a/models/issues/dependency_test.go b/models/issues/dependency_test.go index 3ea0b4ff5c..7af30b2019 100644 --- a/models/issues/dependency_test.go +++ b/models/issues/dependency_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 issues_test diff --git a/models/issues/issue.go b/models/issues/issue.go index 69d6657d46..488a17609e 100644 --- a/models/issues/issue.go +++ b/models/issues/issue.go @@ -1,7 +1,6 @@ // Copyright 2014 The Gogs Authors. All rights reserved. // 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 issues diff --git a/models/issues/issue_index.go b/models/issues/issue_index.go index 1fa79f494a..b480cc683f 100644 --- a/models/issues/issue_index.go +++ b/models/issues/issue_index.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 issues diff --git a/models/issues/issue_list.go b/models/issues/issue_list.go index d9dff4cb4d..35a0c1f0e3 100644 --- a/models/issues/issue_list.go +++ b/models/issues/issue_list.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 issues diff --git a/models/issues/issue_list_test.go b/models/issues/issue_list_test.go index c38a405e02..954a20ffe4 100644 --- a/models/issues/issue_list_test.go +++ b/models/issues/issue_list_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 issues_test diff --git a/models/issues/issue_lock.go b/models/issues/issue_lock.go index 608b5fd140..1376ffcada 100644 --- a/models/issues/issue_lock.go +++ b/models/issues/issue_lock.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 issues diff --git a/models/issues/issue_project.go b/models/issues/issue_project.go index 39a27abd3e..a366a92fad 100644 --- a/models/issues/issue_project.go +++ b/models/issues/issue_project.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 issues diff --git a/models/issues/issue_test.go b/models/issues/issue_test.go index 2c8728e71a..6764a9e626 100644 --- a/models/issues/issue_test.go +++ b/models/issues/issue_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 issues_test diff --git a/models/issues/issue_user.go b/models/issues/issue_user.go index c1a68c96e8..4a537752a2 100644 --- a/models/issues/issue_user.go +++ b/models/issues/issue_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 issues diff --git a/models/issues/issue_user_test.go b/models/issues/issue_user_test.go index 7dd84ed68c..0daace6c9b 100644 --- a/models/issues/issue_user_test.go +++ b/models/issues/issue_user_test.go @@ -1,6 +1,5 @@ // Copyright 2017 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 issues_test diff --git a/models/issues/issue_watch.go b/models/issues/issue_watch.go index cb9d7e7125..1efc0ea687 100644 --- a/models/issues/issue_watch.go +++ b/models/issues/issue_watch.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 issues diff --git a/models/issues/issue_watch_test.go b/models/issues/issue_watch_test.go index 7aaf9f7f5d..4f44487f56 100644 --- a/models/issues/issue_watch_test.go +++ b/models/issues/issue_watch_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 issues_test diff --git a/models/issues/issue_xref.go b/models/issues/issue_xref.go index 4c6601a0a2..a965cf7340 100644 --- a/models/issues/issue_xref.go +++ b/models/issues/issue_xref.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 issues diff --git a/models/issues/issue_xref_test.go b/models/issues/issue_xref_test.go index d6d88db894..6d96c398d0 100644 --- a/models/issues/issue_xref_test.go +++ b/models/issues/issue_xref_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 issues_test diff --git a/models/issues/label.go b/models/issues/label.go index dc7058d643..e5583ff00f 100644 --- a/models/issues/label.go +++ b/models/issues/label.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 issues diff --git a/models/issues/label_test.go b/models/issues/label_test.go index 077e0eeb67..239e328d47 100644 --- a/models/issues/label_test.go +++ b/models/issues/label_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 issues_test diff --git a/models/issues/main_test.go b/models/issues/main_test.go index 89f9e1c999..93e05f33f6 100644 --- a/models/issues/main_test.go +++ b/models/issues/main_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 issues_test diff --git a/models/issues/milestone.go b/models/issues/milestone.go index 9d1778f732..7c2ce407e6 100644 --- a/models/issues/milestone.go +++ b/models/issues/milestone.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 issues diff --git a/models/issues/milestone_test.go b/models/issues/milestone_test.go index f04a2b2b3b..5db5655906 100644 --- a/models/issues/milestone_test.go +++ b/models/issues/milestone_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 issues_test diff --git a/models/issues/pull.go b/models/issues/pull.go index 993a1ba8bd..9105dd4d3a 100644 --- a/models/issues/pull.go +++ b/models/issues/pull.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 issues diff --git a/models/issues/pull_list.go b/models/issues/pull_list.go index 6110ba77fa..432e848e97 100644 --- a/models/issues/pull_list.go +++ b/models/issues/pull_list.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 issues diff --git a/models/issues/pull_test.go b/models/issues/pull_test.go index d88f9d4f54..8ce8eecc4a 100644 --- a/models/issues/pull_test.go +++ b/models/issues/pull_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 issues_test diff --git a/models/issues/reaction.go b/models/issues/reaction.go index 5cb63795d1..381881ff61 100644 --- a/models/issues/reaction.go +++ b/models/issues/reaction.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 issues diff --git a/models/issues/reaction_test.go b/models/issues/reaction_test.go index 835a667619..ddd0e2d04c 100644 --- a/models/issues/reaction_test.go +++ b/models/issues/reaction_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 issues_test diff --git a/models/issues/review.go b/models/issues/review.go index 5cf7d4c3da..0b50763fdc 100644 --- a/models/issues/review.go +++ b/models/issues/review.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 issues diff --git a/models/issues/review_test.go b/models/issues/review_test.go index 39ad14c65f..cc4c13f9e2 100644 --- a/models/issues/review_test.go +++ b/models/issues/review_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 issues_test diff --git a/models/issues/stopwatch.go b/models/issues/stopwatch.go index d1d985b746..8a8fdca339 100644 --- a/models/issues/stopwatch.go +++ b/models/issues/stopwatch.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 issues diff --git a/models/issues/stopwatch_test.go b/models/issues/stopwatch_test.go index a5e33f1cf6..7745bc513c 100644 --- a/models/issues/stopwatch_test.go +++ b/models/issues/stopwatch_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 issues_test diff --git a/models/issues/tracked_time.go b/models/issues/tracked_time.go index e1da0f32b0..6d25975459 100644 --- a/models/issues/tracked_time.go +++ b/models/issues/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 issues diff --git a/models/issues/tracked_time_test.go b/models/issues/tracked_time_test.go index ba8b242d99..b3174c7c82 100644 --- a/models/issues/tracked_time_test.go +++ b/models/issues/tracked_time_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 issues_test |