How to use the issues function from @octokit/rest

Find comprehensive JavaScript @octokit/rest.issues code examples handpicked from public code repositorys.

29
30
31
32
33
34
35
        repo,
        number: prNumber,
    });
    const commentId = data.find(comment => comment.body.includes(reportId)).id;

    return octokit.issues.editComment({ owner, repo, comment_id: commentId, body });
};
fork icon0
star icon3
watch icon4

+ 3 other calls in file

37
38
39
40
41
42
43
44
45
46
            return data
        })
}

function queryRepoIssues(repo) {
    return octokit.issues.getForRepo({ owner: organisation, repo: repo.name })
        .then(result => toRepoIssues(result, repo))
}

function toRepoIssues(result, repo) {
fork icon2
star icon0
watch icon2