You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by da...@apache.org on 2023/06/08 00:31:43 UTC
[kafka] 01/01: Add a Github action to mark PRs as stale
This is an automated email from the ASF dual-hosted git repository.
davidarthur pushed a commit to branch add-github-stale-action
in repository https://gitbox.apache.org/repos/asf/kafka.git
commit 513dfea69352fdb77f3cbc84fb0134e72e306bb3
Author: David Arthur <mu...@gmail.com>
AuthorDate: Wed Jun 7 20:30:40 2023 -0400
Add a Github action to mark PRs as stale
---
.github/workflows/stale.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 00000000000..5d58915673b
--- /dev/null
+++ b/.github/workflows/stale.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: 'Close stale issues and PRs'
+on:
+ schedule:
+ - cron: '30 3 * * *'
+ workflow_dispatch:
+ inputs:
+ dryRun:
+ description: 'Dry Run'
+ required: true
+ default: true
+ type: boolean
+ operationsPerRun:
+ description: 'Max GitHub API operations'
+ required: true
+ default: 30
+ type: number
+
+permissions:
+ issues: write
+ pull-requests: write
+
+jobs:
+ stale:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/stale@v8
+ with:
+ debug-only: ${{ inputs.dryRun }}
+ operations-per-run: ${{ inputs.operationsPerRun }}
+ days-before-stale: 90
+ days-before-close: -1
+ stale-issue-label: 'stale'