Repository navigation
fix: render labels as readable text instead of a Python list repr - #167
Conversation
The labels column was written straight from repr(), leaking Python list syntax into the CSV. extract_issue_data now drops the redundant good first issue label (every row already qualifies), and write_output joins the remaining labels with "; " for CSV output - the exact format DatasetManager.parse_labels already reads. JSON output keeps labels as a list. Also updates the schema examples in docs/action-usage.md, which still showed the old repr format. Closes #136
|
Hi @tharunsridhar ! The PR is approved. I like a lot the tests you wrote. Reading the CSV back instead of asserting on internals is the right move, and checking that parse_labels already handled the semicolon form before proposing it is nice too. One small thing though. The PRs in the repo have a template to follow. Could you adapt yours to it please? Thanks a lot! With that change I'll mege it. |
|
Merged! thanks @tharunsridhar :) One thing I noticed afterwards: the filter is case-sensitive, so some rows with There are others there that might interest you. For example, #149 is more challenging and you might be interested. Feel free to comment and I will assign it to you. Thanks for the contributioN! |
What does this PR do?
Fixes the "labels" column in the CSV output it was being written as a raw
Python list repr (like "['good first issue', 'bug']"), leaking Python syntax
into the data file. Labels now drop the redundant 'good first issue' entry
and get joined with ';' for CSV, matching the format
'DatasetManager.parse_labels' already expected on the read side. Also fixed
the stale CSV/JSON examples in 'docs/action-usage.md'.
Related Issue
Closes #136
Checklist