Skip to content

Conversation

Copy link

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
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