Label Dimension Mismatch for GitHub action graphql API query

Label Dimension Mismatch for GitHub action graphql API query


0

Currently running into an issue where this line of code creates the following error.

Code for GitHub action (.yml file)

        if: steps.filter.outputs.patterns == 'true'
        run: |
          item_id="$( gh api graphql -f query='
          mutation($issueid:ID!, $labels:[ID!]) {
          updateIssue(input: {labelIds: [$labels], id: $issueid}) {
              issue {
                id
              }
            }
          }' -f labels="my_label_code" -f issueid=$ISSUE_NODE_ID)"

Error code:

gh: List dimension mismatch on variable $labels and argument labelIds ([[ID!]]! / [ID!])
Error: Process completed with exit code 1.

I’m not sure what the issue is here. The goal behind this segment is that it’s supposed to add an additional label to an issue. I’ve followed the GitHub docs for mutations, but not sure where to go from here.


Load 3 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *