Skip to content

Conversation

@xocasdashdash
Copy link

@xocasdashdash xocasdashdash commented Jul 21, 2025

This should allow us to keep a single configuration in place for a repo where some of the files are overwritten and some are not.

For example, we could have some terraform code that we want to bootstrap once and then a different file that we want to always keep in sync. As long as this file has the "generated" in its name we can do this:

Project/Repo:
 - source: build/repo
    excludePattern: ".*\.generated\.tf"
    includePattern: ".*/subscriptions.tf"
    replace: false
  - source: build/repo
     includePattern: ".*\.generated\.tf"
     replace: true

This should keep the configuration working for us.

Added an upstream PR BetaHuhn#360

@xocasdashdash xocasdashdash marked this pull request as ready for review July 21, 2025 09:52
Copy link

@alecsammon alecsammon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still hoping that we still be able to get our changes merged upstream.

Can we

  1. Ensure that this is ready to merge upstream - i.e. has comments/documentation
  2. Open a separate PR into the upstream with the hope it might get merged?

- We can control which files from a directory should be ignored or included
  by using a regex pattern.
- This is useful for cases where we want to ignore certain files
  (e.g., temporary files, logs) or include specific files
  (e.g., configuration files) based on their names or extensions.
alecsammon
alecsammon previously approved these changes Jul 22, 2025
@xocasdashdash xocasdashdash merged commit f3e1bf0 into master Jul 22, 2025
1 check passed
@xocasdashdash xocasdashdash deleted the add-a-regex-ignore branch July 22, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants