Member Junction
    Preparing search index...
    • Normalizes GitHub CLI (gh) and git environment variables when a GitHub token is present in the resolved sandbox environment:

      • Mirrors GH_TOKEN <-> GITHUB_TOKEN so both gh CLI and git/API tools authenticate seamlessly.
      • Sets GH_PROMPT_DISABLED=1 and GIT_TERMINAL_PROMPT=0 to prevent headless container hangs.
      • When userAttribution.IsUserDelegated is true (3LO), sets GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL to the human user while keeping GIT_COMMITTER_NAME / GIT_COMMITTER_EMAIL as the MJ Agent (so GitHub renders "User authored and Agent committed").

      Parameters

      • environment: Record<string, string>
      • OptionalagentName: string
      • OptionaluserAttribution: GitHubUserAttribution

      Returns Record<string, string>