Skip to content

How to list warehouse issues #373

@ghost

Description

I don't know much about JS. This is my code. I want to get the issues list of the warehouse

<script type="module">
  import {request} from "https://cdn.skypack.dev/@octokit/request";
</script>

<script>
  const listIssue = async () => {
    const result = await request("GET /repos/{owner}/{repo}/issues", {
      owner: "awnawnawn",
      repo: "awnawnawn.github.io",
    });
    console.log(`${result.data.length} repos found.`);
  }

  listIssue();
</script>

How should I write it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: SupportAny questions, information, or general needs around the SDK or GitHub APIs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions