I'm developing a probot application to prevent disclosure of sensitive information on github issues.
When I edit out the sensitive information from the github-issue, the information can still be viewed on the post's edit history (revision history) where you can then manually delete them from the UI, as shown: Github-issues-revision-history and deletion
I've been using https://octokit.github.io/rest.js/v18 but there doesn't seem to be a clear endpoint to access said revisions.
Tried various approaches such as
var promise=context.github.issues.listEvents({owner:"james", repo:"test-repo", issue_number:56})
promise.then((value) => {
console.log(value);
})
but I can't seem to be able to find where those revisions are saved. Where exactly are those post revisions saved so I can delete them using my probot application?