fix: Also substitute COPYRIGHT HOLDER
and the organization
in BSD 4-Clause license (#6942)
Fixes #6864 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6942 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: Beowulf <beowulf@beocode.eu> Co-committed-by: Beowulf <beowulf@beocode.eu>
This commit is contained in:
parent
486acb04fa
commit
7104c73c96
2 changed files with 30 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
// Copyright 2023 The Gitea Authors. All rights reserved.
|
||||
// Copyright 2025 The Forgejo Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package repository
|
||||
|
@ -107,6 +108,9 @@ func getLicensePlaceholder(name string) *licensePlaceholder {
|
|||
}
|
||||
|
||||
// Other special placeholders can be added here.
|
||||
} else if name == "BSD-4-Clause" {
|
||||
ret.Owner = append(ret.Owner, "COPYRIGHT HOLDER")
|
||||
ret.Owner = append(ret.Owner, "the organization")
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue