Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create profanity filter workflow and accompanying label #883

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
3 changes: 3 additions & 0 deletions .github/sync/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ group:
# issue sorting
- source: HOW_WE_USE_GITHUB.md
dest: HOW_WE_USE_GITHUB.md
# profanity filter
- source: .github/workflows/profanity-filter.yml
dest: .github/workflows/profanity-filter.yml
# projects with releases
- repos: |
conda/conda
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/profanity-filter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
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
Loading