Skip to content

Commit 965cc45

Browse files
style: format
1 parent fc5f663 commit 965cc45

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/cleanup-migrate-branches.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Cleanup Migrate Branches
22

33
on:
44
schedule:
5-
- cron: '0 0 * * *'
5+
- cron: "0 0 * * *"
66
workflow_dispatch:
77

88
jobs:
@@ -32,4 +32,4 @@ jobs:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
3434
GITHUB_REPOSITORY: ${{ github.repository }}
35-
run: npm run cleanup-branches
35+
run: npm run cleanup-branches

migrate/cleanup-branches.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,14 @@ async function main() {
8686
console.log("PR branches:", Array.from(prBranchNames));
8787

8888
const migrateBranches = filterMigrateBranches(branches);
89-
console.log("Migrate branches:", migrateBranches.map(b => b.name));
89+
console.log(
90+
"Migrate branches:",
91+
migrateBranches.map((b) => b.name)
92+
);
9093

91-
const toDelete = migrateBranches.filter(b => !prBranchNames.has(b.name));
94+
const toDelete = migrateBranches.filter((b) => !prBranchNames.has(b.name));
9295
console.log(`Found ${toDelete.length} branches to delete:`);
93-
toDelete.forEach(b => console.log(` - ${b.name}`));
96+
toDelete.forEach((b) => console.log(` - ${b.name}`));
9497

9598
if (toDelete.length === 0) {
9699
console.log("No branches to delete.");
@@ -107,4 +110,4 @@ async function main() {
107110
main().catch((err) => {
108111
console.error(err);
109112
process.exit(1);
110-
});
113+
});

0 commit comments

Comments
 (0)