Skip to content

How to make custom requests using ocktokit (for istance add specific query) #575

@fabriziogianni7

Description

@fabriziogianni7

https://github.com/orgs/octokit/discussions/39
https://stackoverflow.com/questions/75813165/how-to-make-custom-requests-using-ocktokit-for-istance-add-specific-query

Hey guys I've been looking for this for a while but I don't understand how it works, please answer here on in stackoverflow if you want, here the description:

In my project, we use ocktokit to make requests to github. it's all good, except that I need to make custom queries on issues, for istance, I want to add:

-label:bot:ReadyToSign -label:Application:AddressNotValid

how should I do?
I tried using ockokit/request API and using something like that:

 let allGithubIssues = await  octokit.request(`GET /repos/{owner}/{repo}/issues?q=-label:bot:ReadyToSign`, {
      owner: "my-repo-owner",
      repo: "my-repo",
    });

but is not working.

I would like also to search for text into the comments or body of issues, something like

in:body or in:comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🔥 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions