Skip to content

Commit

Permalink
[gh actions] introduce "inclusive heat sensor" (#25389)
Browse files Browse the repository at this point in the history
* [gh actions] introduce "inclusive heat sensor"

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.

* Don't run on PR open

Co-authored-by: Rolf Bjarne Kvinge <[email protected]>

---------

Co-authored-by: Rolf Bjarne Kvinge <[email protected]>
  • Loading branch information
jonathanpeppers and rolfbjarne authored Oct 21, 2024
1 parent 70f1f76 commit 8b44525
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: [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 8b44525

Please sign in to comment.