Skip to content

[Feature Request] Update readme.txt while deploying #112

Open

Description

@toolstack

Is your enhancement related to a problem? Please describe.
Currently the deployment script pushing the readme.txt file to wordpress.org as is, without doing any sanity checking/updating on the "Stable tag" or "Tested up to" fields.

This can cause issues if you forget to update these items before depoloyment, requiring a second deployment or manual updates on both GIT and SVN repos.

Describe the solution you'd like
The release script should automatically check these values and update them if required. Comminitting and pushing them back to GIT before deployment to the wordpress.org SVN.

Designs
Have PR... will submit it shortly 😁

It is in early stages and probably needs more options, like being able to disable the behaviour if it isn't wanted, but it gets the job done at the moment.

Describe alternatives you've considered
Keep doing it manually and hope my memory improves.

Additional context
None at this time.

Activity

  1. added this to the Future Release milestone on Jan 9, 2023
  2. moved this from Incoming to In Progress in Open Source Practiceon Jan 9, 2023
  3. jeffpaul commented on Jan 9, 2023

    @jeffpaul
    Member

    @toolstack is the use case here where you attempt to do a deploy to WP.org and the "stable tag"/version from GH matches what's already the latest noted on WP.org? If so, I would expect that we might have the action fail rather than pick the next version number (as who's to say how it should increment in that case).

    I also do not feel that we should automatically be bumping the "tested up to" if that doesn't match the latest major WP version number as some folks may not have tested that their latest plugin version in fact works with the latest WP major version.

  4. added
    needs:feedback
    on Jan 9, 2023
  5. toolstack commented on Jan 9, 2023

    @toolstack
    Author

    @jeffpaul Use case is when deploying a new version of a plugin and you've forgotten to update the "stable tag" version in the readme file. This will cause the newly deployed version to not be used, but instead the old version still being zipped by wordpress.org for download. This is because wordpress.org uses the readme.txt's "stable tag" from trunk to determine which tag to actaully build from. If the readme has already been updated, no change will be made.

    I was on the fence about disabling the "tested up to" check by default, it could go either way. Personally I think if you're deploying a new version of your plugin, you'd better have tested it on the latest releae of WordPress 🤷.

  6. removed
    needs:feedback
    on Jan 9, 2023
  7. added
    type:enhancement
    on Apr 10, 2023
  8. aaronware commented on Aug 19, 2023

    @aaronware

    @toolstack you may want to take a look at release-please https://github.com/google-github-actions/release-please-action it's an action that does bumping of version numbers in any file you define

  9. modified the milestones: Future Release, 2.3.0 on Jan 2, 2024
  10. moved this from In Progress to In Review in Open Source Practiceon Jan 2, 2024
  11. removed this from the 2.3.0 milestone on Feb 5, 2024
  12. moved this from In Review to Done/Released in Open Source Practiceon Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type:enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions