Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Auto Assign Reviewer

on:
pull_request_target:
types: [opened, reopened, ready_for_review]

permissions:
pull-requests: write

jobs:
assign:
runs-on: ubuntu-latest
steps:
- name: Assign DTTerastar
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
PR: ${{ github.event.pull_request.number }}
AUTHOR: ${{ github.event.pull_request.user.login }}
run: |
gh pr edit "$PR" --add-assignee DTTerastar
if [ "$AUTHOR" != "DTTerastar" ]; then
gh pr edit "$PR" --add-reviewer DTTerastar
fi
Loading