Skip to content

Commit 8ce63a9

Browse files
authored
refactor: point prepare-release at main (electron#29394)
1 parent 44491b0 commit 8ce63a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/release/prepare-release.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ async function createRelease (branchToTarget, isBeta) {
112112
name: `electron ${newVersion}`,
113113
body: releaseBody,
114114
prerelease: releaseIsPrelease,
115-
target_commitish: newVersion.indexOf('nightly') !== -1 ? 'master' : branchToTarget
115+
target_commitish: newVersion.indexOf('nightly') !== -1 ? 'main' : branchToTarget
116116
}).catch(err => {
117117
console.log(`${fail} Error creating new release: `, err);
118118
process.exit(1);
@@ -180,7 +180,7 @@ async function promptForVersion (version) {
180180
});
181181
}
182182

183-
// function to determine if there have been commits to master since the last release
183+
// function to determine if there have been commits to main since the last release
184184
async function changesToRelease () {
185185
const lastCommitWasRelease = new RegExp('^Bump v[0-9.]*(-beta[0-9.]*)?(-nightly[0-9.]*)?$', 'g');
186186
const lastCommit = await GitProcess.exec(['log', '-n', '1', '--pretty=format:\'%s\''], ELECTRON_DIR);

0 commit comments

Comments
 (0)