Skip to content

Backend: Detekt Custom Import Rule #7500

Backend: Detekt Custom Import Rule

Backend: Detekt Custom Import Rule #7500

# Execution context: base branch code (pull_request_target)
name: Check PR Dependencies
on:
pull_request_target:
types: [ opened, edited, closed, reopened, synchronize ]
permissions:
contents: read
pull-requests: write
issues: write
jobs:
check-dependencies:
runs-on: ubuntu-latest
# 511310721 is the Repository ID for SkyHanni
if: ${{ github.repository_id == '511310721' }}
steps:
- name: Check out the repository
uses: actions/checkout@v7
with:
# Avoid treating the trusted merge commit as fork code on merged PRs.
ref: ${{ github.event.pull_request.base.ref }}
persist-credentials: false
- name: Evaluate dependency PRs
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
MODE: dependencies
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_STATE: ${{ github.event.pull_request.state }}
PR_MERGED: ${{ github.event.pull_request.merged }}
PR_ACTION: ${{ github.event.action }}
run: kotlinc -script .github/scripts/pr_review.main.kts