Skip to content

Commit

Permalink
fix: update quoting around labels when adding label
Browse files Browse the repository at this point in the history
Fixes #432
  • Loading branch information
wyardley committed Mar 4, 2025
1 parent bd7affe commit 3591d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ runs:
# If the label does not exist, create it before adding it to the PR in the format 'tf:${{ inputs.command }}'.
gh api /repos/${{ github.repository }}/labels/tf:${{ inputs.command }} --header "$GH_API" --method GET || \
gh api /repos/${{ github.repository }}/labels --header "$GH_API" --method POST --field "name=tf:${{ inputs.command }}" --field "description=Pull requests that ${{ inputs.command }} TF code." --field "color=5C4EE5"
gh api /repos/${{ github.repository }}/issues/${{ steps.identifier.outputs.pr }}/labels --header "$GH_API" --method POST --field "labels[]=tf:${{ inputs.command }}"
gh pr edit ${{ steps.identifier.outputs.pr }} --label "tf:${{ inputs.command }}" ${{ github.repository }}
- if: ${{ inputs.command == 'plan' }}
id: plan
Expand Down

0 comments on commit 3591d90

Please sign in to comment.