build: remove older branch migration helpers (#36888)

* build: remove older branch migration helpers

* chore: fix typo
This commit is contained in:
Shelley Vohr 2023-01-12 18:05:26 +01:00 committed by GitHub
parent 3f764cbbd5
commit c953109f01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 19 deletions

View file

@ -76,8 +76,7 @@ const getAllBranches = async () => {
return branches.split('\n')
.map(branch => branch.trim())
.filter(branch => !!branch)
// TODO(main-migration): Simplify once branch rename is complete.
.filter(branch => branch !== 'origin/HEAD -> origin/master' && branch !== 'origin/HEAD -> origin/main')
.filter(branch => branch !== 'origin/HEAD -> origin/main')
.sort();
} catch (err) {
console.error('Failed to fetch all branches');
@ -86,8 +85,7 @@ const getAllBranches = async () => {
};
const getStabilizationBranches = async () => {
return (await getAllBranches())
.filter(branch => /^origin\/\d+-\d+-x$/.test(branch) || /^origin\/\d+-x-y$/.test(branch));
return (await getAllBranches()).filter(branch => /^origin\/\d+-x-y$/.test(branch));
};
const getPreviousStabilizationBranch = async (current) => {