consthttps=require('https');constissue= { title :'제목이요!', body :'내용이요'};constreq=https.request({ host:'github.com', method:'POST', port:443, path:'/api/v3/repos/{organization}/{project}/issues', headers: {'Accept':'application/vnd.github.symmetra-preview+json','Authorization':'token {token}' }}, res => {let data ='';res.on('data', chunk => data += chunk);res.on('end', () =>console.log(JSON.parse(data)));});req.write(JSON.stringify(issue));req.on('error', e =>console.log('error', e));req.end();