Skip to content

Commit

Permalink
fix: minor derp with barrier conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
mscharley committed Mar 15, 2024
1 parent 93cbae2 commit 1d35a10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export async function run(): Promise<void> {
}

const commits = await getCommitLog(octokit, owner, repo, pr);
if (commits.length > 0) {
debugJson('Refusing to update a PR with multiple commits', commits);
if (commits.length > 1) {
debugJson('Refusing to update a PR with more than one commit', commits);
return;
}
debug(`Writing changesets to ${input.changesetFolder}`);
Expand Down

0 comments on commit 1d35a10

Please sign in to comment.