From 4cf0d7dcf174f307ce95cb5d307fc7fe41f99670 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 10:18:34 +0000 Subject: [PATCH 1/4] Initial plan From 759d6d855f18176703ba0b07aed60cf97931f8c3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 10:30:27 +0000 Subject: [PATCH 2/4] docs: enhance Copilot instructions and fix workflow trigger path Co-authored-by: krlmlr <1741643+krlmlr@users.noreply.github.com> --- .github/copilot-instructions.md | 24 +++++++++++++++++++++- .github/workflows/copilot-setup-steps.yaml | 4 ++-- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 74c7976a799..812aa295e93 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -2,11 +2,33 @@ > **Note**: For general development guidelines, code style conventions, and AI agent instructions, see [`AGENTS.md`](../AGENTS.md) in the repository root. +## Project Overview + +igraph/rigraph is an R package for network analysis and graph theory with a C/C++ backend. + ## Common Commands for Copilot Chat - Load for development: `pkgload::load_all()` - Run tests: `testthat::test_local(reporter = "check")` +- Run tests for a single file: `testthat::test_local(filter = "foo", reporter = "check")` - Format code: `air format .` - Update documentation: `devtools::document()` +- Build package: `devtools::build()` +- Check package: `devtools::check()` + +## Key Conventions + +- Use `snake_case` for functions and arguments +- Follow tidyverse style guide +- Use roxygen2 with Markdown for documentation +- Run `air format .` before committing +- Add tests for all new functionality +- Use explicit package prefixes (e.g., `withr::local_db_connection()`) + +## Important Files + +- **Do not modify directly**: `src/rinterface.c`, `R/aaa-auto.R` (generated by Stimulus) +- Update generated files: `make -f Makefile-cigraph src/rinterface.c R/aaa-auto.R` +- See `tools/README.md` for Stimulus framework guidelines -Refer to `AGENTS.md` for more instructions. +Refer to `AGENTS.md` for complete instructions. diff --git a/.github/workflows/copilot-setup-steps.yaml b/.github/workflows/copilot-setup-steps.yaml index 766b03a6a30..6ede6cac04d 100644 --- a/.github/workflows/copilot-setup-steps.yaml +++ b/.github/workflows/copilot-setup-steps.yaml @@ -6,10 +6,10 @@ on: workflow_dispatch: push: paths: - - .github/workflows/copilot-setup-steps.yml + - .github/workflows/copilot-setup-steps.yaml pull_request: paths: - - .github/workflows/copilot-setup-steps.yml + - .github/workflows/copilot-setup-steps.yaml jobs: # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. From ab5d07dcc09cbe1fc41028a536834d83b2f1edd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sat, 24 Jan 2026 11:34:12 +0100 Subject: [PATCH 3/4] Tweak --- .github/copilot-instructions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 812aa295e93..322765bc766 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -9,8 +9,8 @@ igraph/rigraph is an R package for network analysis and graph theory with a C/C+ ## Common Commands for Copilot Chat - Load for development: `pkgload::load_all()` -- Run tests: `testthat::test_local(reporter = "check")` -- Run tests for a single file: `testthat::test_local(filter = "foo", reporter = "check")` +- Run tests: `testthat::test_local()` +- Run tests for a single file: `testthat::test_local(filter = "foo")` - Format code: `air format .` - Update documentation: `devtools::document()` - Build package: `devtools::build()` From 999aea51cb7945c5e25fe4ca6cb32dc0ee2f94a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sat, 24 Jan 2026 11:51:02 +0100 Subject: [PATCH 4/4] Back --- .github/copilot-instructions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 322765bc766..812aa295e93 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -9,8 +9,8 @@ igraph/rigraph is an R package for network analysis and graph theory with a C/C+ ## Common Commands for Copilot Chat - Load for development: `pkgload::load_all()` -- Run tests: `testthat::test_local()` -- Run tests for a single file: `testthat::test_local(filter = "foo")` +- Run tests: `testthat::test_local(reporter = "check")` +- Run tests for a single file: `testthat::test_local(filter = "foo", reporter = "check")` - Format code: `air format .` - Update documentation: `devtools::document()` - Build package: `devtools::build()`