Skip to content

Commit

Permalink
chore: chore
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan committed Aug 15, 2024
1 parent abb0159 commit b591b8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bulk_issue_creator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ jobs:
run: |
issue_title="${{ github.event.inputs.issue_title }}"
issue_body="${{ github.event.inputs.issue_description }}"
labels=${{ fromJson(join(',', github.event.inputs.issue_labels)) }}
labels=[${{github.event.inputs.issue_labels}}]
echo "labels: $labels"
# Curl api call to create issue
response=$(curl -s -X POST \
-H "Authorization: token ${{ secrets.REQUIREMENTS_BOT_GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/${{ github.event.inputs.organization }}/${{ matrix.repo }}/issues \
-d "{ \"title\": \"$issue_title\", \"body\": \"$issue_body\", \"labels\": $labels_array }")
-d "{ \"title\": \"$issue_title\", \"body\": \"$issue_body\", \"labels\": $labels }")
echo "Issue creation API response:"
echo "$response" | jq . # Pretty print the response
Expand Down

0 comments on commit b591b8c

Please sign in to comment.