bashamega/gh-admin-mod

Modular GitHub Action for blocking or auto-moderating issues and pull requests.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github-tokenGitHub token for API requests.no${{ github.token }}
blocked-users-filePath to the file containing blocked usernames, one per line.noblockedUser.md
block-issuesWhether blocked users should be prevented from opening issues.notrue
block-prsWhether blocked users should be prevented from opening pull requests.notrue
exempt-associationsComma-separated author associations that should never be moderated.noOWNER,MEMBER,COLLABORATOR
comment-messageComment posted when the blocklist feature closes an issue or pull request. Supports {user}, {type}, {type_plural}, {author_association}, and {reason}. noThis {type} was automatically closed because @{user} is blocked from opening {type_plural} in this repository.
add-labelOptional label added for any moderation action.no""
lock-conversationWhether to lock the conversation after closing it.nofalse
close-reasonState reason used when closing issues.nonot_planned
dry-runIf true, only detect and report moderation matches without changing anything.nofalse
auto-modEnable automatic moderation heuristics for suspicious issues and pull requests.nofalse
auto-mod-keywordsComma-separated suspicious keywords or phrases matched against the title and body. notelegram,whatsapp,t.me,airdrop,bonus,dm me,contact me,investment opportunity
auto-mod-max-linksMaximum allowed link count before auto-mod matches. Set to 0 to disable link counting. no3
auto-mod-new-contributors-onlyIf true, auto-mod only applies to authors with association NONE, FIRST_TIMER, or FIRST_TIME_CONTRIBUTOR. notrue
auto-mod-comment-messageComment posted when auto-mod closes an issue or pull request. Supports {user}, {type}, {type_plural}, {author_association}, {reason}, {keywords}, and {link_count}. noThis {type} was automatically closed by auto-mod because it matched suspicious content checks: {reason}.
auto-mod-labelOptional label added when auto-mod matches.noauto-moderated
concurrency-enabledWhether to enable the concurrency limit feature.nofalse
concurrency-limitsAssociation-based limits as comma-separated KEY=VALUE pairs. Supported keys: OWNER, MEMBER, COLLABORATOR, CONTRIBUTOR, FIRST_TIMER, FIRST_TIME_CONTRIBUTOR, NONE. Value 0 means unlimited. noNONE=1,FIRST_TIMER=1,FIRST_TIME_CONTRIBUTOR=1,CONTRIBUTOR=10,COLLABORATOR=10,MEMBER=10
concurrency-comment-messageComment posted when the concurrency feature closes an item. Supports {user}, {type}, {type_plural}, {author_association}, {reason}, {limit}, and {count}. no""
namedescription
blockedWhether the blocklist feature matched the author.
blocked-userThe blocked username that matched, if any.
item-typeThe moderated item type, either issue or pull_request.
matched-featureThe feature that matched, such as blocklist or auto-mod.
match-reasonThe reason returned by the matched moderation feature.