Skip to content

feat(upsert-post): add post_author parameter for create path#1168

Merged
chubes4 merged 1 commit intomainfrom
feat-upsert-post-author
Apr 23, 2026
Merged

feat(upsert-post): add post_author parameter for create path#1168
chubes4 merged 1 commit intomainfrom
feat-upsert-post-author

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented Apr 23, 2026

Summary

Adds post_author support to the datamachine/upsert-post ability.

Why

The events extension (data-machine-events) delegates event creation to datamachine/upsert-post but needs to preserve the submitter attribution for user-submitted events. Without post_author, the extension would have to do a second wp_update_post call after every create, defeating the purpose of delegating to the generic primitive.

Changes

  • Input schema: added post_author (integer, optional)
  • Chat tool params: added post_author
  • Execute: reads post_author, applies only on create path (ignored on update, matching wp_insert_post semantics)

Consumer

@homeboy-ci
Copy link
Copy Markdown
Contributor

homeboy-ci Bot commented Apr 23, 2026

Homeboy Results — data-machine

Audit

⚡ Scope: changed files only

audit (changed files only)

  • Alignment score: 0.803
  • Outliers in current run: 45
  • Drift increased: no
  • Severity counts: unknown: 45, warning: 2
  • Top actionable findings:
    1. inc/Abilities/Content/UpsertPostAbility.php — unused_parameter — Unused parameter 'tool_def' in function 'handleChatToolCall' (no callers found)
    2. inc/Abilities/Content/UpsertPostAbility.php — missing_test_file — No test file found (expected 'tests/Unit/Abilities/Content/UpsertPostAbilityTest.php')
    3. inc/Abilities/PermissionHelper.php — outlier — (outlier)
    4. inc/Abilities/AbilityCategories.php — outlier — (outlier)
    5. inc/Abilities/Analytics/PageSpeedAbilities.php — outlier — (outlier)
    6. inc/Api/Tools.php — outlier — (outlier)
    7. inc/Api/Execute.php — outlier — (outlier)
    8. inc/Api/Providers.php — outlier — (outlier)
    9. inc/Api/StepTypes.php — outlier — (outlier)
    10. inc/Api/Handlers.php — outlier — (outlier)
Audit findings (10 shown)
1. **inc/Abilities/Content/UpsertPostAbility.php** — unused_parameter — Unused parameter 'tool_def' in function 'handleChatToolCall' (no callers found)
2. **inc/Abilities/Content/UpsertPostAbility.php** — missing_test_file — No test file found (expected 'tests/Unit/Abilities/Content/UpsertPostAbilityTest.php')
3. **inc/Abilities/PermissionHelper.php** — outlier — (outlier)
4. **inc/Abilities/AbilityCategories.php** — outlier — (outlier)
5. **inc/Abilities/Analytics/PageSpeedAbilities.php** — outlier — (outlier)
6. **inc/Api/Tools.php** — outlier — (outlier)
7. **inc/Api/Execute.php** — outlier — (outlier)
8. **inc/Api/Providers.php** — outlier — (outlier)
9. **inc/Api/StepTypes.php** — outlier — (outlier)
10. **inc/Api/Handlers.php** — outlier — (outlier)
Tooling versions
  • Homeboy CLI: homeboy 0.89.1+114208cc
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: unknown
  • Action: Extra-Chill/homeboy-action@v2

Homeboy Action v1

@chubes4 chubes4 merged commit 95bb023 into main Apr 23, 2026
1 check passed
@chubes4 chubes4 deleted the feat-upsert-post-author branch April 23, 2026 04:46
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.

1 participant