moc
Copilot instructions53 starsChanged 10 months agoApache-2.0View on GitHub
When creating or working on a pull request, you MUST ensure all of the following conditions are met before marking the PR as ready for review: Before marking a PR as ready for review, use GitHub CLI or API to verify: Or check the PR page on GitHub to ensure: - All status checks show green checkmarks (✓) - No red X marks or orange/yellow pending indicators - The "All checks have passed" message is displayed If any checks fail:…
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
18 rules. About 0 are common, 18 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 7
When creating or working on a pull request, you MUST ensure all of the following conditions are met before marking the PR as ready for …
- Distinctive: line 40
Before marking a PR as ready for review, use GitHub CLI or API to verify:
- Distinctive: line 51
All status checks show green checkmarks (✓)
- Distinctive: line 52
No red X marks or orange/yellow pending indicators
- Distinctive: line 57
If any checks fail:
- Distinctive: line 60
Wait for all checks to re-run and pass
- Distinctive: line 61
Only then mark the PR as ready for review
- Distinctive: line 63
If a check failure is unrelated to your changes:
- Distinctive: line 64
Document the pre-existing failure in the PR description
- Distinctive: line 65
Ensure your changes don't make it worse
- Distinctive: line 66
Consider fixing the pre-existing issue if feasible
- Distinctive: line 71
Use draft PRs for work-in-progress changes
- Distinctive: line 72
Keep PR in draft status until all checks pass
- Distinctive: line 88
Always run local builds and tests before pushing
- Distinctive: line 89
Ensure changes are minimal and focused
- Distinctive: line 90
Keep PR descriptions clear and informative
- Distinctive: line 91
Update documentation if behavior changes
- Distinctive: line 92
Follow existing code patterns and conventions
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Copilot Instructions for MOC Repository
Pull Request Workflow
Before Marking PR as Ready for Review
When creating or working on a pull request, you MUST ensure all of the following conditions are met before marking the PR as ready for review:
1. Build Status Checks
- ✅ All build jobs must pass successfully
- ✅ Azure Pipelines build jobs must complete without errors:
Buildjob (includes protobuf generation, compilation, and unit tests)Lintjob (GolangCI-Lint must pass)
- ✅ GitHub Actions workflows must complete successfully:
- CodeQL analysis must complete without blocking issues
2. Test Status Checks
- ✅ All unit tests must pass (
make unittest) - ✅ No test failures or regressions introduced by the changes
- ✅ Test coverage should be maintained or improved
3. Code Quality Checks
- ✅ Linting must pass without errors (
make golangci-lint) - ✅ No new linting violations introduced by the changes
- ✅ Code follows the existing style and conventions of the repository
4. CI/CD Pipeline Status
- ✅ All Azure Pipelines jobs must show green/passing status
- ✅ All GitHub Actions workflows must show green/passing status
- ✅ No pending or failing status checks on the PR
5. Build Verification
- ✅ The code must build successfully:
make pipelinecompletes without errors (protobuf generation for pipeline)make allcompletes without errors (format code and run tests)
- ✅ No compilation errors or warnings that would block the build
How to Verify Status
Before marking a PR as ready for review, use GitHub CLI or API to verify:
# Check PR status checks
gh pr checks <pr-number>
# Verify all checks are passing
gh pr view <pr-number> --json statusCheckRollupOr check the PR page on GitHub to ensure:
- All status checks show green checkmarks (✓)
- No red X marks or orange/yellow pending indicators
- The "All checks have passed" message is displayed
Exception Handling
If any checks fail:
- DO NOT mark the PR as ready for review
- Investigate and fix the failing checks first
- Wait for all checks to re-run and pass
- Only then mark the PR as ready for review
If a check failure is unrelated to your changes:
- Document the pre-existing failure in the PR description
- Ensure your changes don't make it worse
- Consider fixing the pre-existing issue if feasible
- Communicate with maintainers about the unrelated failure
Draft PR Usage
- Use draft PRs for work-in-progress changes
- Keep PR in draft status until all checks pass
- Convert to ready for review only after all status checks are green
Build Commands Reference
make generate- Generate protobuf files (calls ./gen.sh)make pipeline- Generate protobuf for pipeline (calls ./gen.sh -c)make all- Format code and run testsmake format- Format code with gofmtmake test- Run all tests (calls unittest)make unittest- Run unit testsmake golangci-lint- Run linting checksmake tidy- Tidy go modules
Additional Guidelines
- Always run local builds and tests before pushing
- Ensure changes are minimal and focused
- Keep PR descriptions clear and informative
- Update documentation if behavior changes
- Follow existing code patterns and conventions
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

