Skip to content

Fix workflow for ingesting issues based on labels #40

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

Merged
merged 5 commits into from
Jan 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Enclose $labels_json in single quotes avoids any unintended shell i…
…nterpretation.
  • Loading branch information
SableRaf committed Jan 11, 2025
commit 78bc5191f0e55517937988dd5c663bd6a8c5ffd5
22 changes: 11 additions & 11 deletions .github/workflows/issue_to_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ jobs:
echo "labels=$labels" >> $GITHUB_ENV

- name: Determine category from labels
id: determineCategory
run: |
labels_json="${{ env.labels }}"
echo "Labels: $labels_json"
category=$(python scripts/determine_category.py "$labels_json")
if [ -z "$category" ]; then
echo "Category is empty. Please ensure the issue has a valid label."
exit 1
fi
echo "category=$category" >> $GITHUB_OUTPUT
echo "Category found: $category"
id: determineCategory
run: |
labels_json='${{ env.labels }}'
echo "Labels: $labels_json"
category=$(python scripts/determine_category.py "$labels_json")
if [ -z "$category" ]; then
echo "Category is empty. Please ensure the issue has a valid label."
exit 1
fi
echo "category=$category" >> $GITHUB_OUTPUT
echo "Category found: $category"

- name: Debug payload
run: echo "${{ steps.parseIssue.outputs.payload }}"
Expand Down