From 0b8a9ccc858bb5e9a758efe3b70e548c0cf29033 Mon Sep 17 00:00:00 2001 From: marcusquinn <6428977+marcusquinn@users.noreply.github.com> Date: Mon, 7 Apr 2025 20:13:14 +0100 Subject: [PATCH] Add contribution guidelines and release process to README.md and readme.txt --- README.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ readme.txt | 31 +++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) diff --git a/README.md b/README.md index 03fc51d..63c51c6 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,58 @@ This method requires command-line access to your server and familiarity with Git
Solution: Use the pre-packaged release from the Releases page which includes all required files.
+## 🚀 Contributing + +We welcome contributions to WP Multisite WaaS! Here's how you can contribute effectively: + +### Development Workflow + +1. Fork the repository +2. Create your feature branch (`git checkout -b feature/amazing-feature`) +3. Run `npm install` and `composer install` to set up dependencies +4. Make your changes +5. Before committing, run `npm run build` to: + - Generate translation POT files + - Minify CSS and JS assets + - Process and optimize other assets +6. Commit your changes (`git commit -m 'Add some amazing feature'`) +7. Push to the branch (`git push origin feature/amazing-feature`) +8. Open a Pull Request + +### Pull Request Guidelines + +When submitting pull requests, please: + +1. Include a clear description of the changes and their purpose +2. Reference any related issues using GitHub's issue linking syntax (#123) +3. Ensure your code follows the existing style and conventions +4. Include screenshots or GIFs for UI changes if applicable +5. Make sure all tests pass (if available) +6. Update documentation as needed + +### Release Process + +Releases are automated using GitHub Actions workflows that trigger when a version tag is pushed. + +**Tagging Convention:** To trigger a new release build, push a tag following the semantic versioning format: + +```bash +git tag v2.3.5 # For example, for version 2.3.5 +git push origin v2.3.5 +``` + +The tag must begin with "v" followed by the version number (v*.*.*) + +This will automatically: +1. Build the plugin (run `npm run build`) +2. Create a properly packaged ZIP file +3. Create a GitHub release with the ZIP attached + +When preparing for a release: +1. Update the version number in the main plugin file and readme.txt +2. Update the changelog in readme.txt +3. Create and push the appropriate version tag + ## 🆘 Support For support, please open an issue on the [GitHub repository](https://github.com/superdav42/wp-multisite-waas/issues). diff --git a/readme.txt b/readme.txt index 903107f..6bf42d3 100644 --- a/readme.txt +++ b/readme.txt @@ -33,6 +33,37 @@ This plugin was formerly known as WP Ultimo and is now community maintained. * [GitHub Repository](https://github.com/superdav42/wp-multisite-waas) * [Issue Tracker](https://github.com/superdav42/wp-multisite-waas/issues) += Contributing = + +We welcome contributions to WP Multisite WaaS! To contribute effectively: + +**Development Workflow:** + +1. Fork the repository on GitHub +2. Create a feature branch from main +3. Run `npm install` and `composer install` to set up dependencies +4. Make your changes +5. Before committing, run `npm run build` to: + * Generate translation POT files + * Minify CSS and JS assets + * Process and optimize other assets +6. Open a Pull Request with your changes + +**Pull Request Guidelines:** + +Please include a clear description of your changes and their purpose, reference any related issues, and ensure your code follows existing style conventions. + +**Release Process:** + +Releases are automated using GitHub Actions workflows that trigger when a version tag is pushed. + +To trigger a new release build, push a tag following the semantic versioning format: +`git tag v2.3.5` (for version 2.3.5) and then `git push origin v2.3.5` + +The tag must begin with "v" followed by the version number (v*.*.*). + +For more detailed contribution guidelines, see the [GitHub repository](https://github.com/superdav42/wp-multisite-waas). + == Installation == There are two recommended ways to install WP Multisite WaaS: