Skip to content

fix(sync): preserve source and foreign files during atomic copy #1

fix(sync): preserve source and foreign files during atomic copy

fix(sync): preserve source and foreign files during atomic copy #1

Workflow file for this run

name: 'Auto-assign PRs'

Check warning on line 1 in .github/workflows/auto-assign.yml

View workflow run for this annotation

GitHub Actions / Auto-assign PRs

Workflow execution policy warning (evaluate mode)

On November 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
types: [opened]
permissions:
pull-requests: write
issues: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
assign:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/github-script@v7
with:
script: |
const owner = context.repo.owner;
const repo = context.repo.repo;
const pr_number = context.payload.pull_request.number;
// Get repo owner (first admin)
const { data: repoData } = await github.rest.repos.get({ owner, repo });
const repoOwner = repoData.owner.login;
await github.rest.issues.addAssignees({
owner,
repo,
issue_number: pr_number,
assignees: [repoOwner]
});