Skip to content

Commit 1b5158f

Browse files
authored
Add GitHub workflows for profanity filtering and stale issue management
Add GitHub workflows for profanity filtering and stale issue management
2 parents f0cab3e + b8b47eb commit 1b5158f

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Profanity filter
2+
3+
on:
4+
issue_comment:
5+
types: [created, edited]
6+
issues:
7+
types: [opened, edited, reopened]
8+
pull_request:
9+
types: [opened, edited, reopened]
10+
11+
jobs:
12+
apply-filter:
13+
name: Apply profanity filter
14+
runs-on: ubuntu-latest
15+
permissions:
16+
issues: write
17+
pull-requests: write
18+
19+
steps:
20+
- name: Profanity filter
21+
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]' }}
22+
uses: IEvangelist/profanity-filter@main
23+
id: profanity-filter
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
replacement-strategy: asterisk

.github/workflows/stale-bot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v9
11+
with:
12+
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.'
13+
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed.'
14+
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
15+
close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.'
16+
days-before-issue-stale: 60
17+
days-before-pr-stale: 60
18+
days-before-issue-close: -1
19+
days-before-pr-close: -1

0 commit comments

Comments
 (0)