middlewarehq / middleware

✨ Open-source dev productivity platform for engineering teams ✨
https://middlewarehq.com
Apache License 2.0
388 stars 32 forks source link

feat: filter utilities and refactor API endpoints #409

Closed shivam-bit closed 1 month ago

shivam-bit commented 1 month ago

This pull request introduces the filter utilities and API endpoints to improve code organization and readability. It introduces the useBranchesForPrFilters utility function to get branches and branch mode. The dora_metrics.ts file is updated to use the updated filter utilities. Additionally, the filters-api.ts file is deleted. The changes also include refactoring the API endpoints to use the updated filter utilities.