From c642747ffdbe0fbb25210f31d25a6c80d48077c6 Mon Sep 17 00:00:00 2001 From: peter-evans <18365890+peter-evans@users.noreply.github.com> Date: Wed, 28 Feb 2024 00:21:31 +0000 Subject: [PATCH] [CI] test committed --- dist/index.js | 3 +-- report.txt | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 report.txt diff --git a/dist/index.js b/dist/index.js index 1089e16..bca7be4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1109,7 +1109,6 @@ class GitHubHelper { return __awaiter(this, void 0, void 0, function* () { const [headOwner] = headRepository.split('/'); const headBranch = `${headOwner}:${inputs.branch}`; - const headBranchFull = `${headRepository}:${inputs.branch}`; // Try to create the pull request try { core.info(`Attempting creation of pull request`); @@ -1131,7 +1130,7 @@ class GitHubHelper { } // Update the pull request that exists for this branch and base core.info(`Fetching existing pull request`); - const { data: pulls } = yield this.octokit.rest.pulls.list(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { state: 'open', head: headBranchFull, base: inputs.base })); + const { data: pulls } = yield this.octokit.rest.pulls.list(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { state: 'open', head: headBranch, base: inputs.base })); core.info(`Attempting update of pull request`); 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 })); core.info(`Updated pull request #${pull.number} (${headBranch} => ${inputs.base})`); diff --git a/report.txt b/report.txt new file mode 100644 index 0000000..0fb008a --- /dev/null +++ b/report.txt @@ -0,0 +1 @@ +1709079691