https://github.com/professionalwiki/rules
Automatically categorize MediaWiki pages
https://github.com/professionalwiki/rules
automation mediawiki mediawiki-extension quality-control
Last synced: 8 months ago
JSON representation
Automatically categorize MediaWiki pages
- Host: GitHub
- URL: https://github.com/professionalwiki/rules
- Owner: ProfessionalWiki
- License: gpl-2.0
- Created: 2025-07-07T15:45:43.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-08-04T22:29:25.000Z (10 months ago)
- Last Synced: 2025-08-05T00:40:59.434Z (10 months ago)
- Topics: automation, mediawiki, mediawiki-extension, quality-control
- Language: JavaScript
- Homepage: https://professional.wiki/en/extension/rules
- Size: 199 KB
- Stars: 1
- Watchers: 3
- Forks: 4
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rules
[](https://github.com/ProfessionalWiki/Rules/actions?query=workflow%3ACI)
[](https://codecov.io/gh/ProfessionalWiki/Rules)
[](https://packagist.org/packages/professional-wiki/rules)
[](https://packagist.org/packages/professional-wiki/rules)
[](LICENSE)
Automate MediaWiki page categorization based on rules defined via a user-friendly configuration interface.
- [Introduction to the extension](https://professional.wiki/en/extension/rules)
- [Usage documentation](https://professional.wiki/en/extension/rules#Usage)
- [Installation](https://professional.wiki/en/extension/rules#Installation)
- [Configuration](https://professional.wiki/en/extension/rules#Configuration)
- [Development](#development)
- [Release notes](#release-notes)
Get professional support for this extension via [Professional Wiki], its creators and maintainers.
We provide [MediaWiki Development], [MediaWiki Hosting], and [MediaWiki Consulting] services.
[](https://professional.wiki/en/extension/rules)
## Development
Run `composer install` in `extensions/Rules/` to make the code quality tools available.
### Running Tests and CI Checks
You can use the `Makefile` by running make commands in the `Rules` directory.
Commands to run in a MediaWiki environment/container:
* `make` or `make ci`: Run everything
* `make test`: Run all PHP tests
* `make phpunit --filter FooBar`: run only PHPUnit tests with FooBar in their name
* `make cs`: Run PHP style checks and static analysis
* `make phpcs`: Run PHP style checks
* `make stan`: Run PHP static analysis
* `make stan-baseline`: Update the PHPStan baseline file (which contains errors we wish to ignore)
Commands that use Docker:
* `make lint` Lint JS, CSS, and i18n files
* `make js` Run all JS checks
## Release Notes
### Version 1.0.0
Released on 2025-08-28
* Initial version with support for MediaWiki 1.43 and 1.44
* Automatic categorization based on existing categories
* Configuration UI for rules at `MediaWiki:Rules`
[Professional Wiki]: https://professional.wiki
[MediaWiki Hosting]: https://pro.wiki
[MediaWiki Development]: https://professional.wiki/en/mediawiki-development
[MediaWiki Consulting]: https://professional.wiki/en/mediawiki-consulting-services