Skip to content

Commit

Permalink
feat: remove PR on test success
Browse files Browse the repository at this point in the history
change updatePRStatus to closePR
  • Loading branch information
ghinks committed Apr 12, 2021
1 parent 18004c5 commit ac689bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.createPR = async function createPR (dependentOwner, dependentRepo, parentBranchName, parentDependencyLink) {
const createPR = module.exports.closePR = async function closePR (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.createPR(dependentOwner, dependentRepo, parentBranchName)
wiby.test.closePR(dependentOwner, dependentRepo, parentBranchName)
.then((result) => {
t.equal(result.data.html_url, htmlURL)
t.end()
Expand Down

0 comments on commit ac689bb

Please sign in to comment.