Skip to content

Commit

Permalink
feat: clean PR
Browse files Browse the repository at this point in the history
updates to names and suggestions from feedback
  • Loading branch information
ghinks committed Apr 18, 2021
1 parent e143667 commit 49d752f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/closePR.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = async ({ dependents }) => {
}

const closeDependencyPR = module.exports.closeDependencyPR = async function closeDependencyPR (owner, repo, branch, checkRuns) {
if (!checkRuns || checkRuns.length === 0) {
if (!checkRuns) {
return
}
const prsToClose = checkRuns.reduce((acc, check) => {
Expand Down
2 changes: 1 addition & 1 deletion lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async function pushPatch (dependentPkgJson, dependentOwner, dependentRepo, paren
debug(`Changes pushed to https://github.com/${dependentOwner}/${dependentRepo}/blob/${branch}/package.json`)
}

const createPR = module.exports.closePR = async function closePR (dependentOwner, dependentRepo, parentBranchName, parentDependencyLink) {
const createPR = module.exports.createPR = async function createPR (dependentOwner, dependentRepo, parentBranchName, parentDependencyLink) {
const title = `Wiby changes to ${parentDependencyLink}`
const body = `Wiby has raised this PR to kick off automated jobs.
You are dependent upon ${parentDependencyLink}
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ tap.test('wiby.test()', async (tap) => {
const dependentOwner = 'pkgjs'
const dependentRepo = 'wiby'
const parentBranchName = 'main'
wiby.test.closePR(dependentOwner, dependentRepo, parentBranchName)
wiby.test.createPR(dependentOwner, dependentRepo, parentBranchName)
.then((result) => {
t.equal(result.data.html_url, htmlURL)
t.end()
Expand Down

0 comments on commit 49d752f

Please sign in to comment.