You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2022/04/27 19:53:34 UTC

[airflow] 01/05: We weren't checking .jsx files for licenses and missed one (#23289)

This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-3-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 5617ca009c99e98cf762a05957a0196fa09b7589
Author: Ash Berlin-Taylor <as...@apache.org>
AuthorDate: Wed Apr 27 18:33:36 2022 +0100

    We weren't checking .jsx files for licenses and missed one (#23289)
    
    (cherry picked from commit 726b27f86cf964924e5ee7b29a30aefe24dac45a)
---
 .pre-commit-config.yaml                  |  2 +-
 airflow/www/static/js/tree/Clipboard.jsx | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index bc103e6c27..47147bec8e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -66,7 +66,7 @@ repos:
         files: \.rst$
       - id: insert-license
         name: Add license for all CSS/JS/PUML/TS/TSX files
-        files: \.(css|js|puml|ts|tsx)$
+        files: \.(css|js|puml|ts|tsx|jsx)$
         exclude: ^\.github/.*$|^airflow/_vendor/
         args:
           - --comment-style
diff --git a/airflow/www/static/js/tree/Clipboard.jsx b/airflow/www/static/js/tree/Clipboard.jsx
index 27f34a9154..5fa645e61a 100644
--- a/airflow/www/static/js/tree/Clipboard.jsx
+++ b/airflow/www/static/js/tree/Clipboard.jsx
@@ -1,3 +1,22 @@
+/*!
+ * 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.
+ */
+
 import React from 'react';
 import {
   Button,