From cec24eadd8f33085bbf3e420a4cc2768da786e7b Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Mon, 16 Nov 2026 11:42:55 -0300 Subject: [PATCH] chore(git): ignore local agent state and environment secrets and exclude them and development artifacts from archives. --- .gitattributes | 11 +++++++++-- .gitignore | 9 +++++++++ CHANGELOG.md | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.gitattributes b/.gitattributes index e9798e8..7275ab2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -27,8 +27,11 @@ *.woff2 binary # Exclude files from the archive -/.agents export-ignore -/.claude export-ignore +.env export-ignore +.env.* export-ignore +.env.example -export-ignore +.agents export-ignore +.claude export-ignore /.coderabbit.yaml export-ignore /.codex export-ignore /.config/gh export-ignore @@ -38,11 +41,14 @@ /.gitignore export-ignore /.idea export-ignore /.nvmrc export-ignore +/.phpunit.cache export-ignore /.prettierignore export-ignore /.prettierrc.json export-ignore +/.stryker-tmp export-ignore /.styleci.yml export-ignore /.vscode export-ignore /AGENTS.md export-ignore +/artifacts export-ignore /code_coverage export-ignore /codeception.yml export-ignore /composer-require-checker.json export-ignore @@ -55,6 +61,7 @@ /phpstan*.neon* export-ignore /phpunit.xml.dist export-ignore /rector.php export-ignore +/reports export-ignore /runtime export-ignore /tests export-ignore /vendor export-ignore diff --git a/.gitignore b/.gitignore index d0477ac..938418b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,19 @@ +# agents (if present) +.agents + # artifacts (if present) artifacts # Local AI agent, editor, and GitHub CLI config (if present) +.claude .codex .config/gh +# Local environment files (if present) +.env +.env.* +!.env.example + # codecoverage (if present) code_coverage diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bc4f20..2588aa0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## 0.1.3 Under development - docs(skills): add the package skill and AI guide; add `README.md` Security and Built with AI sections and Scorecard badge. -- chore(git): update `.gitattributes` and `.gitignore` for improved file handling and exclusions. +- chore(git): ignore local agent state and environment secrets and exclude them and development artifacts from archives. ## 0.1.2 November 6, 2026