Skip to content

Conversation

@calbearox
Copy link

@calbearox calbearox commented Apr 18, 2022

const { Octokit } = require("@octokit/action");

const octokit = new Octokit(@calbearox)eventPayload = require(process.env.GITHUB_EVENT_PATH);
const repositoryId = eventPayload.repository.node_id;

const response = await octokit.graphql(
mutation($repositoryId:ID!, $title:String!) { createIssue(input:{repositoryId: $repositoryId, title: $title}) { issue { number } } },
{
repositoryId,
title: "My test issue",
}
);

const GeneratorFunction = Object.getPrototypeOf(function*(){}).constructor;
const g = new GeneratorFunction('a', 'yield a * 2');
const iterator = g(10);
console.log(iterator.next().value); // 20
@calbearox calbearox closed this by deleting the head repository Nov 28, 2022
@calbearox calbearox reopened this Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant