Skip to content

Commit

Permalink
Merge pull request #40 from SableRaf/main
Browse files Browse the repository at this point in the history
Fix workflow for ingesting issues based on labels
  • Loading branch information
SableRaf authored Jan 11, 2025
2 parents 34879e8 + 2db17a0 commit 0cff20f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/issue_to_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,19 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt

- name: Get issue labels
id: getLabels
env:
GH_TOKEN: ${{ github.token }}
run: |
labels=$(gh issue view "${{ github.event.issue.number }}" --json labels -q '.labels|map(.name)')
echo "Labels: $labels"
echo "labels=$labels" >> $GITHUB_ENV
- name: Determine category from labels
id: determineCategory
run: |
labels_json="${{ toJson(github.event.issue.labels) }}"
labels_json='${{ env.labels }}'
echo "Labels: $labels_json"
category=$(python scripts/determine_category.py "$labels_json")
if [ -z "$category" ]; then
Expand Down

0 comments on commit 0cff20f

Please sign in to comment.