SEP-1862: Retire the inventory browser surface, mothball SystemFacts #903
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 PR author | |
| on: | |
| pull_request: | |
| types: [opened] | |
| permissions: | |
| pull-requests: write | |
| jobs: | |
| assign-author: | |
| # Skip if already assigned, fork PRs, and bot authors (e.g. Dependabot cannot be assigned with GITHUB_TOKEN). | |
| if: >- | |
| !github.event.pull_request.assignees[0] && | |
| github.event.pull_request.head.repo.full_name == github.repository && | |
| github.event.pull_request.user.type != 'Bot' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Assign PR to author | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| gh pr edit "${{ github.event.pull_request.number }}" \ | |
| --repo "${{ github.repository }}" \ | |
| --add-assignee "${{ github.event.pull_request.user.login }}" |