Skip to content

feat: GitLab & Bitbucket support in scan.sh #7

Description

@Hrithik-Gavankar

Summary

Extend the git scanner to work with GitLab and Bitbucket repositories, including support for their specific branch naming conventions, MR/PR metadata, and CI integration.

Current State

  • scan.sh is git-native (works with any git repo locally)
  • However, some features assume GitHub conventions (e.g., main/master as default branch)
  • No integration with GitLab MRs or Bitbucket PRs for richer metadata

Proposed Enhancements

  • Auto-detect default branch name (not just main/master)
  • GitLab MR metadata via glab CLI (if available)
  • Bitbucket PR metadata via Bitbucket CLI (if available)
  • Support for GitLab CI pipeline status
  • Support for Bitbucket Pipelines status
  • Forge-agnostic PR/MR count in velocity metrics
  • Remote URL parsing to identify forge type

Acceptance Criteria

  • Scanner works identically for GitHub, GitLab, and Bitbucket repos
  • Default branch auto-detected per repo (not hardcoded)
  • Optional enrichment when forge CLIs are available
  • No breaking changes to existing GitHub workflow

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature update or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions