Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]: Add the name of the .templatesyncignore file as a parameter #568

Merged
merged 14 commits into from
Oct 15, 2024

Conversation

TechnicallyJoe
Copy link
Contributor

@TechnicallyJoe TechnicallyJoe commented Oct 14, 2024

Description

Close #567

Converts template_sync_ignore_file_path from a constant to a parameter on the action. It defaults to .templatesyncignore

Only real problem i can spot is that previously it checked for .templatesyncignore in the root of the repository and in .github. With explicit path, that doesn't seem to make much sense any more so i've removed that check - but it also makes it non-backwards compatible.

_Note: It is not possible to sync also the .templatesyncignore itself. Any changes from the template repository will be restored automatically._ - README.md

Theoretically it should also be possible sync the ignore file now but in a separate template sync run which would use it's own ignore file that ignores everything except the 'other' ignore file... I could change it to _Note: The action will not sync it's own ignore file however this could be achieved by setting up a different sync job that ignores all files except the initial ignore file._

I'll let you guys decide whether or not to keep the current, the above suggestion or something else.

Remark

For automation please see closing-issues-using-keywords

@TechnicallyJoe TechnicallyJoe marked this pull request as ready for review October 14, 2024 13:19
Copy link
Owner

@AndreasAugustin AndreasAugustin left a comment

Choose a reason for hiding this comment

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

Hi @TechnicallyJoe and thanks a bunch for the PR 🚀

Please have a look into my review comments. Happy to have a discussion 🥷

Related to your thoughts related the updates of .templatesyncignore.
There was a bug/discussion #250 .

src/sync_template.sh Show resolved Hide resolved
src/sync_template.sh Show resolved Hide resolved
@TechnicallyJoe
Copy link
Contributor Author

Ready for PR review round 2 :) @AndreasAugustin

@AndreasAugustin AndreasAugustin merged commit 03661a8 into AndreasAugustin:main Oct 15, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

[Feat]: Add the name of the .templatesyncignore file as a parameter
2 participants