diff --git a/.github/workflows/main-issue.yml b/.github/workflows/main-issue.yml index 3c7ce50..c760c03 100644 --- a/.github/workflows/main-issue.yml +++ b/.github/workflows/main-issue.yml @@ -18,6 +18,7 @@ jobs: const repo = context.repo.repo; const owner = context.repo.owner; const pr = context.payload.pull_request; + const reviewers = pr.requested_reviewers.map(reviewer => reviewer.login) // Create the main issue const newIssue = await github.rest.issues.create({ @@ -25,8 +26,9 @@ jobs: repo: repo, title: pr.title, body: "This is the main issue tracking #" + pr.number + " \n\n" + - "Please add labels indicating the release versions eg. 'version/v0' \n" + - "Please add comments for user issues which this issue addresses. \n" + + "Please add labels indicating the release versions eg. 'version/v0' \n\n" + + "Please add comments for user issues which this issue addresses. \n\n" + "Description copied from PR: \n" + pr.body, - labels: ['internal/main'] + labels: ['internal/main'], + assignees: reviewers }); diff --git a/aspell_custom.txt b/aspell_custom.txt index f8d4fb8..264427b 100644 --- a/aspell_custom.txt +++ b/aspell_custom.txt @@ -12,3 +12,4 @@ tflint gorelease repo pr +assignees