From 699bc5f34b8a7eba8abbc33a31614df6dbb5cfc6 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Sat, 25 Oct 2025 16:05:09 +0100 Subject: [PATCH] chore: add Copilot coding agent config and CI workflow --- .copilot-agent.yml | 7 +++++++ .github/COPILOT_AGENT_README.md | 13 +++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .copilot-agent.yml create mode 100644 .github/COPILOT_AGENT_README.md diff --git a/.copilot-agent.yml b/.copilot-agent.yml new file mode 100644 index 00000000..5f7f7ea2 --- /dev/null +++ b/.copilot-agent.yml @@ -0,0 +1,7 @@ +enabled: true +agent: + name: copilot-coding-agent + allow: + - paths: ["src/**/*", "tests/**/*", "README.md", "AGENTS.md"] + actions: ["create", "modify"] + require_review_before_merge: true diff --git a/.github/COPILOT_AGENT_README.md b/.github/COPILOT_AGENT_README.md new file mode 100644 index 00000000..4ef95a2a --- /dev/null +++ b/.github/COPILOT_AGENT_README.md @@ -0,0 +1,13 @@ +# Copilot Coding Agent Configuration + +This repository includes a minimal opt-in configuration and CI workflow to allow the GitHub Copilot coding agent to open and validate PRs. + +- .copilot-agent.yml: opt-in config for automated agents +- .github/workflows/dotnetcore.yml: CI runs on PRs touching the solution, source, or tests to validate changes +- AGENTS.yml: general information for this project + +Maintainers can adjust the allowed paths or disable the agent by editing or removing .copilot-agent.yml. + +Notes: +- Do not change any other files in the repository. +- If build/test paths are different, update the workflow accordingly; this workflow targets SharpCompress.sln and the SharpCompress.Tests test project.