Skip to content

Conversation

AgustinWojtyszyn
Copy link

✅ Improvements made

a. Readability and consistency

Clear use of f-strings.

Use of logging instead of print for better control.

b. Error handling

HTTP error handling with response.raise_for_status().

Exception handling with try/except for requests.

c. Best practices

Removed the non-existent printer.

Added User-Agent header (recommended by GitHub).

Optional authentication token support via the GITHUB_TOKEN environment variable (avoids rate limits).

d. More useful output

In addition to counting, it shows the issue titles if desired.

Added --show-issues parameter to display details.

✅ Improvements made

a. Readability and consistency

Clear use of f-strings.

Use of logging instead of print for better control.

b. Error handling

HTTP error handling with response.raise_for_status().

Exception handling with try/except for requests.

c. Best practices

Removed the non-existent printer.

Added User-Agent header (recommended by GitHub).

Optional authentication token support via the GITHUB_TOKEN environment variable (avoids rate limits).

d. More useful output

In addition to counting, it shows the issue titles if desired.

Added --show-issues parameter to display details.
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.

1 participant