Reference

API reference

Every input, every strategy, every language. Only token is required — everything else is sensible defaults you can override when you need to.

Inputs

tokenRequiredstring

GitHub token used to update issues and pull requests. Use the built-in ${{ secrets.GITHUB_TOKEN }} for the simplest setup.

replacement-strategyOptionalenumdefault: asterisk

How profane content should be replaced. See the strategy reference below for all 14 options. Case-insensitive; hyphens are also accepted (e.g. anger-emoji).

include-updated-noteOptionalbooleandefault: true

When true, appends a note to the body explaining that the content was updated by the profanity filter.

include-confused-reactionOptionalbooleandefault: false

When true, the action reacts to the issue or pull request with the 😕 confused reaction.

manual-profane-wordsOptionalstring

A comma-separated list of additional words to include in the filter. Layered on top of the built-in dictionary.

custom-profane-words-urlOptionalurl

A URL returning a newline-separated list of words to include in the filter.

Replacement strategies

Each strategy demonstrated against a four-letter profane word. Strategy values are case-insensitive and accept hyphenated alternatives.

asterisk****

Classic asterisks — the safe default.

emoji💩

A random expressive emoji per match.

grawlix#%$!

Comic-book style symbol soup.

bold-grawlix#%$!

Grawlix, but louder.

bleepbleep

Replaces with the literal word "bleep".

redacted-rectangle████

Top-secret redaction blocks.

anger-emoji😡

A random anger-themed emoji.

middle-asteriskf**k

Keeps first and last letters intact.

middle-swear-emojif🤬k

A swear emoji in the middle.

random-asterisk* — ****

Random number of asterisks.

first-letter-then-asteriskf***

Keep the first letter only.

vowel-asterisksh*t

Replaces only the vowels.

strike-throughshit

Wraps content in <del> tags.

underscores____

Replaces with underscores.

Supported languages

Word lists are stored as plain newline-delimited text files. They're auditable, contributable, and shipped right alongside the action.

ENEnglishARArabicZHChineseCSCzechDADanishNLDutchFIFinnishFRFrenchDEGermanELGreekHEHebrewHIHindiHUHungarianIDIndonesianITItalianJAJapaneseKOKoreanNONorwegianPLPolishPTPortugueseRORomanianRURussianESSpanishSVSwedishTLTagalogTRTurkishUKUkrainianVIVietnamese

Browse the dictionariesin the Data directory on GitHub

What the action does