Refactor WebSocket Message Handling: Centralized Dispatch, Type Safety, and Optimized Routing #222
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: Bot | |
| on: | |
| issues: | |
| types: [opened, reopened] | |
| pull_request: | |
| types: [opened, reopened] | |
| jobs: | |
| assign-security-issue: | |
| if: ${{ github.event_name == 'issues' }} | |
| name: Assign Security Label | |
| env: | |
| repo: ${{ github.head_ref }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Assign Security Label | |
| if: ${{ contains(github.event.issue.title, 'security')}} | |
| env: | |
| GH_TOKEN: ${{ secrets.PARALLELS_WORKFLOW_PAT }} | |
| run: | | |
| gh issue edit ${{ github.event.issue.number }} --add-label "security" | |
| assign-security-pr: | |
| if: ${{ github.event_name == 'pull_request' }} | |
| name: Assign Security Label | |
| env: | |
| repo: ${{ github.head_ref }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Assign Security Label | |
| if: ${{ github.event.pull_request.draft == false && contains(github.event.pull_request.title, 'security')}} | |
| env: | |
| GH_TOKEN: ${{ secrets.PARALLELS_WORKFLOW_PAT }} | |
| run: | | |
| gh pr edit ${{ github.event.number }} --add-label "security" | |
| assign-triage-pr: | |
| if: ${{ github.event_name == 'pull_request' && github.event.pull_request.author_association != 'COLLABORATOR' && !startsWith(github.event.pull_request, 'BUMP') && !startsWith(github.event.pull_request, 'Bump') }} | |
| name: Assign Triage Label | |
| env: | |
| repo: ${{ github.head_ref }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: git checkout | |
| uses: actions/checkout@v4 | |
| - name: I | |
| run: | | |
| echo ${{ github.event_name }} | |
| echo ${{ github.event.sender.id }} | |
| echo ${{ github.event.pull_request.author_association }} | |
| - name: Assign Triage Label | |
| if: ${{ github.event.pull_request.draft == false }} | |
| env: | |
| GH_TOKEN: ${{ secrets.PARALLELS_WORKFLOW_PAT }} | |
| run: | | |
| gh pr edit ${{ github.event.number }} --add-label "triage" | |
| assign-community-pr: | |
| if: ${{ github.event_name == 'pull_request' && github.event.pull_request.author_association != 'COLLABORATOR' && !startsWith(github.event.pull_request, 'BUMP') && !startsWith(github.event.pull_request, 'Bump') }} | |
| name: Assign Community Label | |
| env: | |
| repo: ${{ github.head_ref }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: git checkout | |
| uses: actions/checkout@v4 | |
| - name: Assign Community Label | |
| if: ${{ github.event.pull_request.draft == false }} | |
| env: | |
| GH_TOKEN: ${{ secrets.PARALLELS_WORKFLOW_PAT }} | |
| run: | | |
| gh pr edit ${{ github.event.number }} --add-label "community" |