diff --git a/.github/workflows/sync-pull-request.yml b/.github/workflows/sync-pull-request.yml index b11db06701..4419054eca 100644 --- a/.github/workflows/sync-pull-request.yml +++ b/.github/workflows/sync-pull-request.yml @@ -28,7 +28,11 @@ jobs: - name: Sync PR env: GITHUB_TOKEN: ${{ secrets.SYNC_GITHUB_CLI_TOKEN }} - run: gh pr create --title "$(gh pr view $GITHUB_REF_NAME --json title --jq .title)" --body "$(gh pr view $GITHUB_REF_NAME --json body --jq .body)" --repo arduino/docs-content + run: | + gh pr create --title "$(gh pr view $GITHUB_REF_NAME --json title --jq .title)" --body "$(gh pr view $GITHUB_REF_NAME --json body --jq .body)" --repo arduino/docs-content + gh pr edit --add-label "arduino" --add-assignee "$(gh pr view $GITHUB_REF_NAME --json assignees --jq .assignees[].login)" + gh pr edit --add-reviewer "$(gh pr view $GITHUB_REF_NAME --json reviewRequests --jq .reviewRequests[].login)" + for LABEL in $(gh pr view $GITHUB_REF_NAME --json labels --jq .labels[].name); do gh pr edit --add-label $LABEL --repo arduino/docs-content; done - name: Close PR env: