Conversation
Available PR Commands
See: https://github.com/tahminator/codebloom/wiki/CI-Commands |
| - name: Post /review command | ||
| if: github.event_name == 'pull_request' | ||
| uses: ./.github/composite/send-message | ||
| with: | ||
| prId: ${{ needs.getPRHead.outputs.prId }} | ||
| message: "/review" | ||
| token: ${{ env.GH_PAT }} | ||
|
|
||
| - name: Post /describe command |
Check failure
Code scanning / CodeQL
Checkout of untrusted code in a privileged context Critical
| - name: Post /describe command | ||
| if: github.event_name == 'pull_request' | ||
| uses: ./.github/composite/send-message | ||
| with: | ||
| prId: ${{ needs.getPRHead.outputs.prId }} | ||
| message: "/describe" | ||
| token: ${{ env.GH_PAT }} | ||
|
|
||
| - name: Post /improve command |
Check failure
Code scanning / CodeQL
Checkout of untrusted code in a privileged context Critical
|
/review |
|
/describe |
|
/improve |
|
Preparing PR description... |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
| env: | ||
| PR_ID: ${{ github.event.number || github.event.issue.number }} | ||
| with: | ||
| result-encoding: string | ||
| script: | | ||
| const prId = ${{ github.event.number || github.event.issue.number }}; | ||
| const prId = process.env.PR_ID; | ||
| const { data: pr } = await github.rest.pulls.get({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, |
There was a problem hiding this comment.
Suggestion: Remove the intermediate environment variable PR_ID and directly use the GitHub expression github.event.number || github.event.issue.number within the script for clarity and conciseness. This avoids an unnecessary indirection. [general, importance: 6]
New proposed code:
-env:
- PR_ID: ${{ github.event.number || github.event.issue.number }}
with:
result-encoding: string
script: |
- const prId = process.env.PR_ID;
+ const prId = ${{ github.event.number || github.event.issue.number }};
const { data: pr } = await github.rest.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: parseInt(prId, 10)| - name: Run composite workflow | ||
| if: github.event_name == 'issue_comment' | ||
| uses: ./.github/composite/notion-checks | ||
| id: notion_check | ||
| with: |
There was a problem hiding this comment.
Suggestion: For consistency and to utilize the already determined PR ID, pass needs.getPRHead.outputs.prId to the notion-checks composite workflow instead of re-evaluating the expression. This ensures all steps use the same PR identifier. [general, importance: 7]
New proposed code:
- name: Run composite workflow
if: github.event_name == 'issue_comment'
uses: ./.github/composite/notion-checks
id: notion_check
with:
- PR_ID: ${{ github.event.number || github.event.issue.number }}
+ PR_ID: ${{ needs.getPRHead.outputs.prId }}
801
Description of changes
Checklist before review
Screenshots
Dev
Staging