Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(release): update regex for remote URL #23186

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

pcopley
Copy link

@pcopley pcopley commented May 4, 2024

Updates remote URL regex to match on GitHub, GitHub Enterprise, and local git repositories.

Current Behavior

Currently the regular expression will only match URLs beginning with github.com

Expected Behavior

It should also match GitHub Enterprise as well as local git repositories

Related Issue(s)

Fixes #23178
Closes #21906

Updates remote URL regex to match on GitHub, GitHub Enterprise, and local git repositories.

Closes nrwl#23178
Closes nrwl#21906
@pcopley pcopley requested a review from a team as a code owner May 4, 2024 13:14
@pcopley pcopley requested a review from Cammisuli May 4, 2024 13:14
Copy link

vercel bot commented May 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview May 4, 2024 1:16pm

Copy link

nx-cloud bot commented May 4, 2024

@pcopley pcopley marked this pull request as draft May 4, 2024 19:36
@andrewlewis426
Copy link

@JamesHenry We need this in our organization as we use github enterprise. What can we do to move this pr forward?

@JamesHenry
Copy link
Collaborator

@andrewlewis426 You could please apply this change as a patch to your node_modules (eg. via https://www.npmjs.com/package/patch-package or via pnpm patches if you use pnpm) and verify that it is all that is needed for holistic support of github enterprise

@Bare1337
Copy link

Bare1337 commented May 29, 2024

@pcopley @JamesHenry Thanks for the great work put in. Nevertheless, as we experienced some issues trying to use nx release with GES i don't think this PR could close #21906 by itself.

This is a list of the issues we've been through:

We're not using github CLI but there might be some issues with the method resolveGithubToken too, not sure about that.

After patching thoses issues locally, it's working great.
Maybe we could offer an opportunity to set up the hostname and base API url directly from nx.json

@JamesHenry I'am not sure if it should be treated separately but i could open another issue and i'am willing to submit a PR if necessary.

Again, thanks for the great work tho, awesome tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nx release only supports GitHub URLs nx release changelog should support non github.com remotes
4 participants