Skip to content

fix: render labels as readable text instead of a Python list repr - #167

Merged
drkrillo merged 1 commit into
drkrillo:mainfrom
tharunsridhar:fix/readable-labels-csv
Sep 24, 2026
Merged

drkrillo merged 1 commit into
drkrillo:mainfrom
tharunsridhar:fix/readable-labels-csv

Conversation

@tharunsridhar

@tharunsridhar tharunsridhar commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

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

  • I read the CONTRIBUTING.md
  • I ran the project locally and tested my changes
  • I verified my changes are working as expected
  • This PR description is written by me, not by AI

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
@drkrillo

Copy link
Copy Markdown
Owner

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.

@drkrillo
drkrillo merged commit d3e90e7 into drkrillo:main Sep 24, 2026
2 checks passed
@drkrillo

Copy link
Copy Markdown
Owner

Merged! thanks @tharunsridhar :)

One thing I noticed afterwards: the filter is case-sensitive, so some rows with Good First Issue still keep the label. I opened a new issue for it (#169 ). It's yours if you want it, just comment there and I'll assign it to you.

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT]: Render labels as readable text instead of a Python list

3 participants