Skip to content

Commit

Permalink
Create profanity filter workflow and accompanying label
Browse files Browse the repository at this point in the history
  • Loading branch information
beeankha committed Feb 29, 2024
1 parent 09ebe3c commit 94e7942
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
- name: dependencies
description: '[bot] PRs that update a dependency file'
color: '#0366d6'
- name: profane content 🤬
description: 'Either the title or body text contains profanity'
color: 'FBCA04'

# Planning
- name: epic
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/profanity-filter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Profanity filter

on:
issue_comment:
types: [created, edited]
issues:
types: [opened, edited, reopened]
pull_request:
types: [opened, edited, reopened]

jobs:
apply-filter:
name: Apply profanity filter
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- name: Profanity filter
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]' }}
uses: IEvangelist/profanity-filter@main
id: profanity-filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
replacement-strategy: asterisk

0 comments on commit 94e7942

Please sign in to comment.