Skip to content

Commit

Permalink
Automatically assigned author to PR (#2231)
Browse files Browse the repository at this point in the history
  • Loading branch information
smmr-dn authored Sep 16, 2024
1 parent 8203d0b commit cbd8aa1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,23 @@ jobs:
- run: pnpm install
- run: pnpm audit

assign-author:
name: Assign PR author
runs-on: ubuntu-latest

steps:
- name: Assign author using github-script
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.addAssignees({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
assignees: [context.actor]
})
build:
name: Build and lint packages
needs: install
Expand Down

0 comments on commit cbd8aa1

Please sign in to comment.