Skip to content

Commit

Permalink
[gh actions] introduce "inclusive heat sensor"
Browse files Browse the repository at this point in the history
Context: https://github.com/jonathanpeppers/inclusive-heat-sensor

This is a new GitHub action that will run for each pull request
description, issue, or comment with the idea it could take action if:

* "Anger" is detected
* "Offensive" text is detected

Down the road, if it is working, we could do things like:

* Add a "spicy" label to the issue

* Auto-hide comments as abuse (or spam?)

For now, we just want to let it run (and do nothing) to see what kind
of comments it flags. This is a test to see if it is useful.

NOTE: I may close/reopen this pull request a few times to run the
action.
  • Loading branch information
jonathanpeppers committed Oct 18, 2024
1 parent 4a2e721 commit 2552549
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/inclusive-heat-sensor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Inclusive Heat Sensor
on:
issues:
types: [opened, reopened]
issue_comment:
types: [created, edited]
pull_request:
types: [opened, reopened]
pull_request_review_comment:
types: [created, edited]

permissions:
contents: read
issues: write
pull-requests: write

jobs:
detect-heat:
uses: jonathanpeppers/inclusive-heat-sensor/.github/workflows/[email protected]
secrets: inherit

0 comments on commit 2552549

Please sign in to comment.