diff --git a/site/docs/master/code-standards.md b/site/docs/master/code-standards.md index 281c24adb..cc28a0f0d 100644 --- a/site/docs/master/code-standards.md +++ b/site/docs/master/code-standards.md @@ -14,6 +14,14 @@ Add that to the PR. If a PR does not warrant a changelog, the CI check for a changelog can be skipped by applying a `changelog-not-required` label on the PR. +## Copyright header + +Whenever a source code file is being modified, the copyright notice should be updated to our standard copyright notice. That is, it should read “Copyright [insert current year] the Velero contributors.” + +For new files, the entire copyright and license header must be added. + +Please note that doc files do not need a copyright header. + ## Code - Log messages are capitalized. @@ -36,7 +44,7 @@ If a PR does not warrant a changelog, the CI check for a changelog can be skippe For imports, we use the following convention: - +`` Example: diff --git a/site/docs/v1.2.0/code-standards.md b/site/docs/v1.2.0/code-standards.md index db93aa298..f353b9166 100644 --- a/site/docs/v1.2.0/code-standards.md +++ b/site/docs/v1.2.0/code-standards.md @@ -34,7 +34,7 @@ Add that to the PR. For imports, we use the following convention: - +`` Example: diff --git a/site/docs/v1.3.0/code-standards.md b/site/docs/v1.3.0/code-standards.md index c59c5d3ea..b4e21194d 100644 --- a/site/docs/v1.3.0/code-standards.md +++ b/site/docs/v1.3.0/code-standards.md @@ -34,7 +34,7 @@ Add that to the PR. For imports, we use the following convention: - +`` Example: diff --git a/site/docs/v1.4/code-standards.md b/site/docs/v1.4/code-standards.md index 13870e859..e212ad98c 100644 --- a/site/docs/v1.4/code-standards.md +++ b/site/docs/v1.4/code-standards.md @@ -12,6 +12,14 @@ changelog. Add that to the PR. +## Copyright header + +Whenever a source code file is being modified, the copyright notice should be updated to our standard copyright notice. That is, it should read “Copyright [insert current year] the Velero contributors.” + +For new files, the entire copyright and license header must be added. + +Please note that doc files do not need a copyright header. + ## Code - Log messages are capitalized. @@ -34,7 +42,7 @@ Add that to the PR. For imports, we use the following convention: - +`` Example: