Tag: github-actions
-
github graphQL api – how to retrieve issue’s project items?
0 I am new to github graphQL API and I have been scrambling for a solution to the following problem, using github Entreprise Cloud: I have a repo "myRepo" containing an issue "myIssue" issue "myIssue" is added to a projectV2 "myProject", which is defined at organization level (not in a repo) project "myProject" contains a…
-
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:…
-
How to get comment Node ID of a discussion in GitHub Action with GitHub GraphQL API
0 I’m working on a GitHub Action triggered on the comment of a certain discussion (say org/repo/discussions/6#discussioncomment-7349183) being created or edited. I’d like the action to reply the comment like "your pipeline is running here" with a link. Then I found that there’s only GraphQL way to add a reply like: mutation { addDiscussionComment(input:{ discussionId:…