diff --git a/index.js b/index.js index d567f90..d2eec77 100644 --- a/index.js +++ b/index.js @@ -4,18 +4,23 @@ const core = require('@actions/core') const { GitHub, context } = require('@actions/github') const main = async () => { - const token = core.getInput('github-token'); - const lock_reason = core.getInput('lock-reason'); - const number = core.getInput('number'); + const token = core.getInput('github-token'); + const lock_reason = core.getInput('lock-reason'); + const number = core.getInput('number'); - const octokit = new GitHub(token); + const octokit = new GitHub(token); - await octokit.issues.lock({ - lock_reason: lock_reason, - ...context.repo, - ...context.owner, - issue_number: number, - }) + await octokit.issues.lock({ + lock_reason: lock_reason, + ...context.repo, + ...context.owner, + issue_number: number, + mediaType: { + previews: [ + 'sailor-v' + ] + } + }) } main().catch(err => core.setFailed(err.message))