You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by he...@apache.org on 2022/04/28 11:39:32 UTC
[incubator-inlong] 01/07: [INLONG-3971][GitHub] Add stable workflow config file (#3972)
This is an automated email from the ASF dual-hosted git repository.
healchow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong.git
commit 458c5c46678a6e392c9d0ba8b7b5397d9ab0c94e
Author: Yuanhao Ji <ji...@apache.org>
AuthorDate: Thu Apr 28 10:12:55 2022 +0800
[INLONG-3971][GitHub] Add stable workflow config file (#3972)
---
.github/workflows/ci_stable.yml | 47 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/.github/workflows/ci_stable.yml b/.github/workflows/ci_stable.yml
new file mode 100644
index 000000000..0e44ccd14
--- /dev/null
+++ b/.github/workflows/ci_stable.yml
@@ -0,0 +1,47 @@
+#
+# 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: InLong Close Stale Issues and PRs
+
+on:
+ schedule:
+ - cron: '30 1 * * *'
+
+permissions:
+ issues: write
+ pull-requests: write
+
+jobs:
+ stale:
+ name: Stable
+ runs-on: ubuntu-latest
+ steps:
+ - name: Close stale issues and PRs
+ uses: actions/stale@v4
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
+ stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
+ close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
+ close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.'
+ days-before-issue-stale: 30 # the idle number of days before marking the issues as stale
+ days-before-pr-stale: 45 # the idle number of days before marking the pull requests as stale
+ days-before-issue-close: 5 # the idle number of days before closing the stale issues
+ days-before-pr-close: 10 # the idle number of days before closing the stale pull requests
+ exempt-issue-labels: 'WIP' # labels on issues exempted from stale
+ exempt-pr-labels: 'WIP' # labels on PRs exempted from stale
+ operations-per-run: 500 # max number of operations per run