Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enhancing report results processing #20

Merged
merged 1 commit into from
Feb 20, 2021

Conversation

y3pio
Copy link
Contributor

@y3pio y3pio commented Feb 19, 2021

Closes the below issues:
#16 - Added issue comment body as part of comments to be processed
#17 - Remove row index number column from output CSV
#18 - Adding HTML url of issue.

Sample output below of updated result processing:

issueID issueURL_API issueURL_HTML commentLine commentURL category
808389782 https://api.github.com/repos/nrontsis/PILCO/issues/57 nrontsis/PILCO#57 using SCREEN_NAME allowed 2 3 time speedup policy optimization longest step pendulum v0 environment this work pre compiling tensorflow graph first execution function please let know need careful speedup analysis nrontsis/PILCO#57 Solution Discussion
  • Issue comments (descriptions) now being considered as part of the corpus of comments to be categorized.
  • Index column no longer visible
  • Added new issueURL_HTML
    • Note for issue body comment (description), the commentUR is just the issueURL_HTML itself as I don't see a way that GitHub readily gives you the specific issue's body comment (description) URL like the one you linked in issue Description not considered a comment? #16

@y3pio y3pio requested a review from khatchad February 19, 2021 05:39
@y3pio y3pio self-assigned this Feb 19, 2021
@y3pio y3pio added the enhancement New feature or request label Feb 19, 2021
df.to_csv(outfile, index=False)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This address #17

"issueURL_HTML": r['html_url'],
"commentLine": processComment(line),
"commentURL": r['html_url'] # Same as issue html url
})
Copy link
Contributor Author

@y3pio y3pio Feb 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This addresses #16 and #18

However note that GitHub does not readily provides the html_url for the issue body comment (description). Using the same html_url as the issue for now for the commentURL for the issue description, as going to that link will bring us directly to the issue and the top comment will be the comment that we are looking at anyway.

@@ -178,11 +196,11 @@
CORPUS.append({
"issueID": url['issueID'],
"issueURL_API": comment['issue_url'],
"issueURL_HTML": url['issueURL_HTML'],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This address #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add HTML URL of issue in CSV Row number column not needed in CSV Description not considered a comment?
1 participant