Skip to content

feat(SankeyChart): group small nodes into an expandable "Other" node #4900

feat(SankeyChart): group small nodes into an expandable "Other" node

feat(SankeyChart): group small nodes into an expandable "Other" node #4900

name: Agentic Repo / Slash Auto-Resolve PR Comments
on:
pull_request_review:
types: [submitted]
concurrency:
# One resolution job per PR at a time to avoid conflicting edits.
group: ${{ github.repository }}-${{ github.event.pull_request.number }}-slash-resolve-comments
cancel-in-progress: false
jobs:
resolve-comments:
name: Resolve PR review comments via Slash
# Allow human reviewers and rzp-slash-public[bot] reviews through; exclude
# all other bots to prevent feedback loops and avoid wasted CI runs.
if: |
github.event.review.user.type != 'Bot' || github.actor == 'rzp-slash-public[bot]'
runs-on: ubuntu-latest # nosemgrep: non-self-hosted-runner
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
sparse-checkout: |
.github/scripts
CODEOWNERS
- name: Check if reviewer is CODEOWNER or PR author
id: auth-check
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACTOR: ${{ github.actor }}
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
run: node .github/scripts/slash-resolve-comments/check-auth.js
- name: Check auto-resolve run count
id: run-count-check
if: steps.auth-check.outputs.authorized == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
REVIEW_ID: ${{ github.event.review.id }}
GITHUB_WORKFLOW_REF: ${{ github.workflow_ref }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: node .github/scripts/slash-resolve-comments/check-resolve-run-count.js
- name: Fetch review comments and trigger Slash
if: steps.auth-check.outputs.authorized == 'true' && steps.run-count-check.outputs.allowed == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLASH_API_USERNAME: ${{ secrets.SLASH_API_USERNAME }}
SLASH_API_PASSWORD: ${{ secrets.SLASH_API_PASSWORD }}
SLASH_REPOSITORY_URL: https://github.com/${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
REVIEW_ID: ${{ github.event.review.id }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: node .github/scripts/slash-resolve-comments/resolve-review-comments.js