Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
chore: fix autorelease script (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephaniewang526 committed Sep 1, 2020
1 parent 2cdb961 commit 942f0a4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/auto-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
context.payload.pull_request.body.includes("BREAKING CHANGES") ||
context.payload.pull_request.body.includes("Features")
) {
console.log( "Not autoreleasing (not a dependency-update-only release). " );
return;
}
Expand All @@ -37,11 +38,18 @@ jobs:
repo: context.repo.repo,
state: 'open'
});
if (result === null || result === 'undefined' || result.length === 0) {
console.log( "No open pull requests in this repo" );
return;
}
const pulls = await github.paginate(result);
// return if there are open depedency update PRs
for (const pull of pulls) {
if (pull.title.startWith("deps: update dependency ")) {
if (pull.title.startsWith("deps: update dependency ")) {
console.log( "No open dependency update pull requests in this repo" );
return;
}
}
Expand Down

0 comments on commit 942f0a4

Please sign in to comment.