Skip to content

Add AI Moderator as an automation starter workflow - #3403

Closed
salmanmkc wants to merge 3 commits into
actions:mainfrom
salmanmkc:add-ai-moderator-starter-workflow
Closed

Add AI Moderator as an automation starter workflow#3403
salmanmkc wants to merge 3 commits into
actions:mainfrom
salmanmkc:add-ai-moderator-starter-workflow

Conversation

@salmanmkc

Copy link
Copy Markdown
Contributor

Summary

Adds github/ai-moderator as a new template in the Automation category of the starter workflow gallery, so any repository can pick it from the Actions tab.

Why this category

github/ai-moderator is the spam/AI-content moderation sibling of actions/ai-inference, from the same GitHub Models announcement. actions/ai-inference is already available here as the "AI issue summary" template (automation/summary.yml). This follows the same pattern:

  • Uses ${{ secrets.GITHUB_TOKEN }} with models: read — no extra API key or paid third-party service required.
  • Sits alongside the existing community-health templates (Stale, Greetings, Labeler) in automation/.

Files

  • automation/ai-moderator.yml — the workflow template.
  • automation/properties/ai-moderator.properties.json — gallery metadata (name, description, icon, category).

Validation

Ran script/validate-data locally against these files — no errors (name is unique, category is the first-listed Automation, icon name matches the existing octicon ai-model convention used by the AI issue summary template).

Note

This is a separate, alternative install path from #3401 / #3402, which add AI Moderator as maintenance automation on this repository's own issue tracker rather than as a gallery template for other repos to pick.

Adds github/ai-moderator to the Automation category of the starter
workflow gallery, alongside the existing Stale, Greetings, and Labeler
templates. Any repository can now pick this from the Actions tab to
scan new issues and comments for spam, link spam, and AI-generated
content using the GitHub Models inference API (no extra secrets
required, matching the existing AI issue summary template).

Verified against script/validate-data locally: no errors.
Copilot AI review requested due to automatic review settings August 3, 2026 12:05
@salmanmkc
salmanmkc requested review from a team as code owners August 3, 2026 12:05
Comment thread automation/ai-moderator.yml Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds AI Moderator as a new starter workflow template under the Automation category, enabling repositories to install github/ai-moderator directly from the Actions starter workflow gallery.

Changes:

  • Added a new starter workflow template at automation/ai-moderator.yml that runs github/ai-moderator@v1 on new issues and comments.
  • Added gallery metadata at automation/properties/ai-moderator.properties.json (name/description/icon/categories) consistent with existing Automation templates.
Show a summary per file
File Description
automation/ai-moderator.yml New starter workflow wiring github/ai-moderator@v1 with appropriate events and permissions for labeling/minimizing detected content.
automation/properties/ai-moderator.properties.json New workflow gallery metadata entry (name/description/icon/categories) for the AI Moderator template.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

salmanmkc and others added 2 commits August 3, 2026 12:10
Gallery templates are not covered by this repository's Dependabot
configuration, which only scans .github/workflows, so pin to the
current major version at authoring time.
@salmanmkc

Copy link
Copy Markdown
Contributor Author

Closing in favour of #3402, which adds the AI Moderator as a gh-aw agentic workflow rather than a plain action-based starter workflow. Consolidating on a single approach there.

@salmanmkc salmanmkc closed this Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants