Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds initial GitHub Copilot review instructions to help guide automated code reviews. The change establishes review guidelines specific to the Bittensor blockchain project, emphasizing critical safety requirements for substrate runtime code.
- Creates comprehensive Copilot review instructions covering security, safety, and branching guidelines
- Updates pull request template to reference the new automated formatting script
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/copilot-instructions.md |
Adds new file with detailed review guidelines for Copilot focusing on runtime safety, security, and project-specific requirements |
.github/pull_request_template.md |
Updates checklist to reference ./scripts/fix_rust.sh instead of individual cargo commands |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
.github/copilot-instructions.md
Outdated
| @@ -0,0 +1,29 @@ | |||
| When reviewing pull requests, please adhere to and keep in mind the following: | |||
| * Unless this PR is a hotfix or a deployment from `devnet-ready` => `devnet`, `devnet` => | |||
| `testnet`, or `testnet` => `main`, all new PRs should be opened against the `devnet-ready` | |||
There was a problem hiding this comment.
This made me remember, would it be possible to set the default branch for PR as devnet-ready instead of main?
There was a problem hiding this comment.
we can't, then it also becomes the default branch when people clone, I have asked github a few times to make this a separate setting
.github/copilot-instructions.md
Outdated
| change the target to `devnet-ready` if they are targeting `main` and this is not a hotfix PR. | ||
| * Bittensor is a substrate-based blockchain. It is critical that there are never panics in the | ||
| runtime, as this can brick the chain. You should be flagging any runtime/pallet code | ||
| (extrinsics, code that could be called by extrinsics, code in migrations, etc) that could |
There was a problem hiding this comment.
| (extrinsics, code that could be called by extrinsics, code in migrations, etc) that could | |
| (extrinsics, code that could be called by extrinsics, code in migrations, hooks, etc) that could |
|
@sam0x17 I passed your prompt to Claude 4.5 with this meta prompt And it got me this out: |
b135840 to
d3d9c56
Compare
Adds initial prompt for github copilot reviews