Skip to content

Posts: Log post status changes - #67

Merged
JJJ merged 2 commits into
masterfrom
feature/post-status-activities
Oct 6, 2026
Merged

JJJ merged 2 commits into
masterfrom
feature/post-status-activities

Conversation

@JJJ

@JJJ JJJ commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add dedicated draft, pending, and publish post activity actions
  • route actual status changes to those actions while leaving ordinary saves as updates
  • keep first saves as creation activities and prevent discarded auto drafts or unchanged scheduled posts from using misleading actions

Testing

  • composer test
  • composer phpcs
  • vendor/bin/phpstan analyse --no-progress --memory-limit=1G
  • PHP 8.5 syntax lint across the plugin source

Fixes #7.

JJJ added 2 commits October 6, 2026 06:41
Register draft, pending, and publish actions and route actual transitions to their own activity records.

Keep first saves as create and unchanged status saves as update. Narrow auto-draft creation and scheduled transition handling so they do not mask more accurate activities.

Fixes #7.
Move the post-action WordPress stubs into a dedicated helper so the enrolled PHPUnit bootstrap retains its approved hash.

See #7.
@JJJ
JJJ marked this pull request as ready for review October 6, 2026 11:47
Copilot AI balanced review requested due to automatic review settings October 6, 2026 11:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@JJJ
JJJ merged commit e835ab6 into master Oct 6, 2026
12 checks passed
@JJJ
JJJ deleted the feature/post-status-activities branch October 6, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to log the status changes of a post

2 participants