Skip to content

Add Copilot code review instructions#85

Merged
paulocastellano merged 2 commits into
mainfrom
chore/copilot-review-instructions
Jun 10, 2026
Merged

Add Copilot code review instructions#85
paulocastellano merged 2 commits into
mainfrom
chore/copilot-review-instructions

Conversation

@paulocastellano

Copy link
Copy Markdown
Contributor

Adds .github/copilot-instructions.md so the automatic Copilot code review (already enabled via the "Copilot review for default branch" ruleset) follows TryPost's conventions instead of generic advice.

Distills the highest-signal, project-specific rules a reviewer should enforce:

  • Backend: validation in FormRequest, Eloquent API Resources, data_get(), Response:: constants, new migrations (production), Wayfinder/config URLs, PHP 8 idioms, AI prompts in Blade.
  • Frontend: arrow functions only, @tabler/icons-vue, dates via @/dayjs/@/date, Wayfinder routes, no HTML5 validation attrs, single root element.
  • Pagination: ->paginate() + Inertia scroll.
  • Tests: required for behavioral changes; named routes / @dusk selectors.
  • Git: no Co-Authored-By / AI attribution.

Kept under the ~4000-char limit Copilot uses for code review (2.7k). Takes effect once merged to main (Copilot reads instructions from the base branch).

@paulocastellano paulocastellano merged commit 2b62012 into main Jun 10, 2026
2 checks passed
@paulocastellano paulocastellano deleted the chore/copilot-review-instructions branch June 10, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant