Skip to content

Commit 2a200b3

Browse files
authored
Use a Github action to extract the provided WordPress Hooks (#1989)
1 parent 4d14174 commit 2a200b3

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

.distignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.distignore
44
.DS_Store
55
.editorconfig
6+
.extract-wp-hooks.json
67
.git
78
.github
89
.gitignore

.extract-wp-hooks.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"namespace": "Activitypub",
3+
"wiki_directory": "../activitypub.wiki",
4+
"github_blob_url": "https://github.com/Automattic/wordpress-activitypub/blob/trunk/",
5+
"ignore_filter": [
6+
"comment_text",
7+
"get_avatar_comment_types",
8+
"get_avatar_url",
9+
"http_headers_useragent",
10+
"import_start",
11+
"import_end",
12+
"oembed_result",
13+
"opengraph_metadata",
14+
"rest_oembed_ttl",
15+
"the_content",
16+
"the_excerpt",
17+
"webfinger_data",
18+
"wp_import_existing_post",
19+
"wpml_post_language_details"
20+
],
21+
"exclude_dirs": [
22+
"build",
23+
"tests"
24+
]
25+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Extract WordPress Hooks
2+
3+
on:
4+
push:
5+
branches: [trunk]
6+
paths: ["**.php"]
7+
workflow_dispatch:
8+
9+
jobs:
10+
extract-hooks:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write # Required to push to wiki repository
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: akirk/[email protected]

0 commit comments

Comments
 (0)