question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Alternative Detection Method for GitHub Enterprise Version

See original GitHub issue

Support for GitHub Enterprise was recently incorporated into Lerna starting with version 3.11.0.

This feature relies on the developer to set the GHE_VERSION environment variable to be one of the four versions of GitHub Enterprise supported by octokit.

As an alternative, can Lerna query, and then extract, the version number from the X-GitHub-Enterprise-Version header returned by any request to the GitHub API?

Current Behavior

Current behavior relies on the user of Lerna to set the version number in an environment variable.

Relying on a hard-coded environment variable may burden developers with the responsibility to be vigilant of any upgrades to their company’s GitHub Enterprise deployment, and to update the appropriate environment variable in all environments that execute Lerna.

Possible Solution

Extract the version number of the GitHub Enterprise API from a header value returned in response to any request to a GitHub Enterprise API endpoint.

cc @milesj for your thoughts on this idea.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
evocateurcommented, Feb 14, 2019

Seems straightforward to me. PRs gladly accepted.

0reactions
stale[bot]commented, Apr 15, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Import your project from GitHub to GitLab - GitLab Docs
To import projects from GitHub Enterprise to GitLab.com, use the Import API ... An alternative approach for importing comments is available.
Read more >
Top 10 GitHub Alternatives & Competitors - G2
Find the top-ranking alternatives to GitHub based on 27050 verified user reviews. Read reviews and product information about GitLab, Jenkins and CircleCI.
Read more >
Top GitHub Enterprise Competitors & Alternatives 2022 - Gartner
Top alternatives ranked by recent software buyers · Veracode · Veracode · Checkmarx SAST · Checkmarx · InsightAppSec · Rapid7 · Burp Suite...
Read more >
GitGuardian Internal Monitoring vs GitHub Advanced Security
Understand how GitGuardian compares with GitHub Advanced Security ✔️ Other alternatives for git secrets scanning ✔️ Finding API keys and other ...
Read more >
GitHub vs. GitLab: What's the Difference | Clockwise
One popular alternative to GitHub and GitLab is Bitbucket by Atlassian. The bottom line. GitHub and GitLab are source code management platforms for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found