بنقرة واحدة
pr-ready
Run pre-commit checks, review PR checklist, and draft a commit message for Relay changes
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Run pre-commit checks, review PR checklist, and draft a commit message for Relay changes
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | pr-ready |
| description | Run pre-commit checks, review PR checklist, and draft a commit message for Relay changes |
| tags | ["git","pr","lint","relay"] |
Get changes ready to submit as a PR. Runs lint checks, reviews the PR checklist, and drafts a commit message.
cd frontend && npx --no-install lint-staged --cwd ..
This runs stylelint, prettier, eslint, black, mypy, and ruff on staged files. Fix any errors before continuing.
If any .ftl files in privaterelay/pending_locales/ were changed, also run the Fluent linter:
moz-fluent-lint privaterelay/pending_locales --config privaterelay/locales/.github/linter_config.yml
Common fix: the linter requires right single quotation marks (') instead of straight apostrophes (') in English strings.
Inspect git diff --cached (or git diff HEAD if nothing staged) and answer each item:
docs/ updated?/frontend/src/styles/colors.scss)mzp- prefix for Protocol, no prefix for custom styles// comments in SassReport the checklist status. Flag any items that need attention before the PR is submitted.
Review the staged changes and write a commit message. Do NOT run git commit.
Format:
<type>[optional scope]: <description>
[optional body]
Types: feat, fix, refactor, perf, docs, test, build, ci, chore
Style:
feat!: or feat(scope)!: + BREAKING CHANGE: footerPresent the message. Do not commit.
Write a brief testing guide for the PR reviewer. Base it on the staged changes.
Format:
How to test:
1. <setup step, if needed>
2. <action to take>
3. <what to verify>
Guidelines:
Present the section. Do not open a PR.