Skip to main content

Class: GitActorResolver

Defined in: packages/core/src/infrastructure/git/actor-resolver.ts:10

Git-based implementation of ActorResolver.

Reads user.name and user.email from the local git configuration.

Implements

Constructors

Constructor

new GitActorResolver(cwd?): GitActorResolver

Defined in: packages/core/src/infrastructure/git/actor-resolver.ts:18

Creates a new GitActorResolver.

Parameters

cwd?

string = ...

Working directory for git commands; defaults to process.cwd()

Returns

GitActorResolver

Methods

identity()

identity(): Promise<ActorIdentity>

Defined in: packages/core/src/infrastructure/git/actor-resolver.ts:29

Returns the git identity (user.name and user.email) of the current user.

Returns

Promise<ActorIdentity>

The actor identity

Throws

When the current working directory is not inside a git repository

Throws

When user.name or user.email are not configured

Implementation of

ActorResolver.identity