1# Copyright 2023 The Bazel Authors. All rights reserved. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15# See https://github.com/marketplace/actions/close-stale-issues 16 17name: Mark stale issues and pull requests 18 19on: 20 schedule: 21 # run at 22:45 UTC daily 22 - cron: "45 22 * * *" 23 24jobs: 25 stale: 26 runs-on: ubuntu-latest 27 28 steps: 29 - uses: actions/stale@v3 30 with: 31 repo-token: ${{ secrets.GITHUB_TOKEN }} 32 33 # NB: We start with very long duration while trimming existing issues, 34 # with the hope to reduce when/if we get better at keeping up with user support. 35 36 # The number of days old an issue can be before marking it stale. 37 days-before-stale: 180 38 # Number of days of inactivity before a stale issue is closed 39 days-before-close: 30 40 41 # If an issue/PR is assigned, trust the assignee to stay involved 42 # Can revisit if these get stale 43 exempt-all-assignees: true 44 # Issues with these labels will never be considered stale 45 exempt-issue-labels: "need: discussion,cleanup" 46 47 # Label to use when marking an issue as stale 48 stale-issue-label: 'Can Close?' 49 stale-pr-label: 'Can Close?' 50 51 stale-issue-message: > 52 This issue has been automatically marked as stale because it has not had 53 any activity for 180 days. 54 It will be closed if no further activity occurs in 30 days. 55 56 Collaborators can add an assignee to keep this open indefinitely. 57 Thanks for your contributions to rules_python! 58 59 stale-pr-message: > 60 This Pull Request has been automatically marked as stale because it has not had 61 any activity for 180 days. 62 It will be closed if no further activity occurs in 30 days. 63 64 Collaborators can add an assignee to keep this open indefinitely. 65 Thanks for your contributions to rules_python! 66 67 close-issue-message: > 68 This issue was automatically closed because it went 30 days without a reply 69 since it was labeled "Can Close?" 70 71 close-pr-message: > 72 This PR was automatically closed because it went 30 days without a reply 73 since it was labeled "Can Close?" 74