Skip to content

Conversation

@juan-arias
Copy link
Member

Proposed changes

This pull request introduces a new GitHub Actions workflow to automatically generate and post AI-powered replies to newly opened issues, helping with initial triage and user engagement. The workflow is designed to be cautious, concise, and configurable, with several safeguards to avoid unnecessary or duplicate replies.

Key additions in this pull request:

Automated AI Issue Reply Workflow:

  • Adds a new workflow file, .github/workflows/ai-issues-auto-reply.yml, that triggers on new issue creation and uses GitHub Actions to automate AI-generated replies.

Safeguards and Logic:

  • Implements checks to skip replying to issues opened by maintainers, issues with certain labels (e.g., security, no-ai), or issues that already have an AI reply or maintainer comment.
  • Supports configuration via environment variables for required/block labels, dry run mode, and model selection.

AI Response Generation and Posting:

  • Uses the GitHub Models API to generate a short, safe, and friendly reply based on the issue content, following project communication guidelines.
  • Posts the generated reply as a comment and adds an AI-replied label to prevent duplicate responses.

Type of change

  • Feature work
  • Bug fix
  • Documentation
  • Engineering change
  • Test
  • Logging/Telemetry

Risk

  • High – Errors could cause MAJOR regression of many scenarios. (Example: new large features or high level infrastructure changes)
  • Medium – Errors could cause regression of 1 or more scenarios. (Example: somewhat complex bug fixes, small new features)
  • Small – No issues are expected. (Example: Very small bug fixes, string changes, or configuration settings changes)

Additional information

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request introduces a GitHub Actions workflow to automate AI-powered responses to newly opened issues. The workflow aims to improve initial triage and user engagement by generating context-aware replies using the GitHub Models API, while implementing safeguards to prevent inappropriate or duplicate responses.

Key Changes

  • Implements automated issue triage with AI-generated responses triggered on issue creation
  • Adds decision logic to skip responses for maintainer-opened issues, security-labeled issues, or issues with existing comments
  • Integrates with GitHub Models API to generate responses following project communication guidelines

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