Moves the issue classification logic from the GitHub Actions workflow to a separate Python script for improved modularity and maintainability.
Extracts the Python code previously embedded in .github/workflows/issue_clasification.yml into a new file named classification_groq.py. This script includes the necessary logic for issue classification using the Groq and GitHub APIs.
Adds a shebang line #!/usr/bin/env python3 at the top of classification_groq.py to ensure it can be executed directly.
Modifies .github/workflows/issue_clasification.yml to remove the embedded Python code and replaces it with a step to execute the classification_groq.py script. This change simplifies the workflow file and delegates the classification task to the external script.
Ensures that the necessary environment variables (GITHUB_TOKEN, GROQ_API_KEY, and ISSUE_NUMBER) are passed to the classification_groq.py script, maintaining the functionality of the issue classification process.
Moves the issue classification logic from the GitHub Actions workflow to a separate Python script for improved modularity and maintainability.
.github/workflows/issue_clasification.yml
into a new file namedclassification_groq.py
. This script includes the necessary logic for issue classification using the Groq and GitHub APIs.#!/usr/bin/env python3
at the top ofclassification_groq.py
to ensure it can be executed directly..github/workflows/issue_clasification.yml
to remove the embedded Python code and replaces it with a step to execute theclassification_groq.py
script. This change simplifies the workflow file and delegates the classification task to the external script.GITHUB_TOKEN
,GROQ_API_KEY
, andISSUE_NUMBER
) are passed to theclassification_groq.py
script, maintaining the functionality of the issue classification process.For more details, open the Copilot Workspace session.