Skip to content

Update Copilot instructions#3706

Merged
RaymondLuong3 merged 1 commit intomasterfrom
feature/update-copilot-instructions
Feb 24, 2026
Merged

Update Copilot instructions#3706
RaymondLuong3 merged 1 commit intomasterfrom
feature/update-copilot-instructions

Conversation

@Nateowami
Copy link
Collaborator

@Nateowami Nateowami commented Feb 20, 2026


Open with Devin

This change is Reviewable

Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

Copy link
Collaborator Author

@Nateowami Nateowami left a comment

Choose a reason for hiding this comment

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

@Nateowami made 3 comments.
Reviewable status: 0 of 1 files reviewed, all discussions resolved.


.github/copilot-instructions.md line 89 at r1 (raw file):

- Use explicit true/false/null/undefined rather than truthy/falsy
- Never rely on JavaScript's truthy or falsy. Instead, work with actual true, false, null, and undefined values, rather than relying on their interpretation as truthy or falsy. For example, if `count` might be null, or undefined, or zero, don't write code like `if (count)` or `const foo:string = someVariable ? 'a' : 'b'`. Instead, inspect for the null, undefined, or zero rather than letting the value be interpreted as truthy for falsy. For example, use `if (count == null)` or `const foo:string = someVariable != null 'a' : 'b'` or `if (count > 0)`.

I think I've preserved the intend of this list item while rewording it to say what it means to say. When I've asked agents to review changes I've sometimes had it claim I broke this rule, even if I didn't, or at least was in the spirit of it. I think as originally written it was too vague about what it was trying to prevent.


.github/copilot-instructions.md line 98 at r1 (raw file):

  `const buildEvent: EventMetric | undefined = buildEvents[0];`.
- Use `@if {}` syntax rather than `*ngIf` syntax.
- Although interacting with existing code and APIs may necessitate the use of `null`, when writing new code, prefer using `undefined` rather than `null`.

I don't think this is a general rule to follow, and JSON doesn't have undefined, only null. I think it's more helpful to provide guidance regarding when to use each than to try to avoid one or the other.


.github/copilot-instructions.md line 100 at r1 (raw file):

- Although interacting with existing code and APIs may necessitate the use of `null`, when writing new code, prefer using `undefined` rather than `null`.
- Fields that are of type Subject or BehaviorSubject should have names that end with a `$`.
- When refactoring a method to be static, you should not need to start passing in `this` as an argument.

I could not figure out what this is supposed to mean. I'm guessing it's supposed to say something like don't refactor it if you still have to pass in this, or refactor it in such a way that you don't have to pass in this.

Though I would say if you're tempted to pass this in, it probably shouldn't be static, which makes me think this shouldn't be included here.

@codecov
Copy link

codecov bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.73%. Comparing base (db4bbd7) to head (6e7d687).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3706   +/-   ##
=======================================
  Coverage   81.73%   81.73%           
=======================================
  Files         619      619           
  Lines       38651    38651           
  Branches     6317     6317           
=======================================
  Hits        31593    31593           
- Misses       6084     6097   +13     
+ Partials      974      961   -13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@RaymondLuong3 RaymondLuong3 force-pushed the feature/update-copilot-instructions branch from a0bb00b to 6e7d687 Compare February 24, 2026 18:49
Copy link
Collaborator

@RaymondLuong3 RaymondLuong3 left a comment

Choose a reason for hiding this comment

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

:lgtm:

@RaymondLuong3 reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on Nateowami).

@RaymondLuong3 RaymondLuong3 merged commit c9fc838 into master Feb 24, 2026
21 checks passed
@RaymondLuong3 RaymondLuong3 deleted the feature/update-copilot-instructions branch February 24, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants