Skip to content

Commit

Permalink
Add auto assign script
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokyeom committed Aug 20, 2024
1 parent a4e45e3 commit 6c948aa
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Auto Assign PR Author

on:
pull_request:
types: [opened]

jobs:
auto-assign:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install GitHub CLI
run: |
sudo apt-get update
sudo apt-get install -y gh
- name: Auto-assign PR author
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh auth setup-git
gh pr edit ${{ github.event.pull_request.number }} --add-assignee ${{ github.event.pull_request.user.login }}

0 comments on commit 6c948aa

Please sign in to comment.