Skip to content

Commit 5de57dd

Browse files
authored
Update copilot instructions (#59550)
1 parent e8caac8 commit 5de57dd

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/instructions/all.instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ When you create a pull request:
1212

1313
1. **Always** make the first line of the PR description the following (in italics):
1414

15-
`_Copilot Chat generated this pull request._`
15+
`_GitHub Copilot generated this pull request._`
1616

17-
2. Optionally, you may include a collapsed section summarizing the prompt or discussion with Copilot Chat:
17+
2. Optionally, you may include a collapsed section summarizing the prompt or discussion with Copilot:
1818

1919
```markdown
2020
<details><summary>Prompt summary - submitted by @GITHUB-USER-ID</summary>
@@ -29,4 +29,4 @@ When you create a pull request:
2929
3. Label with "llm-generated".
3030
4. If an issue exists, include "fixes owner/repo#issue" or "towards owner/repo#issue" as appropriate.
3131
5. Always create PRs in **draft mode** using `--draft` flag.
32-
6. Always _escape backticks_ when you use gh cli.
32+
6. When you are using gh cli, always _escape backticks_.

.github/instructions/code.instructions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ For code reviews, follow guidelines, tests, and validate instructions. For creat
99
## Guidelines
1010

1111
- If available, use ripgrep (`rg`) instead of `grep`.
12-
- Make sure to always _escape backticks_ when using gh cli.
12+
- When using gh cli, always _escape backticks_.
1313
- All scripts should be listed in `package.json` and use `tsx`.
14-
- Whenever you create or comment on an issue or pull request, indicate you are an LLM.
15-
- Be careful fetching full HTML pages off the internet. Prefer to use gh cli whenever possible for github.com. Limit the number of tokens when grabbing HTML.
14+
- Whenever you create or comment on an issue or pull request, indicate you are GitHub Copilot.
15+
- Be careful fetching full HTML pages off the internet. Prefer to use MCP or gh cli whenever possible for github.com. Limit the number of tokens when grabbing HTML.
1616
- Avoid pull requests with over 300 lines of code changed. When significantly larger, offer to split up into smaller pull requests if possible.
1717
- All new code should be written in TypeScript and not JavaScript.
1818
- We use absolute imports, relative to the `src` directory, using the `@` symbol. For example, `getRedirect` which lives in `src/redirects/lib/get-redirect.ts` can be imported with `import getRedirect from '@/redirects/lib/get-redirect'`. The same rule applies for TypeScript (`.ts`) imports, e.g. `import type { GeneralSearchHit } from '@/search/types'`
@@ -43,7 +43,7 @@ Run the following commands to validate your changes:
4343

4444
0. Ask the human if they would like you to follow these steps.
4545
1. If this is new work, make sure you have the latest changes by running `git checkout main && git pull`. If this is existing work, update the branch you are working on with the head branch -- usually `main`.
46-
2. If the human provides a GitHub issue, use gh cli to read the issue and all comments.
46+
2. If the human provides a GitHub issue, use MCP or gh cli to read the issue and all comments.
4747
3. Begin by evaluating impact, effort, and estimate non-test lines of code that will change. Ask for more context and examples if needed.
4848
4. If you are running in agentic mode, _stop_ at this point and request approval from the human.
4949
5. If you need to add or change tests, work on tests before implementing.
@@ -52,7 +52,7 @@ Run the following commands to validate your changes:
5252
8. Validate that any new or changed tests pass. See "Tests".
5353
9. Validate that these changes meet our guidelines. See "Guidelines".
5454
10. If you are running in agentic mode, _stop_ at this point and request review before continuing. Suggest how the human should review the changes.
55-
11. If a branch and pull request already exist, commit and push, then _concisely_ comment on the pull request that you are an LLM and what changes you made and why.
55+
11. If a branch and pull request already exist, commit and push, then _concisely_ comment on the pull request that you are GitHub Copilot and what changes you made and why.
5656
12. If this is new work and no pull request exists yet, make a pull request:
5757
- label "llm-generated"
5858
- draft mode
@@ -61,4 +61,4 @@ Run the following commands to validate your changes:
6161
14. If you are in agentic mode, offer to do any or all of:
6262
- mark the pull request as ready,
6363
- assign the issue to the human if it is not already assigned,
64-
- _concisely_ comment on the issue explaining the change, indicating you are an LLM.
64+
- _concisely_ comment on the issue explaining the change, indicating you are GitHub Copilot.

0 commit comments

Comments
 (0)