Skip to content

BUG : Fetch Github CI Context has github.com hardcoded that blocks execution on Enterprise Github Instances #594

@tvishwanatharkin

Description

@tvishwanatharkin

get_github_ci_context has github.com hardcoded

We have have been using git-ai on our Enterprise Github instance which works on all aspects except the workflow that handles rewriting the attributions for PR Squash/Rebase and Merge.

Problem Statement

git-ai ci github run command fails when executed in an Enterprise Github Instance. This could probably be arising out of a hardcoding while resolving the authenticated url.

Logs

##[debug]/usr/bin/bash -e /home/runner/_work/_temp/2d195ddb-8d82-4d63-9ca0-e94ab195ffe8.sh
Failed to get GitHub CI context: Git CLI (clone --branch main https://github.ent.example.net/ABC/ai-metrics-poc.git git-ai-ci-clone) failed with exit code 128: Cloning into 'git-ai-ci-clone'...
fatal: could not read Username for 'https://github.ent.example.net/': No such device or address

Impact

AI Attributions are not rewritten when PR goes through a server side Squash/Rebase Merge blocking git-ai's adoption in Enterprise Github instances.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions