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

bossenti pushed a commit to branch chore/stale-bot
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit fe25d59133b903740bf538ff54d7e45400be62ea
Author: bossenti <[email protected]>
AuthorDate: Thu Apr 27 18:56:01 2023 +0200

    feature: add workflow that stales PRs
---
 .github/workflows/stale-bot.yml | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml
new file mode 100644
index 000000000..8ef608f5a
--- /dev/null
+++ b/.github/workflows/stale-bot.yml
@@ -0,0 +1,37 @@
+# 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: 'Close and remind stale PRs'
+on:
+  schedule:
+    - cron: '0 1 * * *'
+  workflow_dispatch:
+
+permissions:
+  pull-requests: write
+
+jobs:
+  mark-stale-prs:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/stale@v8
+        with:
+          close-pr-message: "Hello there :wave:<br> <br> Unfortunately, we 
didn't hear back from you regarding your pull request, so we're closing it now. 
Don't worry, you can always reopen the PR at any time if you wish to continue 
working on it :raised_hands:.<br> <br> Please note that the branch associated 
with this pull request will not be deleted, so you can still access your 
changes and continue to work on them as needed :computer:.<br> <br> Thank you 
for your contributions to our  [...]
+          days-before-close: 7
+          days-before-stale: 21
+          exempt-pr-labels: 'blocked'
+          labels-to-remove-when-unstale: 'stale'
+          stale-pr-label: 'stale'
+          stale-pr-message: "Hello there :wave:<br> <br> We noticed that it's 
been some time since activity occurred on your pull request :thinking:. In 
order to keep things moving forward, we're marking this PR as _stale_ and 
giving you 7 days to respond before it's automatically closed 
:alarm_clock:.<br> <br> Please take a moment to review your pull request and 
make any necessary updates or changes :man_technologist:. If you need more time 
or have any questions, please don't hesitate t [...]

Reply via email to