Skip to content
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

Add WP version check workflow #170

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

mi5t4n
Copy link
Member

@mi5t4n mi5t4n commented Dec 14, 2023

Description

Whenever a new version of WP is released, we are required to update the Tested up to information in the readme.txt file. This PR adds a workflow which is scheduled to run at midnight on every Monday.

Technical Details

  1. Uses skaut/wordpress-version-checker GitHub action to check for the discrepancy between the latest WP version and the WP version in the readme.txt
  2. The workflow is scheduled to run at midnight on every Monday.
  3. Raises an GitHub issue suggesting we need to update the Tested up to in the readme.txt on the repository.

Improvement

We can add automatically assign the issues raised by the workflow to a developer, by adding the following code in the .wordpress-version-checker.json.

{
    "assignees": ["alice", "bob"]
}

Reference:

https://github.com/10up/simple-local-avatars/blob/develop/.github/workflows/wordpress-version-checker.yml

Fixes/Covers issue

Fixes #172

Pooja Killekar and others added 13 commits October 29, 2021 16:53
Update Readme.md & readme.txt with Tested upto 5.8.1 details
Sync Develop branch with master branch
* Fix: phpcs errors

1. Blank line after function.
2. Ignore WordPress.NamingConventions.ValidHookName.UseUnderscores because of backward compatibility

* Fix: phpcs error for equal sign alignment

* Fix: phpcs errors

1. Spacing and equal line alignement issue.
2. Ignore object param and return type because assuming php greater than 7.1 also requrires php 7.4 as plugin description.
3. Change CamelCase to snake_case variables.

* Fix: phpcs error for file /tests/bootstrap.php for spacing issue

* Fix: phpcs errors

1. Spacing and alignment issue.
2. Naming convention
3. Multiline array comma issue

* Fix issue added by bot for undefined variable

* Exclude hook name validation rule instead ignoring

* Update unit tests workflow

* Add slah before wp_json_encode function

* Revert json encode change
Feat: Add phpcs fixes and Update composer.json and vendor files
@mi5t4n mi5t4n self-assigned this Dec 14, 2023
@mi5t4n mi5t4n linked an issue Dec 14, 2023 that may be closed by this pull request
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.

Add WP version checker.
4 participants