Skip to content

Commit

Permalink
ci: 👷 update author assigning workflow (#137)
Browse files Browse the repository at this point in the history
This just matches the workflow with what we do in Seedcase, using the
built-in GitHub CLI rather than some else's workflow.
  • Loading branch information
lwjohnst86 authored Sep 19, 2024
1 parent 31614cc commit dedc251
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/assign-author-to-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Assign author to their PR

on:
pull_request:
types:
- reopened
- opened

permissions:
pull-requests: write

jobs:
assign-author-to-pr:
runs-on: ubuntu-latest
steps:
- name: Assign PR to author
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 }}

16 changes: 0 additions & 16 deletions .github/workflows/auto-author-assign.yaml

This file was deleted.

0 comments on commit dedc251

Please sign in to comment.