pr
π―Skillfrom automattic/wordpress-activitypub
Ensures PR compliance by enforcing branch naming conventions, changelog requirements, and automatic reviewer assignment before PR creation.
Installation
npx skills add https://github.com/automattic/wordpress-activitypub --skill prSkill Details
INVOKE THIS SKILL before creating any PR to ensure compliance with branch naming, changelog requirements, and reviewer assignment.
Overview
# ActivityPub PR Workflow
Branch Naming
| Prefix | Use |
|--------|-----|
| 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).
PR Creation
Every PR must:
- Assign
@me - Add
Automattic/fediverseas reviewer - Include changelog entry OR "Skip Changelog" label
- Pass CI checks
- Merge cleanly with trunk
```bash
# 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.
Changelog
End all changelog messages with punctuation:
```
β Add support for custom post types.
β Add support for custom post types
```
Add manually if forgotten:
```bash
composer changelog:add
git add . && git commit -m "Add changelog entry" && git push
```
See [release](../release/SKILL.md) for complete changelog details.
Workflow
Create Branch
```bash
git checkout trunk && git pull origin trunk
git checkout -b fix/notification-issue
```
Pre-Push Checks
```bash
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 [dev](../dev/SKILL.md) for complete commands.
Keep Branch Updated
```bash
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 "Hotfix" 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
| Label | Use |
|-------|-----|
| Bug | Bug fixes |
| Enhancement | New features |
| Documentation | Doc updates |
| Code Quality | Refactoring, cleanup, etc. |
| Skip Changelog | No changelog needed |
| Needs Review | Ready for review |
| In Progress | Still working |
| Hotfix | Urgent fix |
Reference
See [Pull Request Guide](../../../docs/pull-request.md) for complete workflow details.
More from this repository4
Streamlines WordPress ActivityPub plugin development with comprehensive environment, testing, linting, and build workflows using wp-env, npm, and composer.
Enforces PHP coding standards and architectural patterns for the ActivityPub WordPress plugin, ensuring consistent file structure, namespacing, and transformation logic.
Enables seamless WordPress plugin integrations for ActivityPub, supporting post types, transformers, and activity modifications across multiple third-party plugins.
Enables decentralized social networking by implementing ActivityPub protocol for federated communication between actors and servers.