Skip to content

Commit

Permalink
[eas-cli] Support requireCommit for EAS Update (#2196)
Browse files Browse the repository at this point in the history
  • Loading branch information
wschurman authored Jan 22, 2024
1 parent 8ea0579 commit b5f2f52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This is the log of notable changes to EAS CLI and related packages.

### 🎉 New features

- Support requireCommit for EAS Update. ([#2196](https://github.com/expo/eas-cli/pull/2196) by [@wschurman](https://github.com/wschurman))

### 🐛 Bug fixes

### 🧹 Chores
Expand Down
4 changes: 4 additions & 0 deletions packages/eas-cli/src/commands/update/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import chalk from 'chalk';
import nullthrows from 'nullthrows';

import { ensureBranchExistsAsync } from '../../branch/queries';
import { ensureRepoIsCleanAsync } from '../../build/utils/repository';
import { getUpdateGroupUrl } from '../../build/utils/url';
import { ensureChannelExistsAsync } from '../../channel/queries';
import EasCommand from '../../commandUtils/EasCommand';
Expand Down Expand Up @@ -188,6 +189,9 @@ export default class UpdatePublish extends EasCommand {
enableJsonOutput();
}

await vcsClient.ensureRepoExistsAsync();
await ensureRepoIsCleanAsync(vcsClient, nonInteractive);

const {
exp: expPossiblyWithoutEasUpdateConfigured,
projectId,
Expand Down

0 comments on commit b5f2f52

Please sign in to comment.