Skip to content

Commit

Permalink
lint: fix linting issues with combine-prs GA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-fs committed Oct 9, 2023
1 parent 5a3caa1 commit 161e480
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/combine-prs.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: 'Combine PRs'
name: "Combine PRs"
# credits: https://github.com/hrvey/combine-prs-workflow
# Controls when the action will run - in this case triggered manually
on:
workflow_dispatch:
inputs:
branchPrefix:
description: 'Branch prefix to find combinable PRs based on'
description: "Branch prefix to find combinable PRs based on"
required: true
default: 'dependabot'
default: "dependabot"
mustBeGreen:
description: 'Only combine PRs that are green (status is success). Set to false if repo does not run checks'
description: "Only combine PRs that are green (status is success). Set to false if repo does not run checks"
type: boolean
required: true
default: true
combineBranchName:
description: 'Name of the branch to combine PRs into'
description: "Name of the branch to combine PRs into"
required: true
default: 'combine-prs-branch'
default: "combine-prs-branch"
ignoreLabel:
description: 'Exclude PRs with this label'
description: "Exclude PRs with this label"
required: true
default: 'nocombine'
default: "nocombine"

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
core.setFailed('Failed to create combined branch - maybe a branch by that name already exists?');
return;
}
let combinedPRs = [];
let mergeFailedPRs = [];
for(const { branch, prString } of branchesAndPRStrings) {
Expand All @@ -134,7 +134,7 @@ jobs:
mergeFailedPRs.push(prString);
}
}
console.log('Creating combined PR');
const combinedPRsString = combinedPRs.join('\n');
let body = '✅ This PR was created by the Combine PRs action by combining the following PRs:\n' + combinedPRsString;
Expand Down

0 comments on commit 161e480

Please sign in to comment.