Skip to content

fix(repo): anchor the remaining config.*.yaml ignore rule to the repository root - #268

Merged
himanshu231204 merged 1 commit into
OpenAgentHQ:mainfrom
Nitjsefnie-OSC:fix/264-anchor-remaining-config-rule
Aug 1, 2026
Merged

fix(repo): anchor the remaining config.*.yaml ignore rule to the repository root#268
himanshu231204 merged 1 commit into
OpenAgentHQ:mainfrom
Nitjsefnie-OSC:fix/264-anchor-remaining-config-rule

Conversation

@Nitjsefnie

Copy link
Copy Markdown
Contributor

Description

Closes #264. The sibling of #265, which you merged an hour ago.

#265 anchored config.yaml/config.yaml. The wildcard rule one line below it was still unanchored, so it matched example configs anywhere in the tree:

.gitignore:242:config.*.yaml	examples/demo/config.groq.yaml
.gitignore:242:config.*.yaml	examples/demo/config.dev.yaml

Same fix, same shape: config.*.yaml/config.*.yaml. The config.groq.yaml line above it is dropped as redundant — git check-ignore -v attributes that path to the wildcard on 242, never to 241, since the wildcard is the last matching rule and already covers it.

The section is now just:

/config.yaml
/config.*.yaml

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Related Issues

Closes #264

How Has This Been Tested?

  • Unit tests pass — uv run pytest tests/unit -v --tb=short1015 passed, 4 skipped

Behavioural proof both directions, since that is the whole point of an ignore-rule fix:

Before — example configs wrongly ignored:

.gitignore:242:config.*.yaml	examples/demo/config.groq.yaml
.gitignore:242:config.*.yaml	examples/demo/config.dev.yaml

After — they are visible, and the rule still does its real job at the root:

NOT IGNORED: examples/demo/config.groq.yaml
NOT IGNORED: examples/demo/config.dev.yaml
.gitignore:241:/config.*.yaml	config.groq.yaml
.gitignore:241:/config.*.yaml	config.dev.yaml

Note uv sync --all-extras touched uv.lock locally while setting up to run your tests; it is deliberately not staged, so this commit is .gitignore and nothing else.

Generated by Claude Opus 5 (brief, review), Kimi K2.7 Code (implementation)

A bare config.*.yaml pattern matches at any depth, so it silently ignores
example configs under examples/. Anchoring it to /config.*.yaml keeps the
developer-secret protection at the root while allowing nested example
configs to be tracked normally.

Drop the redundant config.groq.yaml line: the anchored wildcard already
covers it.

Co-Authored-By: Kimi K2.7 Code <noreply@kimi.com>
@himanshu231204
himanshu231204 merged commit b05bded into OpenAgentHQ:main Aug 1, 2026
8 checks passed
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

🎉 Congratulations @Nitjsefnie!

Your pull request has been successfully merged into main. 🚀

Thank you for contributing to OpenAgentHQ and helping improve the project.

We truly appreciate your contribution and hope to see you back with more amazing PRs!

Happy Open Sourcing! ❤️

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.

[BUG] The remaining unanchored config.*.yaml rule in .gitignore silently excludes example configs

2 participants