Skip to content

Add support for .yamltectureignore to --mergeConfig#66

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/add-yamltectureignore-support
Draft

Add support for .yamltectureignore to --mergeConfig#66
Copilot wants to merge 3 commits into
mainfrom
copilot/add-yamltectureignore-support

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 28, 2026

The --mergeConfig command merges all YAML files in a folder, but there was no way to exclude specific files. This adds .yamltectureignore support using gitignore syntax.

Changes

  • internal/configuration/load.go: LoadFolder now checks for .yamltectureignore in the target folder and skips matching files
  • Dependency: Added github.com/sabhiram/go-gitignore for pattern matching
  • Documentation: Updated docs/COMMANDS.md with usage examples
  • Tests: Added tests/ignore/ test case

Usage

Place a .yamltectureignore file in the config folder:

# Ignore specific files
example.yaml
temp-*.yaml

Then run:

yamltecture --mergeConfig -in ./configs

Files matching patterns are excluded from the merged output.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /update-job-proxy /update-job-proxy int (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy DROP .9/x64/codeql/to/etc/ssl/certs/ce5e74ef.0 test -e cation_Authority.pem .9/x64/codeql/to-e test ckages/lib:/usr/git mpile .9/x64/codeql/to-fx test -e CA_v1.pem /home/REDACTED/go/-e /usr/bin/test -unreachable=fal/usr/sbin/iptables ignore support t--wait by/13b01b8f89eb8-t test (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Add support for .yamltectureignore to --mergeConfig</issue_title>
<issue_description>By default the --mergeConfig combines all YAML files into a consolidated config file. However, it may be possible that you don't want all YAML files in that folder to be combined. That is where a .yamltectureignore file would come in useful. This file would contain a list of the files to be ignored by the command. This new file type should use the same syntax and approach of .gitignore files, just being used by the .yamltectureignore.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 28, 2026 23:47
Co-authored-by: JaredHatfield <208119+JaredHatfield@users.noreply.github.com>
Co-authored-by: JaredHatfield <208119+JaredHatfield@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for .yamltectureignore to --mergeConfig Add support for .yamltectureignore to --mergeConfig Jan 28, 2026
Copilot AI requested a review from JaredHatfield January 28, 2026 23:50
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 1, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.86%. Comparing base (40e3cff) to head (becdcef).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
internal/configuration/load.go 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #66      +/-   ##
==========================================
- Coverage   76.88%   76.86%   -0.02%     
==========================================
  Files          14       14              
  Lines         995     1003       +8     
==========================================
+ Hits          765      771       +6     
- Misses        158      159       +1     
- Partials       72       73       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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 support for .yamltectureignore to --mergeConfig

2 participants