(MAINT) Add labeller and stale GHA workflows
This commit is contained in:
22
.github/workflows/labeller.yml
vendored
Normal file
22
.github/workflows/labeller.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
name: community-labeller
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
label:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- uses: puppetlabs/community-labeller@v0
|
||||||
|
name: Label issues or pull requests
|
||||||
|
with:
|
||||||
|
label_name: community
|
||||||
|
label_color: '5319e7'
|
||||||
|
org_membership: puppetlabs
|
||||||
|
token: ${{ secrets.IAC_COMMUNITY_LABELER }}
|
||||||
19
.github/workflows/stale.yml
vendored
Normal file
19
.github/workflows/stale.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Mark stale issues and pull requests
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "30 1 * * *"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
stale:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/stale@v3
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
days-before-stale: 60
|
||||||
|
days-before-close: 7
|
||||||
|
stale-issue-message: 'This issue has been marked as stale because it has been open for a while and has had no recent activity. If this issue is still important to you please drop a comment below and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.'
|
||||||
|
stale-issue-label: 'stale'
|
||||||
|
stale-pr-message: 'This PR has been marked as stale because it has been open for a while and has had no recent activity. If this PR is still important to you please drop a comment below and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.'
|
||||||
|
stale-pr-label: 'stale'
|
||||||
Reference in New Issue
Block a user