Unverified Commit d50402b2 authored by AustinSanders's avatar AustinSanders Committed by GitHub
Browse files

Github action for stale issues (#4489)



* Created a github action to close stale issues/PRs

* Updated stale issue parameters

* Change labels to 'inactive'

Co-authored-by: default avatarAustin Sanders <arsanders@ugs.gov>
parent 06ac6deb
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
name: Mark stale issues and pull requests

on:
  schedule:
  - cron: "0 15 * * *"

jobs:
  stale:

    runs-on: ubuntu-latest
    permissions:
      issues: write
      pull-requests: write

    steps:
    - uses: actions/stale@v3
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        days-before-stale: 180
        days-before-close: 180
        stale-issue-message: "Thank you for your contribution!\n\nUnfortunately, this issue hasn't received much attention lately, so it is labeled as 'stale.'\n\nIf no additional action is taken, this issue will be automatically closed in 180 days."
        stale-pr-message: "Thank you for your contribution!\n\nUnfortunately, this pull request hasn't received much attention lately, so it is labeled as 'stale.'\n\nIf no additional action is taken, this pull request will be automatically closed in 180 days."
        stale-issue-label: 'inactive'
        stale-pr-label: 'inactive'