From 22ae132c56eaf1457e6d410935081ffcdbb6cad8 Mon Sep 17 00:00:00 2001 From: Vinicius Stock Date: Wed, 17 Apr 2024 10:42:45 -0400 Subject: [PATCH] Use special syntax to refer to GH action event data (#1948) --- .github/workflows/auto_assign.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto_assign.yml b/.github/workflows/auto_assign.yml index c971534ac..2d9ee28b3 100644 --- a/.github/workflows/auto_assign.yml +++ b/.github/workflows/auto_assign.yml @@ -29,9 +29,9 @@ jobs: "egiurleo", "KaanOzkan" ]; - const issue = github.event.issue; + const author = "${{ github.event.issue.user.login }}"; - if (!fullTeam.includes(issue.user.login)) { + if (!fullTeam.includes(author)) { const dxReviewers = [ "andyw8", "vinistock", @@ -43,7 +43,7 @@ jobs: await github.rest.issues.addAssignees({ owner: context.repo.owner, repo: context.repo.repo, - issue_number: issue.number, + issue_number: ${{ github.event.issue.number }}, assignees: [assignee] }); }