# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# README
Generating the list of open issues
- To use the script, generate access token here: https://github.com/settings/tokens?type=beta.
- To get all open issues invoke the first script setting
SF_TF_SCRIPT_GH_ACCESS_TOKEN
:
cd gh && SF_TF_SCRIPT_GH_ACCESS_TOKEN=<YOUR_PERSONAL_ACCESS_TOKEN> go run .
- File
issues.json
should be generated in thegh
directory. This is the input file for the second script. - To get process the issues invoke the second script:
cd file && go run .
- File
issues.csv
should be generated in thefile
directory. This is the CSV which summarizes all the issues we have.
Closing old issues (regarding https://github.com/Snowflake-Labs/terraform-provider-snowflake/discussions/2755)
- To use the script, generate access token here: https://github.com/settings/tokens?type=beta.
- First get all open issues by invoking:
cd gh && SF_TF_SCRIPT_GH_ACCESS_TOKEN=<YOUR_PERSONAL_ACCESS_TOKEN> go run .
- File
issues.json
should be generated in thegh
directory. This is the input file for the second script. The next script is based also onpresnowflake_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
andissues_edited.csv
. There are two files documenting closing action on 30.04.2024 (20240430 - issues_edited.csv
and20240430 - issues_to_close.csv
). In20240430 - 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
inclose-with-comment
dir. Example20240430 - issues_to_close.csv
is given. The run:
cd close-with-comment && SF_TF_SCRIPT_GH_ACCESS_TOKEN=<YOUR_PERSONAL_ACCESS_TOKEN> go run .
Creating new labels and assigning them to issues
- Firstly, make sure all the needed labels exist in the repository, by running:
cd create-labels && SF_TF_SCRIPT_GH_ACCESS_TOKEN=<YOUR_PERSONAL_ACCESS_TOKEN> go run .
- Then, we have to get data about the existing issues with:
cd gh && SF_TF_SCRIPT_GH_ACCESS_TOKEN=<YOUR_PERSONAL_ACCESS_TOKEN> go run .
- Afterward, we need to process
issues.json
with:
cd file && go run .
- Next you have to analyze generated CSV and assign categories in the
Category
column and resource / data source in theObject
column (theGitHub issues buckets
Excel should be used here named asGitHubIssuesBucket.csv
; Update already existing one). The csv document be of a certain format with the following columns (with headers): "A" column with issue ID (in the format of "#<issue_id>"), "B" column with the category that should be assigned to the issue (should be one of the supported categories: "OTHER", "RESOURCE", "DATA_SOURCE", "IMPORT", "SDK", "IDENTIFIERS", "PROVIDER_CONFIG", "GRANTS", and "DOCUMENTATION"), and the "C" column with the object type (should be in the format of the terraform resource, e.g. "snowflake_database"). Then, you'll be able to use this csv (put it next to themain.go
) to assign labels to the correct issues.
cd assign-labels && SF_TF_SCRIPT_GH_ACCESS_TOKEN=<YOUR_PERSONAL_ACCESS_TOKEN> go run .