ci: clear changelog after every release - #716
Conversation
|
Warning Rate limit exceeded@Pratham-Mishra04 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 2 minutes and 2 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
Merge activity
|
## Summary Improve the Mintlify changelog generation script to clear changelog files after processing and handle empty changelog content gracefully. ## Changes - Modified the `append_section` function to check if the changelog content is empty before adding it to the output - Added functionality to clear changelog files after they've been processed, preventing duplicate entries in future runs - Improved error handling by removing the early return when content retrieval fails ## Type of change - [x] Bug fix - [ ] Feature - [ ] Refactor - [ ] Documentation - [x] Chore/CI ## Affected areas - [ ] Core (Go) - [ ] Transports (HTTP) - [ ] Providers/Integrations - [ ] Plugins - [ ] UI (Next.js) - [x] Docs ## How to test Run the changelog generation script and verify: 1. Empty changelog files are handled properly 2. Changelog files are cleared after processing 3. The generated output contains only non-empty sections ```sh # Run the changelog generation script .github/workflows/scripts/push-mintlify-changelog.sh ``` ## Breaking changes - [ ] Yes - [x] No ## Security considerations No security implications as this only affects the documentation build process. ## Checklist - [x] I read `docs/contributing/README.md` and followed the guidelines - [x] I verified the CI pipeline passes locally if applicable

Summary
Improve the Mintlify changelog generation script to clear changelog files after processing and handle empty changelog content gracefully.
Changes
append_sectionfunction to check if the changelog content is empty before adding it to the outputType of change
Affected areas
How to test
Run the changelog generation script and verify:
# Run the changelog generation script .github/workflows/scripts/push-mintlify-changelog.shBreaking changes
Security considerations
No security implications as this only affects the documentation build process.
Checklist
docs/contributing/README.mdand followed the guidelines