v2
This commit is contained in:
5
.github/workflows/issue.yml
vendored
5
.github/workflows/issue.yml
vendored
@@ -2,11 +2,6 @@ name: Issue
|
||||
on:
|
||||
issues:
|
||||
types: [opened]
|
||||
inputs:
|
||||
token:
|
||||
description: 'The GitHub token'
|
||||
required: false
|
||||
default: ${{ github.token }}
|
||||
jobs:
|
||||
Issue:
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
@@ -56,9 +56,9 @@ for (const image of images) {
|
||||
//});
|
||||
|
||||
console.log(github.context);
|
||||
const token = core.getInput("token");
|
||||
//const token = core.getInput("token");
|
||||
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({
|
||||
owner: 'cirosantilli',
|
||||
repo: 'china-dictatorship',
|
||||
|
||||
Reference in New Issue
Block a user