Skip to content

docs(repo): introduce code review instructions for copilot#2560

Merged
literat merged 1 commit intomainfrom
chore/copilot-instructions
Mar 31, 2026
Merged

docs(repo): introduce code review instructions for copilot#2560
literat merged 1 commit intomainfrom
chore/copilot-instructions

Conversation

@literat
Copy link
Copy Markdown
Collaborator

@literat literat commented Mar 27, 2026

Description

  • remove styling information, keep instructions short and sharp

Additional context

Issue reference

@literat literat requested a review from a team as a code owner March 27, 2026 11:13
Copilot AI review requested due to automatic review settings March 27, 2026 11:13
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 27, 2026

Deploy Preview for spirit-design-system-docsite ready!

Name Link
🔨 Latest commit 5756dbf
🔍 Latest deploy log https://app.netlify.com/projects/spirit-design-system-docsite/deploys/69cbe23182a5110008bbd3a2
😎 Deploy Preview https://deploy-preview-2560--spirit-design-system-docsite.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 27, 2026

Deploy Preview for spirit-design-system-storybook canceled.

Name Link
🔨 Latest commit 5756dbf
🔍 Latest deploy log https://app.netlify.com/projects/spirit-design-system-storybook/deploys/69cbe231a3ee170008800424

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 27, 2026

Deploy Preview for spirit-design-system canceled.

Name Link
🔨 Latest commit 5756dbf
🔍 Latest deploy log https://app.netlify.com/projects/spirit-design-system/deploys/69cbe231f290df000881698a

@github-actions github-actions bot added the maintenance Changes to the build process or auxilary tools and libraries or other maintenance label Mar 27, 2026
Copy link
Copy Markdown

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

Updates the repository’s Copilot instructions to focus on concise, standardized PR review guidance, replacing the previously long set of component/system implementation guidelines.

Changes:

  • Simplifies “Architecture & Technologies” headings and removes hardcoded version qualifiers (e.g., React/Node.js versions).
  • Replaces large sections of component/dev/testing guidance with “Code Review Instructions” based on Conventional Comments.
  • Adds review heuristics (what not to report, review dimensions, AI-generated code checks).

@literat literat marked this pull request as draft March 27, 2026 11:18
Copilot AI review requested due to automatic review settings March 31, 2026 12:28
@literat literat force-pushed the chore/copilot-instructions branch from 284802f to 306dc05 Compare March 31, 2026 12:28
@literat literat marked this pull request as ready for review March 31, 2026 12:28
Copy link
Copy Markdown

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

  * remove styling information, keep instructions short and sharp
@literat literat force-pushed the chore/copilot-instructions branch from 23961c9 to 5756dbf Compare March 31, 2026 15:03
@literat literat merged commit 3559c40 into main Mar 31, 2026
37 checks passed
@literat literat deleted the chore/copilot-instructions branch March 31, 2026 15:09
Copy link
Copy Markdown
Member

@adamkudrna adamkudrna left a comment

Choose a reason for hiding this comment

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

Curious to see it in action!

- **Accessibility tests** using jest-axe
- **Visual regression tests** with Playwright
- **Interaction tests** for user behaviors
When reviewing AI-generated changes, additionally check for:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How do we know the code is (not) AI generated?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good question. But as I remember it correctly, you have marked your AI-generated code with the comment :-)

- **PascalCase** for React components (`Button`, `CardHeader`, `NavigationLink`)
- **Atomic design** structure (atoms, molecules, organisms)
- **Semantic versioning** with careful breaking change management
Use [Conventional Comments](https://conventionalcomments.org/) for all findings.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

OK… 👀

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

You mean that the link should be formatted as we do it, or you are uncertain whether it will fetch and analyze the content?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Changes to the build process or auxilary tools and libraries or other maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants