Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #57

Open
wants to merge 1 commit into
base: Project
Choose a base branch
from
Open

Update README.md #57

wants to merge 1 commit into from

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