Skip to content

feat: add gitPlugin - #19

Merged
ho991217 merged 3 commits into
mainfrom
feature/git-plugin
Oct 28, 2026
Merged

ho991217 merged 3 commits into
mainfrom
feature/git-plugin

Conversation

@ho991217

@ho991217 ho991217 commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Overview

Add gitPlugin() to initialize fixtures as Git repositories.

import { Fixture, gitPlugin } from "@fixture-kit/core";

await using fixture = await Fixture.create(files, {
  plugins: [gitPlugin()],
});

The plugin runs git init after files are written or copied, without staging files or creating commits. Git must be available on PATH.

Ignore inherited repository-routing environment variables and reject existing .git entries to keep initialization scoped to the fixture.

Closes #18

Checklist

  • Tests cover the change.
  • README.md and README.ko.md are updated, if user-facing behavior changed.
  • A changeset is included (yarn changeset), if the published package changed.

@ho991217 ho991217 changed the title Feature/git plugin feat: add gitPlugin Oct 28, 2026
@ho991217 ho991217 changed the title feat: add gitPlugin feat: add gitPlugin Oct 28, 2026
@ho991217
ho991217 marked this pull request as ready for review October 28, 2026 12:52
@ho991217 ho991217 self-assigned this Oct 28, 2026
@ho991217
ho991217 merged commit 55c7ffb into main Oct 28, 2026
12 checks passed
@ho991217
ho991217 deleted the feature/git-plugin branch October 28, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add gitPlugin for Git-backed fixtures

2 participants