File tree 4 files changed +10
-9
lines changed 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 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' ;
5
2
6
3
export default {
7
4
notification : {
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { hashElement } from 'folder-hash';
6
6
import { remove } from 'fs-extra' ;
7
7
8
8
import clientsConfig from '../config/clients.config.json' ;
9
+ import config from '../config/release.config.json' ;
9
10
import openapitools from '../openapitools.json' ;
10
11
11
12
import { createSpinner } from './oraLog' ;
@@ -16,6 +17,12 @@ import type {
16
17
RunOptions ,
17
18
} from './types' ;
18
19
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
+
19
26
export const CI = Boolean ( process . env . CI ) ;
20
27
export const DOCKER = Boolean ( process . env . DOCKER ) ;
21
28
Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ import config from '../../config/release.config.json';
7
7
import { getGitHubUrl , run } from '../common' ;
8
8
9
9
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 ;
13
10
export const TEAM_SLUG = config . teamSlug ;
14
11
export const MAIN_PACKAGE = Object . keys ( clientsConfig ) . reduce (
15
12
( mainPackage : { [ lang : string ] : string } , lang : string ) => {
Original file line number Diff line number Diff line change @@ -15,14 +15,14 @@ import {
15
15
exists ,
16
16
getGitHubUrl ,
17
17
gitCommit ,
18
+ OWNER ,
19
+ REPO ,
18
20
emptyDirExceptForDotGit ,
19
21
} from '../common' ;
20
22
import { getLanguageFolder } from '../config' ;
21
23
22
24
import {
23
25
RELEASED_TAG ,
24
- OWNER ,
25
- REPO ,
26
26
TEAM_SLUG ,
27
27
getMarkdownSection ,
28
28
configureGitHubAuthor ,
You can’t perform that action at this time.
0 commit comments