Repository navigation
46 lines (41 loc) · 1.96 KB
/
Copy pathclose-stale.yml
File metadata and controls
46 lines (41 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright (c) 2026 Databricks, Inc.
#
# Licensed 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.
# Port of databricks/databricks-jdbc's closeStale.yml. Closes issues
# and PRs after 30 days of inactivity (with a 7-day stale window).
name: Close stale issues and PRs
on:
schedule:
# 06:30 UTC daily
- cron: "30 6 * * *"
workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs:
stale:
name: Close stale issues and PRs
runs-on:
group: databricks-protected-runner-group
labels: linux-ubuntu-latest
steps:
- uses: actions/stale@1e223db275d687790206a7acac4d1a11bd6fe629 # v10.4.0
with:
stale-issue-message: "This issue has been marked as Stale because it has been open for 30 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue."
stale-pr-message: "This PR has been marked as Stale because it has been open for 30 days with no activity. If you would like the PR to remain open, please remove the stale label or comment on the PR."
close-pr-message: "This PR was closed because it has been inactive for 7 days since being marked as stale."
close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale."
days-before-stale: 30
days-before-close: 7
exempt-issue-labels: "epic, discussion, kernel-v0, tracked"
exempt-pr-labels: "kernel-v0, tracked"