export class GitHubDiffMetadataFetchGateway {
    executor;
    constructor(executor) {
        this.executor = executor;
    }
    fetchDiffMetadata(projectPath, mergeRequestNumber) {
        const response = this.executor(`gh api repos/${projectPath}/pulls/${mergeRequestNumber}`);
        const pr = JSON.parse(response);
        return {
            baseSha: pr.base.sha,
            headSha: pr.head.sha,
            startSha: pr.base.sha,
        };
    }
}
//# sourceMappingURL=diffMetadataFetch.github.gateway.js.map