← Back to issue list

ci: initial sync with canonical/copilot-collections

View original Github issue

Metadata

Project
snapcraft
Number
#6196
Type
pull request
State
merged
Author
mr-cal
Labels
Created
Updated
Closed

Current evaluation

Merged initial sync with canonical/copilot-collections, adding generated GitHub instructions and skills. Introduces a weekly CI job to detect upstream releases and auto-create update PRs. Approved and merged.

Suggested action:

No scores available.

Issue body

Initial sync with [canonical/copilot-collections](https://github.com/canonical/copilot-collections). Also adds a CI job from copilot-collections that runs once a week, checks for new releases, and creates a PR if there's been an update. The `.github/skills/` and `.github/instructions/` are generated by copilot-collections. Feel free to read through them, but the contents shouldn't be modified here. ### Q & A **Why Snapcraft?** Snapcraft is a good proving ground because it gets a fair amount of activity and I review most PRs. **Can I use these instructions locally?** Yes. For Copilot CLI, they're loaded automatically for Snapcraft. If you want them to work for other projects, then ensure your local copy of Snapcraft has these instructions and run `export COPILOT_CUSTOM_INSTRUCTIONS_DIRS=<path-to-snapcraft>`. `/instructions` in copilot CLI will show you what's been loaded. **Will we add this to all our repos?** Likely, depending on how this trial goes. **Does it improve the reviews?** I think so, but you can judge that yourself. Here's the same doc change [with](https://github.com/canonical/snapcraft/pull/6194) and [without](https://github.com/canonical/snapcraft/pull/6195) the instructions. Copilot reviews on GH are a bit annoying because they only leave so many comments per review, so you have to do many iterations. They aren't that deterministic either. Here are a few comments that are based on the custom instructions <img width="636" height="192" alt="image" src="https://github.com/user-attachments/assets/28c9ebec-bc94-45ff-acb6-c4d4ecd298f3" /> <img width="636" height="192" alt="image" src="https://github.com/user-attachments/assets/85f97765-e0f4-49f2-b749-885307e16c34" /> <img width="636" height="192" alt="image" src="https://github.com/user-attachments/assets/24560756-a530-4f05-bc5e-724709230a67" /> --- - [x] I've followed the [contribution guidelines](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md). - [x] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/). - [x] I've successfully run `make lint && make test`. - [ ] I've added or updated any relevant documentation. - [ ] In documents I changed, I [added a meta description](https://canonical-starflow.readthedocs-hosted.com/how-to/add-a-page-meta-description/) if one was missing. - [ ] I've updated the relevant release notes.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged initial sync with canonical/copilot-collections, adding generated GitHub instructions and skills. Introduces a weekly CI job to detect upstream releases and auto-create update PRs. Approved and merged.
qwen3.6-35b-a3b-mtp-q6 Merged initial sync with canonical/copilot-collections. Adds a weekly CI job to update .github/skills/ and .github/instructions/ from tagged releases. Maintainer confirmed the workflow and agreed to skip full tests for .github changes.
qwen3.6-35b-a3b-mtp-q6 Merged sync with canonical/copilot-collections, adding generated GitHub instructions and skills. Added a weekly CI job to auto-fetch new releases. Approved test suite filtering for GitHub file changes.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#327 ci: initial sync with canonical/copilot-collections imagecraft merged Merged an experimental CI sync with canonical/copilot-collections to enable copilot collections testing in Imagecraft. Approved by two reviewers and merged despite failing spread tests on older Ubuntu versions.
86%
#2663 ci: initial sync with canonical/copilot-collections charmcraft merged Merged sync with canonical/copilot-collections. Added Copilot instructions, skills, and auto-sync workflow to charmcraft. Approved by three reviewers and passed CI checks. Type-check warnings were non-blocking.
86%
#2796 ci: give copilot collections job the right perms charmcraft merged Merged changes granting write permissions for contents and pull requests to the copilot collections update workflow, replicating canonical/snapcraft#6352. Approved by one reviewer and passed CI checks.
74%
#1388 ✨ Set up Copilot instructions craft-parts closed Implemented. Added .github/.copilot-collections.yaml to configure Copilot collections, created .github/instructions/ with formatting rules and PR comment directives, and established an automated workflow to sync collections from the canonical repository.
74%
#1655 ci: add copilot-collections config craft-parts merged Merged after approval. Updates copilot collections configuration and workflow permissions. CI passed after resolving an initial conventional commit title check. Changes affect 4 files with 98 additions and 41 deletions.
73%
#381 build: Add copilot instructions and collections craft-store merged Merged after approval and passing CI checks. Adds Copilot instructions and collections to the build, replicating canonical/imagecraft#327. Intentionally retains older collection versions to enable an updater workflow. Changed 21 files.
73%
#1389 docs: add GitHub Copilot instructions and setup validation workflow craft-parts closed Added GitHub Copilot instructions and a CI validation workflow. After iterative revisions, the closed pull request was superseded by copilot collections.
72%
#397 Add write permissions to copilot-collections-update workflow imagecraft merged Merged. Adds contents and pull-requests write permissions to the copilot-collections-update workflow, replicating a fix from canonical/charmcraft#2796. Approved by one reviewer and passed CI checks.
71%