Skip to content

Commit 7bd279c

Browse files
committed
Merge branch 'primary' into dotorg-validator
2 parents f46f2c9 + 994acdf commit 7bd279c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+5969
-950
lines changed

.distignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Directories
2+
/.circleci
3+
/.git
4+
/.github
5+
/.wordpress-org
6+
/tests
7+
/node_modules
8+
/bin
9+
10+
# Files
11+
/.DS_Store
12+
/Thumbs.db
13+
/.editorconfig
14+
/.gitattributes
15+
/.gitignore
16+
/CODEOWNERS
17+
/composer.lock
18+
/CONTRIBUTING.md
19+
/gulpfile.mjs
20+
/package-lock.json
21+
/package.json
22+
/phpcs.xml
23+
/README.md
24+
/CODE_OF_CONDUCT.md
25+
/catalog-info.yaml
26+
/tailwind.config.js
27+
/webpack.mix.js
28+
/SECURITY.md
29+
/.distignore
30+
/LICENSE

.eslint.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { defineConfig } from "eslint/config";
2+
3+
export default defineConfig({
4+
root: true,
5+
env: { browser: true, es2020: true },
6+
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended"],
7+
ignorePatterns: ["dist", ".eslintrc.cjs"],
8+
parser: "@typescript-eslint/parser",
9+
plugins: ["react-refresh"],
10+
rules: {
11+
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
12+
"no-unused-vars": "off",
13+
"@typescript-eslint/no-unused-vars": "warn",
14+
"@typescript-eslint/no-explicit-any": "warn"
15+
}
16+
});
17+

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ patches and features.
1212

1313
## Using the issue tracker
1414

15-
The [issue tracker](https://github.com/pantheon-systems/pantheon-content-publisher-for-wordpress/issues) is
15+
The [issue tracker](https://github.com/pantheon-systems/pantheon-content-publisher-wordpress/issues) is
1616
the preferred channel for [bug reports](#bug-reports), [features requests](#feature-requests)
1717
and [submitting pull requests](#pull-requests), but please respect the following
1818
restrictions:
@@ -40,7 +40,7 @@ them:
4040
- `question` - General support/questions issue bucket.
4141

4242
For a complete look at our labels, see
43-
the [project labels page](https://github.com/pantheon-systems/pantheon-content-publisher-for-wordpress/labels).
43+
the [project labels page](https://github.com/pantheon-systems/pantheon-content-publisher-wordpress/labels).
4444

4545
## Bug reports
4646

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ labels: bug
66

77
Before opening:
88

9-
- [Search for duplicate or closed issues](https://github.com/pantheon-systems/pantheon-content-publisher-for-wordpress/issues?utf8=%E2%9C%93&q=is%3Aissue)
9+
- [Search for duplicate or closed issues](https://github.com/pantheon-systems/pantheon-content-publisher-wordpress/issues?utf8=%E2%9C%93&q=is%3Aissue)
1010
- Validate
11-
and [lint](https://github.com/pantheon-systems/pantheon-content-publisher-for-wordpress/blob/master/phpcs.xml) any PHP
11+
and [lint](https://github.com/pantheon-systems/pantheon-content-publisher-wordpress/blob/master/phpcs.xml) any PHP
1212
code to avoid
1313
common problems
1414
- Read
15-
the [contributing guidelines](https://github.com/pantheon-systems/pantheon-content-publisher-for-wordpress/blob/primary/.github/CONTRIBUTING.md)
15+
the [contributing guidelines](https://github.com/pantheon-systems/pantheon-content-publisher-wordpress/blob/primary/.github/CONTRIBUTING.md)
1616

1717
Bug reports must include:
1818

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ labels: feature
66

77
Before opening:
88

9-
- [Search for duplicate or closed issues](https://github.com/pantheon-systems/pantheon-content-publisher-for-wordpress/issues?utf8=%E2%9C%93&q=is%3Aissue)
9+
- [Search for duplicate or closed issues](https://github.com/pantheon-systems/pantheon-content-publisher-wordpress/issues?utf8=%E2%9C%93&q=is%3Aissue)
1010
- Read
11-
the [contributing guidelines](https://github.com/pantheon-systems/pantheon-content-publisher-for-wordpress/blob/master/.github/CONTRIBUTING.md)
11+
the [contributing guidelines](https://github.com/pantheon-systems/pantheon-content-publisher-wordpress/blob/master/.github/CONTRIBUTING.md)
1212

1313
Feature requests must include:
1414

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
- [ ] I've tested the code.
1818
- [ ] My code follows the repository code
19-
style. <!-- Ruleset: https://github.com/pantheon-systems/pantheon-content-publisher-for-wordpress/blob/primary/phpcs.xml/ -->
19+
style. <!-- Ruleset: https://github.com/pantheon-systems/pantheon-content-publisher-wordpress/blob/primary/phpcs.xml/ -->
2020
- [ ] My code follows the accessibility
2121
standards. <!-- Guidelines: https://make.wordpress.org/core/handbook/best-practices/coding-standards/accessibility-coding-standards/ -->
2222
- [ ] My code follows the PHP DocBlock documentation

.github/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ version-resolver:
3131
- 'patch'
3232
default: patch
3333
template: |
34-
## [v$RESOLVED_VERSION(####-##-##)](https://github.com/pantheon-systems/pantheon-content-publisher-for-wordpress/compare/$PREVIOUS_TAG...$RESOLVED_VERSION)
34+
## [v$RESOLVED_VERSION(####-##-##)](https://github.com/pantheon-systems/pantheon-content-publisher-wordpress/compare/$PREVIOUS_TAG...$RESOLVED_VERSION)
3535
3636
$CHANGES
3737

.github/release.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ INCLUDES=(
1010
"app"
1111
"assets"
1212
"dist"
13-
"pantheon-content-publisher-for-wordpress.php"
13+
"pantheon-content-publisher.php"
1414
"vendor"
15+
"composer.json"
1516
)
1617

1718
# Determine repository name from the current directory.
1819
REPO=$(basename "$(pwd)")
19-
ZIP="${REPO}.zip"
20+
# Zip file to match plugin name rather then repo name
21+
PLUGIN_NAME="pantheon-content-publisher"
22+
ZIP="${PLUGIN_NAME}.zip"
2023

2124
echo "Starting build process for $REPO..."
2225

@@ -27,7 +30,7 @@ echo "Installing NPM dependencies..."
2730
npm install
2831

2932
echo "Building production assets..."
30-
npm run prod
33+
npm run build:vite
3134

3235
echo "Creating release artifact: $ZIP..."
3336

@@ -60,4 +63,4 @@ rm -rf "$REPO"
6063
echo "Build complete!"
6164
echo "Artifact created at: $ZIP"
6265

63-
exit 0
66+
exit 0
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build, Tag and Release
2+
on:
3+
push:
4+
branches:
5+
- release
6+
7+
permissions:
8+
pull-requests: write
9+
contents: write
10+
11+
jobs:
12+
tag:
13+
name: Create Tag and Draft Release
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Build, Tag & Release
18+
uses: pantheon-systems/plugin-release-actions/build-tag-release@main
19+
with:
20+
gh_token: ${{ github.token }}
21+
readme_md: README.md
22+
build_node_assets: true
23+
build_composer_assets: true
24+
generate_release_notes: true
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release pantheon-content-publisher plugin to wp.org
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
release:
8+
# Do not run this job for prerelease versions.
9+
if: ${{ ! github.event.release.prerelease }}
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: WordPress Plugin Deploy
14+
uses: 10up/action-wordpress-plugin-deploy@2.3.0
15+
env:
16+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
17+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
18+
SLUG: ${{ vars.SLUG }}

0 commit comments

Comments
 (0)