pr

โดย automattic

เรียกใช้สกิลนี้ก่อนสร้าง PR ใดๆ เพื่อให้แน่ใจว่าสอดคล้องกับการตั้งชื่อสาขา ข้อกำหนด changelog และการกำหนดผู้ตรวจสอบ

npx skills add https://github.com/automattic/wordpress-activitypub --skill pr

ActivityPub PR Workflow

Branch Naming

PrefixUse
add/{feature}New features
update/{feature}Iterating on existing features
fix/{bug}Bug fixes
try/{idea}Experimental ideas

Reserved: release/{X.Y.Z} (releases only), trunk (main branch).

Pre-PR Review

Scope the review to what changed — don't review every PR:

  • Skip for docs-only (*.md, docs/, README), tooling/config-only (.claude/, .agents/, workflow files), and trivial edits (typo, comment, whitespace). Push these straight to PR.
  • Run the code-review agent only when the branch changes plugin code (PHP/JS/CSS logic). Address any critical issues before proceeding.

PR Creation

Every PR must:

  • Assign @me
  • Add Automattic/fediverse as reviewer
  • Include changelog entry OR "Skip Changelog" label
  • Pass CI checks
  • Merge cleanly with trunk
# Create PR (includes required assignment/reviewer)
gh pr create --assignee @me --reviewer Automattic/fediverse

Use the exact template from .github/PULL_REQUEST_TEMPLATE.md — do not create custom formatting.

Write backticks bare in PR bodies and comments. A backslash-escaped backtick renders literally on GitHub, and a single-quoted heredoc needs no escaping anyway.

Changelog

Write changelog messages for end users, not developers. Users read these in the WordPress plugin update screen. Avoid internal jargon (OOM, batching, N+1), class names, or method names. Describe what the user experiences or what changed from their perspective.

✅ Fix automatic cleanup of old activities failing silently on sites with many items.
✅ Add a Site Health check that warns when plugins are causing too many federation updates.
❌ Fix collection purge methods to batch deletions and enforce a hard item cap.
❌ Add Site Health test to detect excessive outbox activity rates.

End all changelog messages with punctuation.

Add manually if forgotten:

composer changelog:add
git add . && git commit -m "Add changelog entry" && git push

See release for complete changelog details.

Workflow

Create Branch

git checkout trunk && git pull origin trunk
git checkout -b fix/notification-issue

Pre-Push Checks

composer lint         # PHP standards (composer lint:fix to auto-fix)
npm run lint:js       # If JS changed
npm run lint:css      # If CSS changed
npm run env-test      # Run tests
npm run build         # If assets changed

See AGENTS.md for complete commands.

Keep Branch Updated

git fetch origin
git rebase origin/trunk
# Resolve conflicts if any
git push --force-with-lease

Special Cases

Hotfixes: Branch fix/critical-issue, minimal changes, add a [Pri] High (or [Pri] BLOCKER) label, request expedited review.

Experimental: Use try/ prefix, mark as draft, get early feedback, convert to proper branch type once confirmed.

Multi-PR features: Create tracking issue, link all PRs, use consistent naming (add/feature-part-1, etc.), merge in order.

Labels

LabelUse
BugBug fixes
EnhancementNew features
DocsDocumentation updates
Code QualityRefactoring, cleanup, etc.
Skip ChangelogNo changelog needed
[Status] Needs reviewReady for review
[Status] In ProgressStill working
[Pri] High / [Pri] BLOCKERUrgent / expedited

Reference

See docs/pull-request.md for complete workflow details.

Skills เพิ่มเติมจาก automattic

testing-js
automattic
แนวทางสำหรับการตรวจสอบไฟล์ JavaScript เพื่อหาข้อผิดพลาดทางไวยากรณ์
setup
automattic
ตรวจสอบว่า dn CLI ได้ถูกติดตั้งและกำหนดค่าแล้ว ใช้เมื่อผู้ใช้ติดตั้งปลั๊กอิน domain-names เป็นครั้งแรก หรือเมื่อคำสั่ง dn ล้มเหลวเนื่องจาก CLI ยัง...
studio-cli
automattic
ใช้ Studio CLI เพื่อจัดการไซต์ WordPress ในพื้นที่ การยืนยันตัวตน และไซต์ตัวอย่าง เรียกใช้สกิลนี้เมื่อคุณต้องการรันคำสั่ง Studio CLI จัดการ…
dn-info
automattic
รับข้อมูลรายละเอียดของโดเมนที่ลงทะเบียนโดยใช้ dn CLI ใช้เมื่อผู้ใช้ต้องการดูรายละเอียดโดเมน เช่น วันหมดอายุ เนมเซิร์ฟเวอร์ ผู้ติดต่อ…
qa
automattic
เปรียบเทียบเนื้อหา WXR ที่แยกออกมากับหน้าเว็บไซต์ต้นฉบับทีละหน้า ค้นหาข้อความ หัวข้อ รูปภาพ และลิงก์ที่หายไป แก้ไขโดยการแพตช์ WXR หรือ…
add-skill
automattic
เพิ่มทักษะใหม่ให้กับปลั๊กอิน a8c-design ใช้เมื่อคุณได้สร้างทักษะ Claude Code และต้องการนำไปร่วมในปลั๊กอิน Automattic a8c-design ที่ใช้ร่วมกัน —…
design-foundations
automattic
สร้าง design-foundation JSON ที่สอดคล้องกันจากไซต์ที่ถูกปลดปล่อย — บทบาทสี/ตัวอักษร/ระยะห่างเชิงความหมายพร้อมหลักฐานประกอบ ใช้โครงร่างบางส่วน…
wp-phpstan
automattic
ใช้เมื่อกำหนดค่า เรียกใช้ หรือแก้ไขการวิเคราะห์แบบสแตติกของ PHPStan ในโปรเจกต์ WordPress (ปลั๊กอิน/ธีม/ไซต์): การตั้งค่า phpstan.neon, เบสไลน์,…