Optional .gitignore for AI DevKit artifacts on init#46
Open
CuongTranXuan wants to merge 1 commit intocodeaholicguy:mainfrom
Open
Optional .gitignore for AI DevKit artifacts on init#46CuongTranXuan wants to merge 1 commit intocodeaholicguy:mainfrom
CuongTranXuan wants to merge 1 commit intocodeaholicguy:mainfrom
Conversation
Author
|
Hi, this is my PR for the issue #22 earlier, hope it can contribute to the project. |
Add managed .gitignore block for .ai-devkit.json and the docs dir, with --gitignore-artifacts, init template gitignoreArtifacts, and interactive prompt (TTY, default off). Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.gitignoreupdates duringai-devkit init: a managed block for.ai-devkit.jsonand the configured AI docs directory (defaultdocs/ai/).--gitignore-artifactsCLI flaggitignoreArtifacts: true | falsein init templates (YAML/JSON).gitignoreis left as-is. Re-running init updates paths if the docs dir changes (e.g.--docs-dir/ templatepaths.docs)..gitignorewrite → error and non-zero exit.Motivation
Some users keep AI DevKit config and phase docs local and don’t want them in the shared repo. Today they have to hand-edit
.gitignoreafterinit. This integrates that intoinitwhile keeping the default safe for teams that commitdocs/ai.