GitRoot
craft your forge, build your project, grow your community freely
1// SPDX-FileCopyrightText: 2025 Romain Maneschi <romain@gitroot.dev>
2//
3// SPDX-License-Identifier: MIT
4
5import { Commit } from "./commit";
6
7export interface Plugin {
8 init(repoName: string, confHasChanged: boolean, conf: string): void;
9 startCommit(commit: Commit): void;
10 addFile(path: string): void;
11 modFile(fromPath: string, toPath: string): void;
12 delFile(path: string): void;
13 endCommit(commit: Commit): void;
14 finish(): void;
15}