ryan4yin / nix-config

❄️ My nix config for both desktops(NixOS+macOS) and homelab servers(NixOS).
https://nixos-and-flakes.thiscute.world
MIT License
863 stars 52 forks source link

Suggestion to Add Flags in Commit Messages to Highlight Updates Required in Host Machine Configuration Files #97

Closed DataEraserC closed 5 months ago

DataEraserC commented 5 months ago

When making changes to the code, I suggest considering adding a flag in the commit message to indicate which related files downstream may need modifications (e.g., host machine-related content). This practice will assist in swiftly identifying the updates needed, thus enhancing the efficiency of rolling updates.

DataEraserC commented 5 months ago

Possible Solution: pre-commit Consider incorporating the pre-commit tool as a potential solution. Pre-commit is a handy utility that allows us to run specified code formatting and static analysis tasks before making a commit. By configuring pre-commit hooks, we can ensure that any updates to the host configuration files are automatically checked prior to submission, potentially issuing warnings or preventing the commit if needed. This could help us promptly identify changes in configuration files and maintain consistency and accuracy across host configurations.

ryan4yin commented 5 months ago

How about a structure like type (< files >): message? Similar commits:

DataEraserC commented 5 months ago

How about a structure like type (< files >): message? Similar commits:

I think we can give this structure a try.

ryan4yin commented 5 months ago

@DataEraserC OK.