mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 10:22:00 +00:00
ci(project): fix gh pr view
call to use ohmyzsh repository
This commit is contained in:
parent
fbdc078fa6
commit
0ca2e48ee8
1 changed files with 6 additions and 4 deletions
10
.github/workflows/project.yml
vendored
10
.github/workflows/project.yml
vendored
|
@ -47,21 +47,23 @@ jobs:
|
||||||
ISSUE_OR_PR_ID: ${{ github.event.issue.node_id || github.event.pull_request.node_id }}
|
ISSUE_OR_PR_ID: ${{ github.event.issue.node_id || github.event.pull_request.node_id }}
|
||||||
run: |
|
run: |
|
||||||
item_id="$(gh api graphql -f query='
|
item_id="$(gh api graphql -f query='
|
||||||
mutation($project: ID!, $item: ID!) {
|
mutation($project: ID!, $content: ID!) {
|
||||||
addProjectNextItem(input: {projectId: $project, contentId: $item}) {
|
addProjectNextItem(input: {projectId: $project, contentId: $content}) {
|
||||||
projectNextItem {
|
projectNextItem {
|
||||||
id
|
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
|
echo "ITEM_ID=$item_id" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Classify Pull Request
|
- name: Classify Pull Request
|
||||||
if: github.event_name == 'pull_request_target'
|
if: github.event_name == 'pull_request_target'
|
||||||
run: |
|
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\// {
|
||||||
plugins[$2] = 1
|
plugins[$2] = 1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue