-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Summary
Request to add compatibility for GitHub Enterprise Server instances that use custom domains (e.g., github.<company>.com, github.<company>.xxx) to enable gitingest functionality for organizations using on-premises or private GitHub Enterprise deployments.
Background
GitHub Enterprise Server is a self-hosted version of GitHub that many organizations use for their internal repositories. These instances typically use custom domains like:
github.company.comgithub.acme.corpgit.company.internalgithub.enterprise.org
Currently, gitingest appears to only support repositories hosted on github.com, which limits its usefulness for organizations that host their code on GitHub Enterprise Server instances.
Use Case
As a developer working with GitHub Enterprise Server, I would like to:
- Use gitingest to analyze repositories hosted on our enterprise instance
- Generate prompt-friendly text digests from private enterprise repositories
- Use both the CLI tool and web interface with enterprise repositories
Current Behavior
- ✅ Works:
https://github.com/user/repo - ❌ Doesn't work:
https://github.company.com/user/repo
Proposed Solution
URL Pattern Recognition (simplest case possible)
Enhance gitingest to recognize and handle GitHub Enterprise URLs by:
- Detecting URLs that match the pattern
github.* - Supporting authentication for private enterprise repositories
Example Usage
CLI
# Current (github.com)
gitingest https://github.com/user/repo
# Proposed (enterprise)
gitingest https://github.company.com/user/repo
# or (typically the GitHub Enterprise require always tokens)
gitingest https://github.company.com/user/repo --token $GHE_PAT_ENTERPRISE
Benefits
- Enables gitingest usage for the many organizations using GitHub Enterprise Server
- Maintains compatibility with existing github.com functionality
- Opens up the tool to enterprise developers who need to generate LLM-friendly code context from private repositories
Thank you for considering this feature request! This would greatly enhance gitingest's utility for enterprise users.