Update Node.js to v24.20.0 #26790
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: "Code review" | |
| on: | |
| pull_request: | |
| types: [opened, reopened, ready_for_review] | |
| branches: | |
| - main | |
| - "[0-9]+.[0-9]+.x" | |
| issue_comment: | |
| types: [created] | |
| permissions: {} | |
| jobs: | |
| review: | |
| if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && (github.event.pull_request.draft == false || !contains(github.event.pull_request.labels.*.name, 'no-draft-review'))) }} | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| checks: write | |
| id-token: write # for dd-sts | |
| uses: DataDog/code-review-action/.github/workflows/code-review.yml@b4f43b4ac7a96b9ecc3484d77aa04ad41c07b420 # v1.3.0 | |
| with: | |
| provider: codex | |
| # Review PRs when they are opened or transition out of draft. Use on_demand for issue_comments | |
| trigger_mode: ${{ github.event_name == 'pull_request' && 'always' || 'on_demand' }} | |
| # Root-level files apply to every PR. | |
| # Sub-directory files apply only when the PR touches files under that prefix. | |
| prompt_file_pattern: "**/codereview_guideline.md" | |
| review_event: COMMENT_ONLY | |
| telemetry_enabled: true | |
| datadog_sts_policy: datadog-agent-code-review-telemetry | |
| secrets: | |
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | |
| gemini_api_key: ${{ secrets.GEMINI_API_KEY }} | |
| openai_api_key: ${{ secrets.OPENAI_API_KEY }} |