⚡ Optimize PortingBacklog construction by removing unnecessary list allocations #9
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-merge | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, labeled] | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| checks: read | |
| statuses: read | |
| jobs: | |
| auto-merge: | |
| # Skip fork PRs | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| steps: | |
| - name: Wait for CI checks to initialize | |
| run: sleep 300 | |
| - name: Wait for checks to complete | |
| uses: actions/github-script@v7 | |
| id: wait-checks | |
| with: | |
| script: | | |
| const pr = context.payload.pull_request; | |
| const owner = context.repo.owner; | |
| const repo = context.repo.repo; | |
| // Wait up to 5 minutes for checks to complete | |
| for (let i = 0; i < 10; i++) { | |
| await new Promise(r => setTimeout(r, 30000)); | |
| const { data: checkRuns } = await github.rest.checks.listForRef({ | |
| owner, repo, |