Skip to content

Feature: Add GitLab Repository Filtering #717

Description

@Mateeb-Haider

Problem

GitLab users cannot filter repositories in their scrum reports. Only GitHub repository filtering is currently supported.

Solution

Add GitLab repository selection feature:

  • Fetch user's GitLab projects via API
  • Allow users to select/deselect projects
  • Include only selected projects in reports

Implementation

API Endpoint:

GET /api/v4/projects?membership=true&per_page=100

Steps:

  1. Add fetchGitLabRepositories() function
  2. Add GitLab token input in UI
  3. Display projects with checkboxes
  4. Filter report data by selected projects

Code Reference:

  • Use GitHub implementation as template
  • Header: PRIVATE-TOKEN instead of Authorization: Bearer
  • Field: web_url instead of html_url

Testing

  • Fetch projects with valid token
  • Select/deselect projects
  • Only selected projects appear in report
  • Handle pagination (100+ projects)
  • Test error scenarios

Resources

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions