Skip to content

Commit 4d8eaf4

Browse files
authored
Merge pull request #810 from puppetlabs/pdksync_pdksync_add_workflows
pdksync - Add labeller and stale GHA workflows
2 parents 4484f4f + ec01a1f commit 4d8eaf4

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/labeller.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: community-labeller
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
pull_request:
8+
types:
9+
- opened
10+
11+
jobs:
12+
label:
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
- uses: puppetlabs/community-labeller@v0
17+
name: Label issues or pull requests
18+
with:
19+
label_name: community
20+
label_color: '5319e7'
21+
org_membership: puppetlabs
22+
token: ${{ secrets.IAC_COMMUNITY_LABELER }}

.github/workflows/stale.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: "30 1 * * *"
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/stale@v3
12+
with:
13+
repo-token: ${{ secrets.GITHUB_TOKEN }}
14+
days-before-stale: 60
15+
days-before-close: 7
16+
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.'
17+
stale-issue-label: 'stale'
18+
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.'
19+
stale-pr-label: 'stale'

0 commit comments

Comments
 (0)