Skip to content

Commit

Permalink
chore(sync): 🔨 created local '.github/workflows/assign-pr-to-creator.…
Browse files Browse the repository at this point in the history
…yml' from remote '.github/workflows/assign-pr-to-creator.yml'
  • Loading branch information
lwjohnst86 committed Sep 13, 2024
1 parent 377e675 commit f5ceb99
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/assign-pr-to-creator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Assign PR to creator

on:
pull_request:
types:
- reopened
- opened

permissions:
pull-requests: write

jobs:
assign-pr-to-creator:
name: Assign PR to creator
runs-on: ubuntu-latest
steps:
- name: Assign PR to creator
if: ${{ github.event_name == 'pull_request' }}
run: |
gh pr edit $PR --add-assignee $AUTHOR
env:
AUTHOR: ${{ github.event.pull_request.user.login }}
PR: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f5ceb99

Please sign in to comment.