Skip to content

Commit f1aec3f

Browse files
committed
move vars around
1 parent a72f8e2 commit f1aec3f

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

scripts/ci/codegen/text.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import { MAIN_BRANCH, OWNER, REPO } from '../../release/common';
2-
3-
export const REPO_URL = `https://github.com/${OWNER}/${REPO}`;
4-
export const GENERATED_MAIN_BRANCH = `generated/${MAIN_BRANCH}`;
1+
import { REPO_URL, GENERATED_MAIN_BRANCH } from '../../common';
52

63
export default {
74
notification: {

scripts/common.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { hashElement } from 'folder-hash';
66
import { remove } from 'fs-extra';
77

88
import clientsConfig from '../config/clients.config.json';
9+
import config from '../config/release.config.json';
910
import openapitools from '../openapitools.json';
1011

1112
import { createSpinner } from './oraLog';
@@ -16,6 +17,12 @@ import type {
1617
RunOptions,
1718
} from './types';
1819

20+
export const MAIN_BRANCH = config.mainBranch;
21+
export const GENERATED_MAIN_BRANCH = `generated/${MAIN_BRANCH}`;
22+
export const OWNER = config.owner;
23+
export const REPO = config.repo;
24+
export const REPO_URL = `https://github.com/${OWNER}/${REPO}`;
25+
1926
export const CI = Boolean(process.env.CI);
2027
export const DOCKER = Boolean(process.env.DOCKER);
2128

scripts/release/common.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ import config from '../../config/release.config.json';
77
import { getGitHubUrl, run } from '../common';
88

99
export const RELEASED_TAG = config.releasedTag;
10-
export const MAIN_BRANCH = config.mainBranch;
11-
export const OWNER = config.owner;
12-
export const REPO = config.repo;
1310
export const TEAM_SLUG = config.teamSlug;
1411
export const MAIN_PACKAGE = Object.keys(clientsConfig).reduce(
1512
(mainPackage: { [lang: string]: string }, lang: string) => {

scripts/release/process-release.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import {
1515
exists,
1616
getGitHubUrl,
1717
gitCommit,
18+
OWNER,
19+
REPO,
1820
emptyDirExceptForDotGit,
1921
} from '../common';
2022
import { getLanguageFolder } from '../config';
2123

2224
import {
2325
RELEASED_TAG,
24-
OWNER,
25-
REPO,
2626
TEAM_SLUG,
2727
getMarkdownSection,
2828
configureGitHubAuthor,

0 commit comments

Comments
 (0)