Skip to content

Commit e26ffbc

Browse files
committed
fix paths
1 parent 916617f commit e26ffbc

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

scripts/ci/codegen/__tests__/codegen.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import { GENERATED_MAIN_BRANCH } from '../../../common';
12
import { cleanGeneratedBranch } from '../cleanGeneratedBranch';
23
import { pushGeneratedCode } from '../pushGeneratedCode';
3-
import commentText, { GENERATED_MAIN_BRANCH } from '../text';
4+
import commentText from '../text';
45
import {
56
getCommentBody,
67
upsertGenerationComment,

scripts/ci/codegen/pushGeneratedCode.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/* eslint-disable no-console */
2-
import { run } from '../../common';
2+
import { run, GENERATED_MAIN_BRANCH } from '../../common';
33
import { configureGitHubAuthor } from '../../release/common';
44
import { getNbGitDiff } from '../utils';
55

6-
import { GENERATED_MAIN_BRANCH } from './text';
7-
86
const PR_NUMBER = parseInt(process.env.PR_NUMBER || '0', 10);
97
const FOLDERS_TO_CHECK = 'yarn.lock openapitools.json clients specs/bundled';
108

scripts/ci/codegen/spreadGeneration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import {
88
LANGUAGES,
99
run,
1010
toAbsolutePath,
11+
GENERATED_MAIN_BRANCH,
12+
REPO_URL,
1113
} from '../../common';
1214
import { getLanguageFolder } from '../../config';
1315
import { cloneRepository, configureGitHubAuthor } from '../../release/common';
1416

15-
import { GENERATED_MAIN_BRANCH, REPO_URL } from './text';
16-
1717
export function decideWhereToSpread(commitMessage: string): string[] {
1818
if (commitMessage.startsWith('chore: release')) {
1919
return [];

scripts/ci/codegen/upsertGenerationComment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable no-console */
2-
import { run } from '../../common';
3-
import { getOctokit, OWNER, REPO } from '../../release/common';
2+
import { run, OWNER, REPO } from '../../common';
3+
import { getOctokit } from '../../release/common';
44

55
import commentText from './text';
66

scripts/release/create-release-issue.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
import dotenv from 'dotenv';
33
import semver from 'semver';
44

5-
import { LANGUAGES, ROOT_ENV_PATH, run, getPackageVersion } from '../common';
6-
import type { Language } from '../types';
7-
85
import {
9-
RELEASED_TAG,
6+
LANGUAGES,
7+
ROOT_ENV_PATH,
8+
run,
9+
getPackageVersion,
1010
MAIN_BRANCH,
1111
OWNER,
1212
REPO,
13-
MAIN_PACKAGE,
14-
getOctokit,
15-
} from './common';
13+
} from '../common';
14+
import type { Language } from '../types';
15+
16+
import { RELEASED_TAG, MAIN_PACKAGE, getOctokit } from './common';
1617
import TEXT from './text';
1718
import type {
1819
Versions,

0 commit comments

Comments
 (0)