You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by pv...@apache.org on 2021/04/14 07:26:43 UTC

[nifi] branch main updated: NIFI-8422 ensure stale workflow for github ci is there and update asf license header missing from a few files

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

pvillard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new f0611f3  NIFI-8422 ensure stale workflow for github ci is there and update asf license header missing from a few files
f0611f3 is described below

commit f0611f31da6b643e9ed4bbf2c98faf6c44e29ba6
Author: Joe Witt <jo...@apache.org>
AuthorDate: Mon Apr 12 21:10:35 2021 -0700

    NIFI-8422 ensure stale workflow for github ci is there and update asf license header missing from a few files
    
    Signed-off-by: Pierre Villard <pi...@gmail.com>
    
    This closes #4997.
---
 .github/PULL_REQUEST_TEMPLATE.md  | 14 ++++++++++++++
 .github/workflows/ci-workflow.yml | 15 +++++++++++++++
 .github/workflows/stale.yml       | 39 +++++++++++++++++++++++++++++++++++++++
 pom.xml                           |  2 --
 4 files changed, 68 insertions(+), 2 deletions(-)

diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index a4a292d..f227552 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,3 +1,17 @@
+<!--
+  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.
+-->
 Thank you for submitting a contribution to Apache NiFi.
 
 Please provide a short description of the PR here:
diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml
index 1d0aa8f..ac30dc1 100644
--- a/.github/workflows/ci-workflow.yml
+++ b/.github/workflows/ci-workflow.yml
@@ -1,3 +1,18 @@
+# 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: ci-workflow
 
 on: [push, pull_request]
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 0000000..89d6b2a
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,39 @@
+# 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: Manage stale PRs
+
+on:
+  # Run every day at midnight 00:00
+  schedule:
+    - cron: "0 0 * * *"
+
+jobs:
+  stale:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/stale@v3
+        with:
+          repo-token: ${{ secrets.GITHUB_TOKEN }}
+          stale-pr-message: >
+            We're marking this PR as stale due to lack of updates in the past few months.
+            If after another couple of weeks the stale label has not been removed this PR will be closed.
+            This stale marker and eventual auto close does not indicate a judgement of the PR just
+            lack of reviewer bandwidth and helps us keep the PR queue more manageable.  If you would
+            like this PR re-opened you can do so and a committer can remove the stale tag.  Or you can
+            open a new PR.  Try to help review other PRs to increase PR review bandwidth which in
+            turn helps yours.
+          days-before-stale: 120
+          days-before-close: 15
diff --git a/pom.xml b/pom.xml
index 7706c5f..08fb3bb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -745,8 +745,6 @@
                         <exclude>nb-configuration.xml</exclude> <!-- courtesy excludes for netbeans users -->
                         <exclude>nbactions.xml</exclude> <!-- courtesy excludes for netbeans users -->
                         <exclude>DEPENDENCIES</exclude> <!-- auto generated file by apache's maven config while building sources.zip -->
-                        <exclude>.github/PULL_REQUEST_TEMPLATE.md</exclude> <!-- PR Template for GitHub that does not have a mechanism of including comments -->
-                        <exclude>.github/workflows/ci-workflow.yml</exclude>
                     </excludes>
                 </configuration>
             </plugin>