File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,23 @@ const core = require('@actions/core')
44const { GitHub, context } = require ( '@actions/github' )
55
66const main = async ( ) => {
7- const token = core . getInput ( 'github-token' ) ;
8- const lock_reason = core . getInput ( 'lock-reason' ) ;
9- const number = core . getInput ( 'number' ) ;
7+ const token = core . getInput ( 'github-token' ) ;
8+ const lock_reason = core . getInput ( 'lock-reason' ) ;
9+ const number = core . getInput ( 'number' ) ;
1010
11- const octokit = new GitHub ( token ) ;
11+ const octokit = new GitHub ( token ) ;
1212
13- await octokit . issues . lock ( {
14- lock_reason : lock_reason ,
15- ...context . repo ,
16- ...context . owner ,
17- issue_number : number ,
18- } )
13+ await octokit . issues . lock ( {
14+ lock_reason : lock_reason ,
15+ ...context . repo ,
16+ ...context . owner ,
17+ issue_number : number ,
18+ mediaType : {
19+ previews : [
20+ 'sailor-v'
21+ ]
22+ }
23+ } )
1924}
2025
2126main ( ) . catch ( err => core . setFailed ( err . message ) )
You can’t perform that action at this time.
0 commit comments