Skip to content

Refactor process_utility to reduce reliance on compressed_chunk_id #4545

Refactor process_utility to reduce reliance on compressed_chunk_id

Refactor process_utility to reduce reliance on compressed_chunk_id #4545

Workflow file for this run

name: Assign PR to author and reviewers
# This workflow runs on the pull_request_target event:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
#
# So the secrets are accessible even if the PR was opened from an external
# repository. This is done because the GitHub API key needs to be accessed
# to modify the PRs.
#
# NOTE: Only API calls should be made in the actions defined here. The
# committed code should _NOT_ be touched in any case.
"on":
pull_request_target:
types: [ opened, reopened, ready_for_review ]
jobs:
assign-pr:
name: Assign PR to author
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign@bdd7688cbf9e6d5683f02f8c7d8ae4062a254b6d # v3.0.2
ask-review:
name: Run pull-review
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft && github.event.pull_request.base.ref == 'main' }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run pull-review with docker
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
PULL_REQUEST_NUMBER : ${{ github.event.pull_request.number }}
shell: bash
run: |
PR_URL="https://github.com/${OWNER}/${REPO}/pull/${PULL_REQUEST_NUMBER}"
docker run ghcr.io/imsky/pull-review@sha256:80d099c92a3259322900b2d2d75ced5d628d1a182f917682c8fc411a750d650a "$PR_URL" --github-token "${GITHUB_TOKEN}"