Commit ef015c4
committed
[feature] Add comprehensive tests and docs for CI failure bot #524
- Add complete test suite with comprehensive coverage for all bot functions
- Consolidate documentation into reusable-github-utils.rst as requested by maintainer
- Move CI failure bot code from .github/scripts to openwisp_utils package
- Add github_actions extra dependency group in setup.py for proper installation
- Fix test imports to use correct openwisp_utils.ci_failure_bot module path
- Remove noqa comments from Gemini prompt to avoid sending linting artifacts to AI
- Implement dynamic branch detection using repo.default_branch instead of hardcoded master
- Add null check for deleted fork repositories to prevent AttributeError
- Make Gemini API key optional with graceful fallback to static responses
- Simplify workflow error handling and clean up formatting
- Address all CodeRabbit feedback on exception handling and code quality
- Follow OpenWISP documentation patterns with proper structure
Addresses all maintainer comments and CodeRabbit suggestions for production readiness.
Closes #5241 parent c64a94a commit ef015c4
File tree
10 files changed
+555
-742
lines changed- .github
- scripts
- workflows
- docs
- developer
- user
- openwisp_utils
- tests
10 files changed
+555
-742
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments