Skip to content

feat: add language and keyword filtering options#47

Open
jinethonazam-droid wants to merge 1 commit intoyankeexe:masterfrom
jinethonazam-droid:feature/add-language-keyword-filter
Open

feat: add language and keyword filtering options#47
jinethonazam-droid wants to merge 1 commit intoyankeexe:masterfrom
jinethonazam-droid:feature/add-language-keyword-filter

Conversation

@jinethonazam-droid
Copy link
Copy Markdown

This PR adds two new CLI flags to improve issue search:

  1. --language: Filter issues by programming language (e.g., Python, JavaScript)
  2. --keyword: Filter issues by keywords in title or description

Example usage:
$ python -m good_first_issues.main search --language Python --keyword "API"

Expected behavior:

  • Only issues matching the selected language and keyword are displayed.
  • Improves usability for contributors to quickly find relevant tasks.

Copy link
Copy Markdown

@iamteamstar iamteamstar left a comment

Choose a reason for hiding this comment

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

Hi there! Thanks for working on this issue. I can see your intention is to add --language and --keyword filters to the search functionality. However, there is a structural issue with this approach.

This project uses click as its CLI framework. By introducing argparse at the top level of main.py, we are mixing two different frameworks. Furthermore, the argparse logic here is never actually executed or integrated with the existing commands.

Comment thread good_first_issues/main.py
@@ -1,32 +1,32 @@
"""Entrypoint of the CLI"""
import argparse

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please remove the argparse implementation. The --language and --keyword arguments should be implemented using @click.option() inside search.py where the actual search command is defined

Comment thread good_first_issues/main.py
config,
rate_limit,
search,
search, # THIS IS ALREADY THE COMMAND
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please remove this inline comment

Comment thread good_first_issues/main.py
$ gfi search

"""
pass
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please remove this inline comment as well before we merge

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.

3 participants