cd gh && SF_TF_SCRIPT_GH_ACCESS_TOKEN=<YOUR_PERSONAL_ACCESS_TOKEN> go run .
File issues.json should be generated in the gh directory. This is the input file for the second script. The next script is based also on presnowflake_bucket.csv that was created based on the GH issues filtering.
To filter only closeable issues invoke this script:
cd filter-closeable-old-issues && go run .
Script will output files issues_to_close.csv and issues_edited.csv. There are two files documenting closing action on 30.04.2024 (20240430 - issues_edited.csv and 20240430 - issues_to_close.csv). In 20240430 - notes.MD there are notes regarding the questionable issues and the decisions taken.
To close the issues with the appropriate comment provide issues_to_close.csv in close-with-comment dir. Example 20240430 - issues_to_close.csv is given. The run:
cd close-with-comment && SF_TF_SCRIPT_GH_ACCESS_TOKEN=<YOUR_PERSONAL_ACCESS_TOKEN> go run .