Problem Description
Currently, exportReposCSV, exportContributorsCSV, and exportTrendsCSV format CSV rows by directly calling .join(','). If exported data fields (such as repository names, descriptions, or organization logins) contain commas, double quotes, or newlines, the resulting CSV file has corrupted column alignment when opened in Excel, Google Sheets, or standard CSV parsers.
Steps to Reproduce
- Go to Repositories, Contributors, or Trends page.
- Click the CSV Export button on data containing fields with commas or quotes.
- Open the downloaded
.csv file in Excel / Google Sheets.
- Observe broken columns and misplaced cell data.
Expected Behavior
CSV exports should adhere to RFC 4180 standards:
- Enclose cells containing commas, double quotes, or newlines in double quotes (
"...").
- Escape internal double quotes by doubling them (
"").
Problem Description
Currently,
exportReposCSV,exportContributorsCSV, andexportTrendsCSVformat CSV rows by directly calling.join(','). If exported data fields (such as repository names, descriptions, or organization logins) contain commas, double quotes, or newlines, the resulting CSV file has corrupted column alignment when opened in Excel, Google Sheets, or standard CSV parsers.Steps to Reproduce
.csvfile in Excel / Google Sheets.Expected Behavior
CSV exports should adhere to RFC 4180 standards:
"...")."").