Skip to content

Commit

Permalink
add info log
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-roca committed Oct 22, 2024
1 parent 873d356 commit e996e5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ datadog-ci deployment correlate --provider argocd

- `--provider` (**required**): the CD provider name. Currently, the only supported CD provider is `argocd`.
- `--config-repo`: configuration repository URL where the kubernetes manifests are stored. If empty, the command tries to get it using the git command `git ls-remote --get-url`.
- `--config-shas`: a list of the Git commit SHAs of the configuration repository. If empty, the command tries to get all unpushed commits using a `git log` command.
- `--config-shas`: a list of the Git commit SHAs of the configuration repository. If empty, the command tries to get all local commits using a `git log` command.
- `--dry-run` (default: `false`): prevents the command from sending any data to Datadog. All the other checks are still performed.

### Environment variables
Expand Down
1 change: 1 addition & 0 deletions src/commands/deployment/correlate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export class DeploymentCorrelateCommand extends Command {
}

if (!this.configurationShas) {
this.logger.info('Retrieving local git commits')
const currentBranch = await gitCurrentBranch(git)
if (!currentBranch) {
this.logger.error('Could not get current branch')
Expand Down

0 comments on commit e996e5c

Please sign in to comment.