Skip to content

Close Stale Pull Requests #64

Close Stale Pull Requests

Close Stale Pull Requests #64

#
# 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 Pull Requests
on:
workflow_dispatch:
schedule:
- cron: "30 1 * * *"
permissions:
contents: read
issues: write
pull-requests: write
jobs:
stale:
if: github.repository == 'apache/mahout'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Close Stale Pull Requests
uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0
with:
repo-token: ${{ github.token }}
# Ignore issues.
days-before-issue-stale: -1
days-before-issue-close: -1
# Pull request stale policy.
days-before-pr-stale: 30
days-before-pr-close: 7
stale-pr-label: stale
stale-pr-message: |
This pull request has been automatically marked as stale because it has not had any activity for 30 days.
It will be closed in another 7 days if no further activity occurs. Thank you for your contribution. If you'd like to keep this open, leave any comment and the stale label will be removed.
You can always ask for help on the [Mahout dev mailing list](https://lists.apache.org/list.html?dev@mahout.apache.org) or in [GitHub Discussions](https://github.com/apache/mahout/discussions).
close-pr-message: |
This pull request has been automatically closed because there has been no more activity in the 7 days since being marked stale.
Please feel free to reopen or open a new pull request if you'd still like this to be addressed. You can always ask for help on the [Mahout dev mailing list](https://lists.apache.org/list.html?dev@mahout.apache.org) or in [GitHub Discussions](https://github.com/apache/mahout/discussions).
Thanks again for your contribution!
exempt-pr-labels: >
weekly-release-blocker,
release-blocker,
security,
not-stale,
unstale
exempt-all-pr-milestones: true
# Shared stale action settings.
operations-per-run: 500
remove-pr-stale-when-updated: true
ascending: true