File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # AI Agent Instructions
2+
3+ ## After Making Code Changes
4+
5+ Always run the following commands before committing:
6+
7+ 1 . ** Fix lint** : ` bundle exec rubocop -a `
8+ 2 . ** Update rubocop todo** : ` bundle exec rubocop --auto-gen-config `
9+ 3 . ** Run tests** : ` bundle exec rspec `
10+
11+ ## Changelog
12+
13+ Update [ CHANGELOG.md] ( CHANGELOG.md ) for any user-facing change. Add a line at the top under ` ### Changelog ` in the format:
14+
15+ ```
16+ * YYYY/MM/DD: Description of change - [@dblock](https://github.com/dblock), [@Copilot](https://github.com/apps/copilot-swe-agent).
17+ ```
18+
19+ ## Tests
20+
21+ - Tests live in ` spec/ ` and use RSpec with Fabrication for factories (` spec/fabricators/ ` ).
22+ - Write tests for all new features and bug fixes.
23+ - Requires a local MongoDB instance (see ` config/mongoid.yml ` ).
24+
25+ ## Code Style
26+
27+ - Ruby style is enforced via RuboCop (` .rubocop.yml ` ). Persistent exceptions live in ` .rubocop_todo.yml ` .
28+ - Do not add new entries to ` .rubocop_todo.yml ` for code you write — fix the offenses instead.
29+
30+ ## Commits and PRs
31+
32+ - Squash commits before merging — one logical commit per PR.
You can’t perform that action at this time.
0 commit comments