Skip to content

Commit

Permalink
action.cjs: degeneralize
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed May 24, 2024
1 parent 86acfc7 commit e9a241a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
8 changes: 6 additions & 2 deletions action.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,12 @@ module.exports = async ({ github, context, inputs, actionPath, core }) => {
// add label step
await addLabel({ context, github, label: 'needs-security-review' })
// add assignees step
const { default: addAssignees } = await import(`${actionPath}/src/steps/addAssignees.js`)
await addAssignees({ context, github, assignees: assigneesAfterVal })
await github.rest.issues.addAssignees({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
assigneesAfterVal
})
}

const { default: sendSlackMessage } = await import(`${actionPath}/src/steps/sendSlackMessage.js`)
Expand Down
12 changes: 0 additions & 12 deletions src/steps/addAssignees.js

This file was deleted.

0 comments on commit e9a241a

Please sign in to comment.