This commit is contained in:
Ciro Santilli
2021-04-16 07:00:06 +00:00
parent 3dde5208fe
commit efb2ff90e0
2 changed files with 2 additions and 7 deletions

View File

@@ -2,11 +2,6 @@ name: Issue
on: on:
issues: issues:
types: [opened] types: [opened]
inputs:
token:
description: 'The GitHub token'
required: false
default: ${{ github.token }}
jobs: jobs:
Issue: Issue:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04

View File

@@ -56,9 +56,9 @@ for (const image of images) {
//}); //});
console.log(github.context); console.log(github.context);
const token = core.getInput("token"); //const token = core.getInput("token");
const pull_request_number = 237; const pull_request_number = 237;
const octokit = new github.getOctokit(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: 'china-dictatorship', repo: 'china-dictatorship',