Skip to content
Snippets Groups Projects
Commit ea253ceb authored by Ciro Santilli's avatar Ciro Santilli
Browse files

bak

parent dcbe142c
No related branches found
No related tags found
No related merge requests found
...@@ -40,15 +40,14 @@ full_images = [] ...@@ -40,15 +40,14 @@ full_images = []
for (const image of images) { for (const image of images) {
full_images.push(`<img src="https://raw.githubusercontent.com/cirosantilli/china-dictatorship-media/master/${image}" width="600">`); full_images.push(`<img src="https://raw.githubusercontent.com/cirosantilli/china-dictatorship-media/master/${image}" width="600">`);
} }
console.error(full_images.join('\n\n'));
try { try {
console.log(github.context); console.log(github.context);
const octokit = new github.getOctokit(process.env.GITHUB_TOKEN); const octokit = new github.getOctokit(process.env.GITHUB_TOKEN);
const new_comment = octokit.issues.createComment({ const new_comment = octokit.issues.createComment({
owner: 'cirosantilli', owner: 'cirosantilli',
repo: context.payload.repository.name, repo: github.context.payload.repository.name,
issue_number: context.payload.pull_request.number, issue_number: github.context.payload.pull_request.number,
body: 'asdf' body: full_images.join('\n\n');
}); });
} catch (error) { } catch (error) {
core.setFailed(error.message); core.setFailed(error.message);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment