cisagov / pre-commit-packer

Provides pre-commit hooks for Packer projects.
Creative Commons Zero v1.0 Universal
14 stars 11 forks source link

Add a new option to the `bump-version` script to list files it updates #46

Closed mcdonnnj closed 1 month ago

mcdonnnj commented 1 month ago

๐Ÿ—ฃ Description

This pull request adds a --list-files option to list out any files the bump-version script updates when changing versions. This is in addition to updating the script to store any files it updates in an array.

๐Ÿ’ญ Motivation and context

The array itself is a good improvement, but the new option is in support of https://github.com/cisagov/gh-skeleton/issues/31.

๐Ÿงช Testing

Automated tests pass. I verified the new option works as expected:

$ ./bump-version --list-files
config/version.txt
README.md

โœ… Pre-approval checklist