Skip to content

Commit a8da54a

Browse files
committed
fixup! feat: suggest to fetch staging branch before preparing
remove duplicated code from Session
1 parent 9f4d624 commit a8da54a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/prepare_release.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { promises as fs } from 'node:fs';
44
import semver from 'semver';
55
import { replaceInFile } from 'replace-in-file';
66

7-
import { getMergedConfig } from './config.js';
87
import { runAsync, runSync } from './run.js';
98
import { writeJson, readJson } from './file.js';
109
import Request from './request.js';
@@ -28,19 +27,8 @@ export default class ReleasePreparation extends Session {
2827
this.runBranchDiff = !argv.skipBranchDiff;
2928
this.ltsCodename = '';
3029
this.date = '';
31-
this.config = getMergedConfig(this.dir);
3230
this.filterLabels = argv.filterLabel && argv.filterLabel.split(',');
3331
this.newVersion = argv.newVersion;
34-
35-
const { upstream, owner, repo } = this;
36-
37-
const upstreamHref = runSync('git', [
38-
'config', '--get',
39-
`remote.${upstream}.url`]).trim();
40-
if (!new RegExp(`${owner}/${repo}(?:.git)?$`).test(upstreamHref)) {
41-
cli.warn('Remote repository URL does not point to the expected ' +
42-
`repository ${owner}/${repo}`);
43-
}
4432
}
4533

4634
get branch() {

0 commit comments

Comments
 (0)