Skip to content

Commit 27a84d6

Browse files
google-labs-jules[bot]MikDal002
authored andcommitted
fix: Remove redundant context declaration in github action script
This change removes the redundant `const { context } = require('@actions/github');` line from the github action script. The `context` object is globally available in the script's environment, so this declaration was unnecessary and caused a `SyntaxError`.
1 parent de14aa8 commit 27a84d6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

.github/workflows/pr_assignee_check.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
- uses: actions/github-script@v6
1212
with:
1313
script: |
14-
const { context } = require('@actions/github');
1514
const assignees = context.payload.pull_request.assignees;
1615
if (assignees.length === 0) {
1716
core.setFailed('No one is assigned to this pull request.');

0 commit comments

Comments
 (0)