Add Close / Lock actions

This commit is contained in:
Scott Lahteine
2020-06-23 19:58:00 -05:00
parent c352aeb32e
commit a73e61078d
4 changed files with 80 additions and 1 deletions

22
.github/workflows/close-stale.yml vendored Normal file
View File

@ -0,0 +1,22 @@
#
# close-stale.yml
# Close open issues after a period of inactivity
#
name: "Close stale issues"
on:
schedule:
- cron: "0 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label / comment or this will be closed in 5 days.'
days-before-stale: 30
days-before-close: 5
stale-issue-label: 'stale-closing-soon'

18
.github/workflows/lock-closed.yml vendored Normal file
View File

@ -0,0 +1,18 @@
#
# lock-closed.yml
# Lock closed issues after a period of inactivity
#
name: "Lock closed issue"
on:
issues:
types: [closed]
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: OSDKDev/lock-issues@v1.1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -9,7 +9,6 @@ on:
pull_request:
branches:
- bugfix-2.0.x
- dev-2.1.x
paths-ignore:
- config/**
- data/**