From 9328d3e8366464aa5755a0d03822ae83e03e924c Mon Sep 17 00:00:00 2001 From: David Venable Date: Tue, 12 Sep 2023 09:45:51 -0700 Subject: [PATCH] Adds missing license headers section to the CONTRIBUTING.md file. (#3292) Signed-off-by: David Venable --- CONTRIBUTING.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fac0f333fc..38972a8625 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -89,3 +89,32 @@ Each commit must include a DCO which looks like this Signed-off-by: Jane Smith ``` You may type this line on your own when writing your commit messages. However, if your user.name and user.email are set in your git configs, you can use `-s` or `--signoff` to add the `Signed-off-by` line to the end of the commit message. + +## License Headers + +New files in your code contributions should contain the following license header. +If you are modifying existing files with license headers, or including new files that already have license headers, do not remove or modify them without guidance. + +### Java, Gradle/Groovy + +``` +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + * + * The OpenSearch Contributors require contributions made to + * this file be licensed under the Apache-2.0 license or a + * compatible open source license. + * +*/ +``` + +### Shell, Python +``` +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. +```