Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add auto-approve workflow for GitHub Copilot agent PRs #231

Closed
@pamelafox

Description

Issue Description

This repository contains references to auto-approve actions or Copilot SWE agent in workflow files, but should have a dedicated workflow to auto-approve PRs from the GitHub Copilot agent.

Recommended Action

Create a new workflow file at .github/workflows/auto_approve_copilot.yaml with the following content:

name: Auto-approve Copilot PRs
on:
 pull_request:
 types: [opened, synchronize]
jobs:
 auto-approve:
 runs-on: ubuntu-latest
 if: github.actor == 'copilot-swe-agent'
 steps:
 - name: Auto-approve PR from Copilot agent
 uses: hmarr/auto-approve-action@v3
 with:
 github-token: ${{ secrets.GITHUB_TOKEN }}

This workflow will:

  • Automatically approve PRs created by the copilot-swe-agent
  • Use the hmarr/auto-approve-action@v3 action for reliable auto-approval
  • Only run on PRs from the Copilot agent for security

Benefits

  • Streamlines the development workflow with Copilot
  • Reduces manual intervention for agent-created PRs
  • Maintains security by only auto-approving specific agent PRs

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /