Skip to content

Commit 669af97

Browse files
authored
Merge pull request #129 from Emilia-Capital/develop
v1.9.5
2 parents 60ed396 + 704c714 commit 669af97

Some content is hidden

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

50 files changed

+2067
-7236
lines changed

.distignore

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,23 @@
44
/.cache
55
/node_modules
66
/tests
7-
/grunt
87

98
.phpcs.xml.dist
109
.distignore
1110
.gitignore
1211
.removeable-files
13-
Gruntfile.js
1412
package.json
1513
phpmd.xml
1614
phpunit.xml.dist
1715
yarn.lock
16+
.eslintignore
17+
.eslintrc
18+
.gitattributes
19+
package.json
20+
phpmd.xml
21+
phpunit.xml.dist
22+
readme.md
23+
admin/assets/js/.jshintrc
24+
composer.json
25+
composer.lock
26+
Security.md

.gitattributes

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@
1010
.gitattributes export-ignore
1111
.gitignore export-ignore
1212
.phpcs.xml.dist export-ignore
13-
.removable-files export-ignore
14-
Gruntfile.js export-ignore
13+
.removeable-files export-ignore
1514
package.json export-ignore
1615
phpmd.xml export-ignore
1716
phpunit.xml.dist export-ignore
1817
readme.md export-ignore
19-
yarn.lock export-ignore
2018
/.cache export-ignore
2119
/.github export-ignore
22-
/grunt export-ignore
2320
/.wordpress-org export-ignore
2421
/tests export-ignore
22+
admin/assets/js/.jshintrc export-ignore
23+
.distignore export-ignore
24+
composer.json export-ignore
25+
composer.lock export-ignore
26+
Security.md export-ignore
2527

2628
#
2729
# Auto detect text files and perform LF normalization

.github/CODE_OF_CONDUCT.md

Lines changed: 0 additions & 120 deletions
This file was deleted.

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ We use GitHub exclusively for well-documented bugs, feature requests and code co
88
To receive free support for this plugin, go to [the support formus](https://wordpress.org/support/plugin/yoast-comment-hacks/). Thanks for your understanding.
99

1010
## Security issues
11-
Please do not report security issues here. Instead, report them per our [security policy](https://github.com/jdevalk/comment-hacks/security/policy).
11+
Please do not report security issues here. Instead, report them per our [security policy](https://github.com/emilia-capital/comment-hacks/security/policy).
1212

1313
## I have found a bug
1414
Before opening a new issue, please:
@@ -28,7 +28,7 @@ Community made patches, localizations, bug reports and contributions are very we
2828
When contributing please ensure you follow the guidelines below so that we can keep on top of things.
2929

3030
#### Submitting an issue you found
31-
Make sure your problem does not exist as a ticket already by searching through [the existing issues](https://github.com/jdevalk/comment-hacks/issues/). If you cannot find anything which resembles your problem, please [create a new issue](https://github.com/jdevalk/comment-hacks/issues/new).
31+
Make sure your problem does not exist as a ticket already by searching through [the existing issues](https://github.com/emilia-capital/comment-hacks/issues/). If you cannot find anything which resembles your problem, please [create a new issue](https://github.com/emilia-capital/comment-hacks/issues/new).
3232

3333
#### Fixing an issue
3434

.github/workflows/composer-diff.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Composer Diff
2+
on:
3+
pull_request:
4+
paths:
5+
- 'composer.lock'
6+
jobs:
7+
composer-diff:
8+
name: Composer Diff
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout
13+
with:
14+
fetch-depth: 0 # Required to make it possible to compare with PR base branch
15+
16+
- name: Generate composer diff
17+
id: composer_diff # To reference the output in comment
18+
uses: IonBazan/composer-diff-action@v1
19+
20+
- uses: marocchino/sticky-pull-request-comment@v2
21+
# An empty diff result will break this action.
22+
if: ${{ steps.composer_diff.outputs.composer_diff_exit_code != 0 }}
23+
with:
24+
header: composer-diff # Creates a collapsed comment with the report
25+
message: |
26+
<details>
27+
<summary>Composer package changes</summary>
28+
29+
${{ steps.composer_diff.outputs.composer_diff }}
30+
31+
</details>

.github/workflows/js.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

.github/workflows/phpstan.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Run PHPStan
2+
3+
on:
4+
# Run on pushes to select branches and on all pull requests.
5+
push:
6+
branches:
7+
- main
8+
- develop
9+
- 'release/[0-9]+.[0-9]+*'
10+
- 'hotfix/[0-9]+.[0-9]+*'
11+
pull_request:
12+
# Allow manually triggering the workflow.
13+
workflow_dispatch:
14+
15+
jobs:
16+
phpstan:
17+
name: Static Analysis
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: 'latest'
27+
coverage: none
28+
tools: composer, cs2pr
29+
30+
- name: Install PHP dependencies
31+
uses: ramsey/composer-install@v2
32+
with:
33+
composer-options: '--prefer-dist --no-scripts'
34+
35+
- name: PHPStan
36+
run: composer phpstan

.github/workflows/playground.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Playground Comment
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
pull-requests: write
11+
steps:
12+
- uses: mshick/add-pr-comment@v2
13+
with:
14+
message: |
15+
## WordPress Playground
16+
You can easily [test this pull request on the WordPress Playground](https://playground.wordpress.net/#{"landingPage":"/wp-admin/","features":{"networking":true},"steps":[{"step":"defineWpConfigConsts","consts":{"IS_PLAYGROUND_PREVIEW":true}},{"step":"login","username":"admin","password":"password"},{"step":"installPlugin","pluginZipFile":{"resource":"url","url":"https://bypass-cors.altha.workers.dev/${{ github.server_url }}/${{ github.repository }}/archive/${{ github.sha }}.zip"},"options":{"activate":true}}]}), or [download the zip file](${{ github.server_url }}/${{ github.repository }}/archive/${{ github.sha }}.zip).

.github/workflows/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
# Don't run the cronjob in this workflow on forks.
25-
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'Yoast')
25+
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'Emilia-Capital')
2626

2727
steps:
2828
- name: Checkout code

.github/workflows/test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,19 @@ jobs:
2626
matrix:
2727
include:
2828
- php_version: '7.4'
29-
wp_version: '5.9'
29+
wp_version: '6.2'
3030
multisite: false
3131

32-
# WP 5.6 is the earliest version which (sort of) supports PHP 8.0.
3332
- php_version: '8.0'
34-
wp_version: '5.9'
33+
wp_version: '6.2'
3534
multisite: false
3635

37-
# WP 5.9 is the earliest version which (sort of) supports PHP 8.1.
3836
- php_version: '8.1'
3937
wp_version: 'latest'
4038
multisite: true
4139

42-
# WP 6.1 is the earliest version which supports PHP 8.2.
4340
- php_version: '8.2'
44-
wp_version: '6.1'
41+
wp_version: '6.4'
4542
multisite: true
4643

4744
name: "Integration Test: PHP ${{ matrix.php_version }} | WP ${{ matrix.wp_version }}${{ matrix.multisite == true && ' (+ ms)' || '' }}"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "WordPress version checker"
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
- main
7+
schedule:
8+
- cron: '0 0 * * *'
9+
10+
permissions:
11+
issues: write
12+
13+
jobs:
14+
wordpress-version-checker:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: WordPress version checker
18+
uses: skaut/wordpress-version-checker@v2.0.0
19+
with:
20+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)