feat: integrate tool with gitlab service (#39)

* feat: integrate tool with gitlab service

Fix https://github.com/lampajr/backporting/issues/30
This commit is contained in:
Andrea Lamparelli 2023-07-02 00:05:17 +02:00 committed by GitHub
parent 8a007941d1
commit 107f5e52d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 17821 additions and 1553 deletions

View file

@ -0,0 +1,20 @@
import { GitPullRequest, GitRepoState, GitRepository } from "@bp/service/git/git.types";
/**
* Generic git client response mapper
*
* PR - full pull request schema type
* S - pull request state type
*/
export default interface GitResponseMapper<PR, S> {
mapPullRequest(
pr: PR,
): Promise<GitPullRequest>;
mapGitState(state: S): GitRepoState;
mapSourceRepo(pull: PR): Promise<GitRepository>;
mapTargetRepo (pull: PR): Promise<GitRepository>;
}