Skip to content

chore: Add GitHub Actions for AI-powered issue and PR management#3886

Merged
jamesarich merged 1 commit into
mainfrom
chore/repo-model-workflows
Dec 3, 2025
Merged

chore: Add GitHub Actions for AI-powered issue and PR management#3886
jamesarich merged 1 commit into
mainfrom
chore/repo-model-workflows

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

This commit introduces five new GitHub Actions workflows to automate and improve the management of issues and pull requests using AI:

  • models_dedupe.yml: Detects and flags duplicate issues.
  • models_completeness.yml: Checks new issues for completeness (e.g., reproduction steps, version info) and requests missing information.
  • models_quality.yml: Identifies and labels potential spam or low-quality contributions in new issues and pull requests.
  • models_onboarding.yml: Periodically runs an AI resolver on issues and pull requests.
  • models_resolver.yml: Welcomes first-time contributors with a friendly message and directs them to contribution guidelines.

These are directly copied from the article: https://github.blog/open-source/maintainers/how-github-models-can-help-open-source-maintainers-focus-on-what-matters/ and therefore may need some tuning to get working appropriately.

This commit introduces five new GitHub Actions workflows to automate and improve the management of issues and pull requests using AI:

*   **`models_dedupe.yml`**: Detects and flags duplicate issues.
*   **`models_completeness.yml`**: Checks new issues for completeness (e.g., reproduction steps, version info) and requests missing information.
*   **`models_quality.yml`**: Identifies and labels potential spam or low-quality contributions in new issues and pull requests.
*   **`models_onboarding.yml`**: Periodically runs an AI resolver on issues and pull requests.
*   **`models_resolver.yml`**: Welcomes first-time contributors with a friendly message and directs them to contribution guidelines.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces five new GitHub Actions workflows to automate issue and pull request management using AI-powered tools. The workflows are adapted from a GitHub blog article and require configuration tuning for production use.

Key Changes:

  • Adds AI-powered duplicate issue detection, issue completeness checking, and quality/spam filtering
  • Implements automated welcome messages for first-time contributors
  • Sets up periodic AI-based issue/PR resolution

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
.github/workflows/models_resolver.yml Welcomes first-time contributors with AI-generated messages
.github/workflows/models_quality.yml Detects spam or low-quality issues/PRs and applies labels
.github/workflows/models_onboarding.yml Runs continuous AI resolver on a weekly schedule
.github/workflows/models_dedupe.yml Detects and flags duplicate issues using AI
.github/workflows/models_completeness.yml Checks new issues for completeness and requests missing info

Critical Security Concerns: Multiple workflows contain script injection and prompt injection vulnerabilities where unsanitized AI outputs and user inputs are directly interpolated into scripts. Additionally, the actions/ai-inference@v1 action and models: read permission may not exist in standard GitHub Actions and require verification before deployment.

Comment thread .github/workflows/models_completeness.yml
Comment thread .github/workflows/models_quality.yml
Comment thread .github/workflows/models_resolver.yml
Comment thread .github/workflows/models_completeness.yml
Comment thread .github/workflows/models_completeness.yml
Comment thread .github/workflows/models_completeness.yml
Comment thread .github/workflows/models_resolver.yml
Comment thread .github/workflows/models_dedupe.yml
Comment thread .github/workflows/models_quality.yml
Comment thread .github/workflows/models_quality.yml
@jamesarich jamesarich changed the title Add GitHub Actions for AI-powered issue and PR management chore: Add GitHub Actions for AI-powered issue and PR management Dec 3, 2025

@DaneEvans DaneEvans left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Lets see how they play.
I'm sure we'll want to change some thingsr

@jamesarich jamesarich added this pull request to the merge queue Dec 3, 2025
Merged via the queue into main with commit 92733e6 Dec 3, 2025
14 checks passed
@jamesarich jamesarich deleted the chore/repo-model-workflows branch December 3, 2025 01:50
@codecov

codecov Bot commented Dec 3, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.53%. Comparing base (3648f2d) to head (a4586f2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #3886   +/-   ##
=====================================
  Coverage   0.53%   0.53%           
=====================================
  Files        392     392           
  Lines      22940   22940           
  Branches    2894    2894           
=====================================
  Hits         122     122           
  Misses     22797   22797           
  Partials      21      21           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review repo Repository maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants