Skip to content

repo detection does not work with github enterprise #120

@munkyboy

Description

@munkyboy

steps to reproduce:
Given a repo has a remote origin of https://ghe.mycompany.com/proj/repo

  1. do not specify a value for the env var PAGES_REPO_NWO
  2. do not specify a value for the site config repository
  3. set the env var PAGES_GITHUB_HOSTNAME to https://ghe.mycompany.com

running jekyll serve fails with error:

Liquid Exception: No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configuration, or set up an 'origin' git remote pointing to your github.com repository. in /_layouts/default.html

expected results:
automatic detection of the repo name with owner should support reading from a github enterprise origin. It currently only supports origins of github.com
https://github.com/jekyll/github-metadata/blob/master/lib/jekyll-github-metadata/repository_finder.rb#L68

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions