File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Cleanup Migrate Branches
22
33on :
44 schedule :
5- - cron : ' 0 0 * * *'
5+ - cron : " 0 0 * * *"
66 workflow_dispatch :
77
88jobs :
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
Original file line number Diff line number Diff 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() {
107110main ( ) . catch ( ( err ) => {
108111 console . error ( err ) ;
109112 process . exit ( 1 ) ;
110- } ) ;
113+ } ) ;
You can’t perform that action at this time.
0 commit comments