File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ const updatePrs = async ({ github, context }) => {
10
10
per_page : 100
11
11
} ) ;
12
12
13
- const nonDraftPulls = pulls ?. data ?. filter ( ( pr ) => ! pr . draft && pr . user . login !== "dependabot[bot]" ) ;
13
+ const nonDraftAndDependabotPulls = pulls ?. data ?. filter ( ( pr ) => ! pr . draft && pr . user . login !== "dependabot[bot]" ) ;
14
14
let updatedBranches = 0 ;
15
15
16
- if ( nonDraftPulls ?. length > 0 ) {
17
- for ( const pr of nonDraftPulls ) {
16
+ if ( nonDraftAndDependabotPulls ?. length > 0 ) {
17
+ for ( const pr of nonDraftAndDependabotPulls ) {
18
18
try {
19
19
await github . rest . pulls . updateBranch ( {
20
20
owner,
@@ -28,7 +28,7 @@ const updatePrs = async ({ github, context }) => {
28
28
}
29
29
}
30
30
31
- return `Updated branches: ${ updatedBranches } /${ nonDraftPulls . length } ` ;
31
+ return `Updated branches: ${ updatedBranches } /${ nonDraftAndDependabotPulls . length } ` ;
32
32
} ;
33
33
34
34
export default updatePrs ;
You can’t perform that action at this time.
0 commit comments