Skip to content

Commit

Permalink
build(release): compiled action for 1.2.8
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
semantic-release-bot committed Nov 22, 2019
1 parent a98dca9 commit 148525c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,17 @@ async function main() {
);

if (remoteBranchExists) {
core.info(`Existing pull request for "${inputs.branch}" updated`);
return;
const q = `head:${inputs.branch} type:pr is:open repo:${process.env.GITHUB_REPOSITORY}`;
const { data } = await request("GET /search/issues", {
q
});

if (data.total_count > 0) {
core.info(
`Existing pull request for branch "${inputs.branch}" updated: ${data.items.html_url}`
);
return;
}
}

core.debug(`Creating pull request`);
Expand Down

0 comments on commit 148525c

Please sign in to comment.