This is the script to deprecate old files that have been moved over to va.gov-team's repo. It requires a repo-deprecation.csv
file. This will be input data for the script. This file should be provided by the IA team after files have been migrated over to va.gov-team's. The columns names need to be formatted like so.
url | messagingToBeAdded |
---|---|
https://github.com/department-of-veterans-affairs/vets.gov-team/platform/research/research-plan-template.md | This page is no longer maintained and likely outdated. Please see the most current research documentation in the va.gov-team repo. |
scripts/repo-replace-url.js
$ npm run repo-deprecation
Once the script is done running it will output a repo-deprecation.log.csv
file. This will show a report of success and errors relating to each file that is modified.
This is the script to find old url's and replace it with the new url's in va.gov-team's repo. It requires a repo-replace-url.csv
file. This will be input data for the script. This file should be provided by the IA team after files have been migrated over to va.gov-team's repo. The columns names need to be formatted like so.
scripts/repo-replace-url.js
$ npm run repo-replace-url
Once the script is done running it will output a repo-replace-url.log.csv
file. This will show a report of success and errors relating to each file that is modified.