@@ -147512,17 +147512,18 @@ async function createPR (app, ctx, config, username, branchName) {
147512
147512
const title = context.getIssueTitle(ctx)
147513
147513
const issueNumber = context.getIssueNumber(ctx)
147514
147514
const draft = Config.shouldOpenDraftPR(config)
147515
+ const draftText = draft ? 'draft ' : ''
147515
147516
try {
147516
147517
const commitSha = await getBranchHeadSha(ctx, branchName)
147517
147518
const treeSha = await getCommitTreeSha(ctx, commitSha)
147518
- const emptyCommitSha = await createCommit(ctx, commitSha, treeSha, username, ' Create draft PR' )
147519
+ const emptyCommitSha = await createCommit(ctx, commitSha, treeSha, username, ` Create ${draftText}PR` )
147519
147520
await updateReference(ctx, branchName, emptyCommitSha)
147520
147521
await ctx.octokit.pulls.create(
147521
147522
{ owner, repo, head: branchName, base, title, body: `closes #${issueNumber}`, draft: draft })
147522
147523
app.log(`Pull request created for branch ${branchName}`)
147523
147524
} catch (e) {
147524
147525
app.log(`Could not create draft PR (${e.message})`)
147525
- await addComment(ctx, config, `Could not create draft PR (${e.message})`)
147526
+ await addComment(ctx, config, `Could not create ${draftText} PR (${e.message})`)
147526
147527
}
147527
147528
}
147528
147529
@@ -152671,7 +152672,7 @@ module.exports = JSON.parse("{\"100\":\"Continue\",\"101\":\"Switching Protocols
152671
152672
/***/ ((module) => {
152672
152673
152673
152674
"use strict";
152674
- module.exports = JSON.parse("{\"installations\":1215 ,\"repositories\":52808 ,\"suspended\":21,\"popular\":[{\"id\":12645447,\"login\":\"openaphid\",\"stars\":2966},{\"id\":8132103,\"login\":\"lukaszflorczak\",\"stars\":1155},{\"id\":7109391,\"login\":\"kwebio\",\"stars\":562 },{\"id\":11268129,\"login\":\"admdev8\",\"stars\":500},{\"id\":12751378,\"login\":\"CoreProc\",\"stars\":371 },{\"id\":11602912,\"login\":\"chauncey-garrett\",\"stars\":305},{\"id\":1626715,\"login\":\"othreecodes\",\"stars\":283 },{\"id\":5303333,\"login\":\"ExtendedXmlSerializer\",\"stars\":204},{\"id\":13503335,\"login\":\"Ekryd\",\"stars\":200},{\"id\":11512256,\"login\":\"mejdi14\",\"stars\":157}]}");
152675
+ module.exports = JSON.parse("{\"installations\":1218 ,\"repositories\":53068 ,\"suspended\":21,\"popular\":[{\"id\":12645447,\"login\":\"openaphid\",\"stars\":2966},{\"id\":8132103,\"login\":\"lukaszflorczak\",\"stars\":1155},{\"id\":7109391,\"login\":\"kwebio\",\"stars\":563 },{\"id\":11268129,\"login\":\"admdev8\",\"stars\":500},{\"id\":12751378,\"login\":\"CoreProc\",\"stars\":372 },{\"id\":11602912,\"login\":\"chauncey-garrett\",\"stars\":305},{\"id\":1626715,\"login\":\"othreecodes\",\"stars\":284 },{\"id\":5303333,\"login\":\"ExtendedXmlSerializer\",\"stars\":204},{\"id\":13503335,\"login\":\"Ekryd\",\"stars\":200},{\"id\":11512256,\"login\":\"mejdi14\",\"stars\":157}]}");
152675
152676
152676
152677
/***/ }),
152677
152678
0 commit comments