File tree 1 file changed +3
-16
lines changed
1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change 2
2
import dotenv from 'dotenv' ;
3
3
import semver from 'semver' ;
4
4
5
- import { getNbGitDiff } from '../ci/utils' ;
6
5
import {
7
6
LANGUAGES ,
8
7
ROOT_ENV_PATH ,
@@ -196,25 +195,13 @@ async function createReleaseIssue(): Promise<void> {
196
195
) ;
197
196
}
198
197
199
- if (
200
- ( await getNbGitDiff ( {
201
- head : null ,
202
- } ) ) !== 0
203
- ) {
204
- throw new Error (
205
- 'Working directory is not clean. Commit all the changes first.'
206
- ) ;
207
- }
208
-
209
198
await run ( `git rev-parse --verify refs/tags/${ RELEASED_TAG } ` , {
210
199
errorMessage : '`released` tag is missing in this repository.' ,
211
200
} ) ;
212
201
213
202
console . log ( 'Pulling from origin...' ) ;
214
- run ( `git pull` ) ;
215
-
216
- console . log ( 'Pushing to origin...' ) ;
217
- run ( `git push` ) ;
203
+ await run ( 'git fetch origin' ) ;
204
+ await run ( 'git pull' ) ;
218
205
219
206
const commitsWithUnknownLanguageScope : string [ ] = [ ] ;
220
207
const commitsWithoutLanguageScope : string [ ] = [ ] ;
@@ -295,7 +282,7 @@ async function createReleaseIssue(): Promise<void> {
295
282
TEXT . approval ,
296
283
] . join ( '\n\n' ) ;
297
284
298
- const octokit = getOctokit ( process . env . GITHUB_TOKEN ! ) ;
285
+ const octokit = getOctokit ( process . env . GITHUB_TOKEN ) ;
299
286
300
287
octokit . rest . issues
301
288
. create ( {
You can’t perform that action at this time.
0 commit comments