Skip to content

Use a Github action to extract the provided WordPress Hooks #1989

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 23, 2025

Conversation

akirk
Copy link
Member

@akirk akirk commented Jul 23, 2025

Proposed changes:

@akirk akirk requested review from pfefferle and Copilot July 23, 2025 10:09
@akirk akirk added the Skip Changelog Disables the "Changelog Updated" action for PRs where changelog entries are not necessary. label Jul 23, 2025
Copilot

This comment was marked as outdated.

@akirk akirk force-pushed the extract-wp-hooks-automatically branch from 12edb96 to 152c723 Compare July 23, 2025 10:13
@akirk akirk requested a review from Copilot July 23, 2025 10:14
Copilot

This comment was marked as outdated.

@akirk akirk requested a review from Copilot July 23, 2025 10:21
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements automated documentation generation for WordPress hooks provided by the ActivityPub plugin using a GitHub Action. The automation will extract hooks from PHP files and update the project's GitHub wiki whenever changes are made to PHP files in the trunk branch.

Key changes:

  • Adds automated hook extraction workflow triggered on PHP file changes
  • Configures hook extraction with custom filtering and directory exclusions
  • Excludes configuration file from distribution builds

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/extract-wp-hooks.yml GitHub Action workflow to automatically extract WordPress hooks and update wiki
.extract-wp-hooks.json Configuration file specifying extraction parameters, ignored filters, and excluded directories
.distignore Adds the hook extraction config file to distribution ignore list

Copy link
Member

@pfefferle pfefferle left a comment

Choose a reason for hiding this comment

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

lets give it a try 😍

@pfefferle
Copy link
Member

@akirk feel free to merge if you think it is ready to!

@akirk
Copy link
Member Author

akirk commented Jul 23, 2025

Ok, I'll try! These things are kind of hard to test if they don't show up in Github Actions (yet).

@akirk akirk merged commit 2a200b3 into trunk Jul 23, 2025
11 checks passed
@akirk akirk deleted the extract-wp-hooks-automatically branch July 23, 2025 10:47
@akirk
Copy link
Member Author

akirk commented Jul 23, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Skip Changelog Disables the "Changelog Updated" action for PRs where changelog entries are not necessary.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants