You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/10/04 09:07:24 UTC
[camel-k] branch license-fix created (now a26bbf2e0)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch license-fix
in repository https://gitbox.apache.org/repos/asf/camel-k.git
at a26bbf2e0 Added Missing license headers and license headers to generation of traits.yaml
This branch includes the following new commits:
new a26bbf2e0 Added Missing license headers and license headers to generation of traits.yaml
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[camel-k] 01/01: Added Missing license headers and license headers to generation of traits.yaml
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch license-fix
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit a26bbf2e013e4c4ac8289d8b192f38c62bac5fff
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Oct 4 11:06:49 2023 +0200
Added Missing license headers and license headers to generation of traits.yaml
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.github/ISSUE_TEMPLATE/bug_report.yaml | 16 ++++++++++++++++
.github/ISSUE_TEMPLATE/feature_request.yaml | 16 ++++++++++++++++
cmd/util/doc-gen/generators/traitmetadatagen.go | 18 ++++++++++++++++++
3 files changed, 50 insertions(+)
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml
index 875b22d53..e26cd6a5f 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yaml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yaml
@@ -1,3 +1,19 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
name: Bug Report
description: Create a report to help us improve
labels: ["kind/bug"]
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml
index d9cbef683..b54ff7972 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.yaml
+++ b/.github/ISSUE_TEMPLATE/feature_request.yaml
@@ -1,3 +1,19 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
name: Feature Request
description: Suggest an idea for this project
labels: ["kind/feature"]
diff --git a/cmd/util/doc-gen/generators/traitmetadatagen.go b/cmd/util/doc-gen/generators/traitmetadatagen.go
index 5d3f3e0ab..c68caff56 100644
--- a/cmd/util/doc-gen/generators/traitmetadatagen.go
+++ b/cmd/util/doc-gen/generators/traitmetadatagen.go
@@ -36,6 +36,23 @@ import (
const traitFile = "traits.yaml"
+const licenseHeader = "# ---------------------------------------------------------------------------\n" +
+ "# Licensed to the Apache Software Foundation (ASF) under one or more\n" +
+ "# contributor license agreements. See the NOTICE file distributed with\n" +
+ "# this work for additional information regarding copyright ownership.\n" +
+ "# The ASF licenses this file to You under the Apache License, Version 2.0\n" +
+ "# (the \"License\"); you may not use this file except in compliance with\n" +
+ "# the License. You may obtain a copy of the License at\n" +
+ "#\n" +
+ "# http://www.apache.org/licenses/LICENSE-2.0\n" +
+ "#\n" +
+ "# Unless required by applicable law or agreed to in writing, software\n" +
+ "# distributed under the License is distributed on an \"AS IS\" BASIS,\n" +
+ "# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" +
+ "# See the License for the specific language governing permissions and\n" +
+ "# limitations under the License.\n" +
+ "# ---------------------------------------------------------------------------\n"
+
// traitMetaDataGen produces YAML documentation about trait descriptions.
type traitMetaDataGen struct {
generator.DefaultGen
@@ -113,6 +130,7 @@ func (g *traitMetaDataGen) Finalize(c *generator.Context, w io.Writer) error {
return err
}
+ fmt.Fprintf(file, "%s", string(licenseHeader))
data, err := yaml.Marshal(g.Root)
if err != nil {
fmt.Fprintf(file, "error: %v", err)