Skip to content

Commit a7bb765

Browse files
authored
fix: remove unused draft param from pull update (#1065)
1 parent 357cebe commit a7bb765

File tree

3 files changed

+24
-25
lines changed

3 files changed

+24
-25
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ class GitHubHelper {
966966
core.info(`Fetching existing pull request`);
967967
const { data: pulls } = yield this.octokit.rest.pulls.list(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { state: 'open', head: headBranch, base: inputs.base }));
968968
core.info(`Attempting update of pull request`);
969-
const { data: pull } = yield this.octokit.rest.pulls.update(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { pull_number: pulls[0].number, title: inputs.title, body: inputs.body, draft: inputs.draft }));
969+
const { data: pull } = yield this.octokit.rest.pulls.update(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { pull_number: pulls[0].number, title: inputs.title, body: inputs.body }));
970970
core.info(`Updated pull request #${pull.number} (${headBranch} => ${inputs.base})`);
971971
return {
972972
number: pull.number,

package-lock.json

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/github-helper.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ export class GitHubHelper {
8484
...this.parseRepository(baseRepository),
8585
pull_number: pulls[0].number,
8686
title: inputs.title,
87-
body: inputs.body,
88-
draft: inputs.draft
87+
body: inputs.body
8988
})
9089
core.info(
9190
`Updated pull request #${pull.number} (${headBranch} => ${inputs.base})`

0 commit comments

Comments
 (0)