Visitar URL original
[Feat]: Add the name of the .templatesyncignore file as a parameter by TechnicallyJoe · Pull Request #568 · AndreasAugustin/actions-template-sync · GitHub
Skip to content

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

Merged
AndreasAugustin merged 14 commits into
AndreasAugustin:mainfrom
TechnicallyJoe:main
Oct 15, 2024
Merged

AndreasAugustin merged 14 commits into
AndreasAugustin:mainfrom
TechnicallyJoe:main

Conversation

@TechnicallyJoe

@TechnicallyJoe TechnicallyJoe commented Oct 14, 2024 •

Copy link
Copy Markdown
Contributor

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

@AndreasAugustin AndreasAugustin left a comment

Copy link
Copy Markdown
Owner

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 .

Comment thread src/sync_template.sh
Comment thread src/sync_template.sh
@TechnicallyJoe

Copy link
Copy Markdown
Contributor Author

Ready for PR review round 2 :) @AndreasAugustin

@AndreasAugustin
AndreasAugustin merged commit 03661a8 into AndreasAugustin:main Oct 15, 2024
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