[DO NOT MERGE] CI testing purposes - Revert changes to precomputed kNN graph UMAP PR #476
Workflow file for this run
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: Assign PR to Author | |
| on: | |
| pull_request_target: | |
| types: [opened] | |
| permissions: | |
| pull-requests: write # only what we need | |
| contents: read # default least-privilege | |
| jobs: | |
| assign-author: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Assign PR to its author via gh CLI | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| LOGIN: ${{ github.event.pull_request.user.login }} | |
| REPOSITORY: ${{ github.repository }} | |
| run: | | |
| # use gh pr edit to add the PR author as assignee | |
| # fail gracefully if the author cannot be assigned (e.g., not a collaborator) | |
| if gh pr edit "$PR_NUMBER" --add-assignee "$LOGIN" --repo "$REPOSITORY"; then | |
| echo "Successfully assigned PR #$PR_NUMBER to $LOGIN" | |
| else | |
| echo "Could not assign PR #$PR_NUMBER to $LOGIN (user may not be a collaborator)" | |
| echo "This is expected for bot accounts or external contributors without write access" | |
| fi |