summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2022-01-10 17:22:31 +0100
committerMarc Cornellà <hello@mcornella.com>2022-01-10 17:22:31 +0100
commit0ca2e48ee8449439a6e0a4ca0652a4ec07031ad3 (patch)
tree4efa663af3c6e80869db9d62c3edb6d7c64d77db /.github
parentfbdc078fa60c2c34a7f5078846902538d162fbee (diff)
downloadzsh-0ca2e48ee8449439a6e0a4ca0652a4ec07031ad3.tar.gz
zsh-0ca2e48ee8449439a6e0a4ca0652a4ec07031ad3.tar.bz2
zsh-0ca2e48ee8449439a6e0a4ca0652a4ec07031ad3.zip
ci(project): fix `gh pr view` call to use ohmyzsh repository
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/project.yml10
1 files 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
}