From d2d39beec40d6b6ee8a71f6270f405f2885c50ac Mon Sep 17 00:00:00 2001 From: FredrikOseberg Date: Mon, 9 Dec 2024 15:32:10 +0100 Subject: [PATCH] feat: add reviewers --- .github/workflows/core-feature-alert.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/core-feature-alert.yml b/.github/workflows/core-feature-alert.yml index af6623f59f..00e21a4a9c 100644 --- a/.github/workflows/core-feature-alert.yml +++ b/.github/workflows/core-feature-alert.yml @@ -24,5 +24,17 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.pull_request.number, - body: `@FredrikOseberg, @${prCreator}, core features have been modified in this pull request. Please review!` - }) \ No newline at end of file + body: `@${prCreator}, core features have been modified in this pull request. Please review!` + }) + steps: + - name: Add reviewers to the PR + uses: actions/github-script@v6 + with: + script: | + const reviewers = ['FredrikOseberg']; + github.rest.pulls.requestReviewers({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: context.payload.pull_request.number, + reviewers: reviewers, + }); \ No newline at end of file