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:
parent
5cd08e2828
commit
cf5dd4da08
@ -172,6 +172,7 @@ rust-toolchain @nrwl/nx-native-reviewers
|
|||||||
/CONTRIBUTING.md @FrozenPandaz @isaacplmann
|
/CONTRIBUTING.md @FrozenPandaz @isaacplmann
|
||||||
/CODE_OF_CONDUCT.md @FrozenPandaz @isaacplmann
|
/CODE_OF_CONDUCT.md @FrozenPandaz @isaacplmann
|
||||||
/CODEOWNERS @FrozenPandaz @AgentEnder
|
/CODEOWNERS @FrozenPandaz @AgentEnder
|
||||||
|
/packages/nx/src/nx-cloud/utilities/url-shorten.ts @MaxKless
|
||||||
|
|
||||||
# Scripts
|
# Scripts
|
||||||
/scripts/documentation @nrwl/nx-docs-reviewers
|
/scripts/documentation @nrwl/nx-docs-reviewers
|
||||||
|
|||||||
@ -2,6 +2,9 @@ import { logger } from '../../devkit-exports';
|
|||||||
import { getGithubSlugOrNull } from '../../utils/git-utils';
|
import { getGithubSlugOrNull } from '../../utils/git-utils';
|
||||||
import { getCloudUrl } from './get-cloud-options';
|
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(
|
export async function createNxCloudOnboardingURL(
|
||||||
onboardingSource: string,
|
onboardingSource: string,
|
||||||
accessToken?: string,
|
accessToken?: string,
|
||||||
|
|||||||
@ -158,6 +158,9 @@ export function fetchGitRemote(
|
|||||||
return execSync(`git fetch ${name} ${branch} --depth 1`, execOptions);
|
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 {
|
export function getGithubSlugOrNull(): string | null {
|
||||||
try {
|
try {
|
||||||
const gitRemote = execSync('git remote -v', {
|
const gitRemote = execSync('git remote -v', {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user