Add flagged state to the current pywikibot basepage to get information about the flagging status of the given page.
Implementation
- create flagged_revision() method in pywikibot.basepage to return flagged state of a page
- use FlaggedRevs extension to get pages that has flagged revisions and return flagged state with flagged_state() method
Code Review Requirements:
For the patch to pass Pywikibot code review, please ensure:
Follow Gerrit guidelines:
- Manual:Pywikibot/Gerrit - For_developers
- Gerrit: Commit message guidelines
- See also: T407059 (Pywikibot contribution how-to documentation)
Code quality:
- Patch must follow the Pywikibot style guide
- No flake8 errors or warnings
- Commit message must follow style guidelines
Testing:
- Added error handling must include unit tests
- Tests should verify proper error detection and messaging for OAuth/BotPassword scenarios