From 0ca2e48ee8449439a6e0a4ca0652a4ec07031ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Mon, 10 Jan 2022 17:22:31 +0100 Subject: [PATCH] ci(project): fix `gh pr view` call to use ohmyzsh repository --- .github/workflows/project.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index 2a27b70fc..bb1063acb 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -47,21 +47,23 @@ jobs: ISSUE_OR_PR_ID: ${{ github.event.issue.node_id || github.event.pull_request.node_id }} run: | item_id="$(gh api graphql -f query=' - mutation($project: ID!, $item: ID!) { - addProjectNextItem(input: {projectId: $project, contentId: $item}) { + mutation($project: ID!, $content: ID!) { + addProjectNextItem(input: {projectId: $project, contentId: $content}) { projectNextItem { id } } } - ' -f project=$PROJECT_ID -f item=$ISSUE_OR_PR_ID --jq '.data.addProjectNextItem.projectNextItem.id')" + ' -f project=$PROJECT_ID -f content=$ISSUE_OR_PR_ID --jq '.data.addProjectNextItem.projectNextItem.id')" echo "ITEM_ID=$item_id" >> $GITHUB_ENV - name: Classify Pull Request if: github.event_name == 'pull_request_target' run: | - gh pr view ${{ github.event.pull_request.number }} --json files --jq '.files.[].path' | awk -F/ ' + gh pr view ${{ github.event.pull_request.number }} \ + --repo ${{ github.repository }} \ + --json files --jq '.files.[].path' | awk -F/ ' /^plugins\// { plugins[$2] = 1 }