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

FR: before updating the file check first that is was autogenerated #67

Open
meskill opened this issue Nov 27, 2024 · 2 comments
Open

FR: before updating the file check first that is was autogenerated #67

meskill opened this issue Nov 27, 2024 · 2 comments

Comments

@meskill
Copy link
Contributor

meskill commented Nov 27, 2024

To prevent cases when the repository already has workflow files and to not override it accidently add check to gh-workflow that will verify first that the file is autogenerated and if not throw an Error.

@tusharmath
Copy link
Contributor

tusharmath commented Nov 28, 2024

One way to identify that the file isn't generated by this tool is to see if the file starts with the initial block comment. That being said, when the file is generated, git will show a diff automatically and the user has the option to commit or not. What is the purpose of providing such low-level control over when to update the file?

@meskill
Copy link
Contributor Author

meskill commented Nov 28, 2024

One way to identify that the file isn't generated by this tool is to see if the file starts with the initial block comment. That being said, when the file is generated, git will show a diff automatically and the user has the option to commit or not. What is the purpose of providing such low-level control over when to update the file?

I though about case when the git is not yet initialized but there are some files already

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

No branches or pull requests

2 participants