oss-reva / gitscribe

discord bot for github repo and issue info retrieval.
https://pypi.org/project/gitscribe/
MIT License
9 stars 12 forks source link

[Bug] - Incorrect Calculation of 'good_first_issue_count' in GitHub.py #12

Closed Manjunathravindra closed 1 year ago

Manjunathravindra commented 1 year ago

Problem Description:

The Variable good_first_issue_count in github.py is intended to store the count of total issues labeled as good first issue in a GitHub repository. However, it currently always stores a value of 0 for all cases, which is not the expected behavior.

Code Snippet :

https://github.com/oss-reva/gitscribe/blob/0dd4d8c13c376b54c9a9208bef253bd88084829c/gitscribe/apis/github.py#L22-L23

Example:

For instance, when using the above code for the repository https://github.com/oss-reva/gitscribe, the good_first_issue_count is incorrectly calculated as 0.

Screenshot 2023-09-29 022017

However, the actual good_first_issue_count for this repository should be 2, as seen in the following screenshot:

Screenshot 2023-09-29 022146

shreyass-ranganatha commented 1 year ago

This issue is a subset of #10, requires a general fix in the way the API is accessed