Skip to content

Commit

Permalink
Use special syntax to refer to GH action event data (#1948)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock authored Apr 17, 2024
1 parent d07d9c1 commit 22ae132
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/auto_assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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]
});
}

0 comments on commit 22ae132

Please sign in to comment.