You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ch...@apache.org on 2022/09/13 03:53:28 UTC
[incubator-kyuubi] branch master updated: [KYUUBI #3402][INFRA] Closing Stale Pull Requests
This is an automated email from the ASF dual-hosted git repository.
chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new c7024004a [KYUUBI #3402][INFRA] Closing Stale Pull Requests
c7024004a is described below
commit c7024004a164f2dd6a757fb5e4b05194aaa92359
Author: yikf <yi...@gmail.com>
AuthorDate: Tue Sep 13 11:53:19 2022 +0800
[KYUUBI #3402][INFRA] Closing Stale Pull Requests
### _Why are the changes needed?_
Fix https://github.com/apache/incubator-kyuubi/issues/3402
This pr aims to use [stale](https://github.com/actions/stale) to add a GitHub action workflow to automatically close stale PRs, because stable PRs may no longer get forward or get enough attention
### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
- [ ] Add screenshots for manual tests if appropriate
- [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request
Closes #3479 from Yikf/stale-workflow.
Closes #3402
2127b2ff [yikf] Closing Stale Pull Requests
Authored-by: yikf <yi...@gmail.com>
Signed-off-by: Cheng Pan <ch...@apache.org>
---
.github/workflows/stale.yml | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 000000000..cad4c4a91
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,43 @@
+#
+# 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 stale PRs
+
+on:
+ schedule:
+ - cron: "0 0 * * *"
+
+jobs:
+ stale:
+ runs-on: ubuntu-latest
+ permissions:
+ pull-requests: write
+ steps:
+ - uses: actions/stale@v5
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ stale-pr-message: >
+ Thanks for the PR! This PR is being closed due to inactivity. This isn't a judgement
+ on the merit of the PR in any way. If this is still an issue with the latest version
+ of Kyuubi, please reopen it and ask a committer to remove the Stale tag!
+
+
+ Thank you for using Kyuubi!
+ days-before-stale: 100
+ # Setting this to 0 is the same as setting it to 1.
+ # See: https://github.com/actions/stale/issues/28
+ days-before-close: 0