This is an automated email from the ASF dual-hosted git repository.
czy006 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/amoro.git
The following commit(s) were added to refs/heads/master by this push:
new 0a1c429e1 [ci]Add stale GitHub workflow to improve Issue&PR management
0a1c429e1 is described below
commit 0a1c429e1bf749394d936af47f9bd4cc7a3ef41f
Author: ZhouJinsong <[email protected]>
AuthorDate: Mon Aug 19 13:51:40 2024 +0800
[ci]Add stale GitHub workflow to improve Issue&PR management
Add stale GitHub workflow to improve issue&pr management
---
.github/workflows/stale.yml | 66 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 000000000..f459abd0d
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,66 @@
+#
+# 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 Issues and PRs"
+on:
+ schedule:
+ - cron: '0 0 * * *'
+
+permissions:
+ # All other permissions are set to none
+ issues: write
+ pull-requests: write
+
+jobs:
+ stale:
+ if: github.repository_owner == 'apache'
+ runs-on: ubuntu-22.04
+ steps:
+ - uses: actions/[email protected]
+ with:
+ # stale issues
+ stale-issue-label: 'stale'
+ exempt-issue-labels: 'not-stale'
+ days-before-issue-stale: 180
+ days-before-issue-close: 14
+ stale-issue-message: >
+ This issue has been automatically marked as stale because it has
been open for 180 days
+ with no activity. It will be closed in next 14 days if no further
activity occurs. To
+ permanently prevent this issue from being considered stale, add
the label 'not-stale',
+ but commenting on the issue is preferred when possible.
+ close-issue-message: >
+ This issue has been closed because it has not received any
activity in the last 14 days
+ since being marked as 'stale'
+ # stale PRs
+ stale-pr-label: 'stale'
+ exempt-pr-labels: 'not-stale'
+ days-before-pr-stale: 30
+ days-before-pr-close: 7
+ stale-pr-message: >
+ This pull request has been marked as stale due to 30 days of
inactivity. It will be closed
+ in 1 week if no further activity occurs. If you think that’s
incorrect or this pull request
+ requires a review, please simply write any comment. If closed, you
can revive the PR at any
+ time and @mention a reviewer or discuss it on the
[email protected] list. Thank you for
+ your contributions.
+ close-pr-message: >
+ This pull request has been closed due to lack of activity. This is
not a judgement on the merit
+ of the PR in any way. It is just a way of keeping the PR queue
manageable. If you think that is
+ incorrect, or the pull request requires review, you can revive the
PR at any time.
+ ascending: true
+ operations-per-run: 200
\ No newline at end of file