improve(mobile): replace fixed delay with retry mechanism for USB transport readiness #711
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: PR Author Assignment | |
| on: | |
| pull_request: | |
| types: [opened] | |
| jobs: | |
| assign-author: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Add PR Author as Assignee | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const { owner, repo } = context.repo; | |
| const pr_number = context.issue.number; | |
| // Get PR details | |
| const { data: pr } = await github.rest.pulls.get({ | |
| owner, | |
| repo, | |
| pull_number: pr_number | |
| }); | |
| // Add author as assignee | |
| await github.rest.issues.addAssignees({ | |
| owner, | |
| repo, | |
| issue_number: pr_number, | |
| assignees: [pr.user.login] | |
| }); |