diff --git a/.github/workflows/ai-policy.yml b/.github/workflows/ai-policy.yml index acc8d30b9bf1e..e5c8d7d6520c8 100644 --- a/.github/workflows/ai-policy.yml +++ b/.github/workflows/ai-policy.yml @@ -139,9 +139,9 @@ jobs: env: GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT }} run: | - gh pr edit "${{ github.event.pull_request.number }}" \ - --repo "${{ github.repository }}" \ - --add-label "AI assisted" + gh api "repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels" \ + --method POST \ + -f "labels[]=AI assisted" echo "Added 'AI assisted' label to PR #${{ github.event.pull_request.number }}" - name: Fail on coding-agent Signed-off-by