feat:Add open, closed, and total MR count to user profile
What does this MR do?
This merge request adds functionality to display the count of open merge requests (MRs) for a given GitLab user inside the compliance checker dashboard.
Motivation / Use Case
Previously, the application did not provide visibility into how many merge requests a user currently has open. This feature improves developer activity monitoring and helps track collaboration and code review participation.
It allows mentors, team leads, and reviewers to quickly understand:
- How actively a user is contributing via merge requests.
- The current workload and review status.
Implementation Notes
- Added a new method in
gitlab_utils/client.pyto fetch open merge requests count using GitLab API. - Updated
app.pyto display the open MR count in the user dashboard. - Ensured error handling for API failures and missing user data.
- No breaking changes introduced.
- Fully backward compatible with existing features.
How to Test
-
Pull this branch:
git checkout feature/open-mrs-count -
Install dependencies:
pip install -r requirements.txt -
Run the application:
streamlit run app.py -
Enter a valid GitLab username.
-
Verify that Open Merge Requests Count is displayed correctly.
Checklist
-
Feature is documented (in README or relevant doc files) -
Code is clean, readable, and follows the project style -
No breaking changes (or documented if there are) -
Tests are added or updated -
Feature works as intended in local testing