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: skip committing unchanged files in 0-cicd-github #1212

Conversation

antonkovach
Copy link
Collaborator

The cloud-foundation-fabric repository is constantly evolving. Running 0-cicd-github multiple times may be necessary, for instance, when files have changed, and you need to update the repository. However, committing unchanged files can make it challenging to track changes and understand the repository's history. To address this issue, this feature introduces the capability to skip committing unchanged files and improve the repository's readability.

This feature checks whether any changes have been made to the files before committing them. If no changes are detected, the files will not be committed. This results in a cleaner and more focused commit history that is easier to follow and understand.

When running 0-cicd-github multiple times, files that haven't changed are also committed. This change adds an option to skip committing unchanged files to prevent unnecessary commits.
@antonkovach antonkovach changed the title feat: Add option to skip committing unchanged files in 0-cicd-github feat: skip committing unchanged files in 0-cicd-github Mar 4, 2023
Copy link
Collaborator

@ludoo ludoo left a comment

Choose a reason for hiding this comment

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

good idea, thanks for this :)

@ludoo ludoo merged commit e72ddb6 into GoogleCloudPlatform:master Mar 5, 2023
@antonkovach antonkovach deleted the feature/fast-0-cicd-github-skip-commit-unmodified-files branch March 5, 2023 18:33
lcaggio pushed a commit that referenced this pull request May 5, 2023
…1212)

When running 0-cicd-github multiple times, files that haven't changed are also committed. This change adds an option to skip committing unchanged files to prevent unnecessary commits.

Co-authored-by: Ludovico Magnocavallo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants