chore(repo): add comments to make sure code stays manually synced with nx console (#27410)

this code is needed in a version-independent way in Nx Console and right
now there's no good place to share it.
So for now we will duplicate it
This commit is contained in:
MaxKless 2024-08-15 17:18:57 +03:00 committed by GitHub
parent 5cd08e2828
commit cf5dd4da08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

@ -172,6 +172,7 @@ rust-toolchain @nrwl/nx-native-reviewers
/CONTRIBUTING.md @FrozenPandaz @isaacplmann
/CODE_OF_CONDUCT.md @FrozenPandaz @isaacplmann
/CODEOWNERS @FrozenPandaz @AgentEnder
/packages/nx/src/nx-cloud/utilities/url-shorten.ts @MaxKless
# Scripts
/scripts/documentation @nrwl/nx-docs-reviewers

View File

@ -2,6 +2,9 @@ import { logger } from '../../devkit-exports';
import { getGithubSlugOrNull } from '../../utils/git-utils';
import { getCloudUrl } from './get-cloud-options';
/**
* This is currently duplicated in Nx Console. Please let @MaxKless know if you make changes here.
*/
export async function createNxCloudOnboardingURL(
onboardingSource: string,
accessToken?: string,

View File

@ -158,6 +158,9 @@ export function fetchGitRemote(
return execSync(`git fetch ${name} ${branch} --depth 1`, execOptions);
}
/**
* This is currently duplicated in Nx Console. Please let @MaxKless know if you make changes here.
*/
export function getGithubSlugOrNull(): string | null {
try {
const gitRemote = execSync('git remote -v', {