fix(sync): preserve source and foreign files during atomic copy #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Auto-assign PRs' | ||
|
Check warning on line 1 in .github/workflows/auto-assign.yml
|
||
| 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] | ||
| }); | ||