walkmana-25/GitHub Content Moderator
Moderates content in issues, PRs, and comments using the OpenAI API.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | The GitHub token. | yes | ${{ github.token }} |
| openai-api-key | The OpenAI API key. If not provided, the `github-token` will be used to authenticate with the GitHub Copilot API. | no | "" |
| openai-endpoint | The OpenAI API endpoint. | no | https://models.github.ai/inference |
| openai-model | The OpenAI model to use. | no | openai/gpt-4.1-mini |
| text-to-moderate | The text to moderate. If not provided, will be auto-populated from the event (title + body for Issues/PRs/Discussions, body only for comments). | no | "" |
| retry-count | The number of times to retry the OpenAI API call on failure. | no | 3 |
Outputs
| name | description |
|---|---|
| is-inappropriate | Whether the content was flagged as inappropriate. |
| flagged-categories | A comma-separated list of flagged categories. |
| moderation-results-json | The full JSON response from the OpenAI API. |