Edit Issue Not Available With Integration
See original GitHub issueBug Report
Current Behavior
Hello there - I’m like 90% of the way there to having an awesome experience with Probot, but am somewhat confused with why my call to context.github.issues.edit()
is resulting in ERROR event: {"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/v3/issues/#edit-an-issue"}
To be honest, I’m not really sure this is an issue with probot, but I don’t really know where else to turn.
I basically copied and pasted the code from here: https://github.com/probot/attachments/blob/master/index.js#L7
// Your code here
module.exports = robot => {
app.on('issues.opened', async context => {
let params = context.issue({body: "any content here"})
return context.github.issues.edit(params)
}
}
When looking up the documentation, it does that that editing an issue is allowed, so i’m not sure what’s wrong with my code, or if this is a github infrastructure issue, or if it’s a bug somewhere else (which seems unlikely).
Expected behavior/code should get a 200 response,
Environment
- Probot version(s): [e.g. v7.2]
- Node/npm version: [e.g. Node 8/npm 5]
- OS: [e.g. OSX 10.13.4, Windows 10]
Possible Solution
Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Ah, thanks @JasonEtco. This should be solved via: https://github.com/probot/create-probot-app/pull/41, I’ll release a new version of create-probot-app shortly.
I was experiencing a similar issue yesterday, helping @matchai debug a Probot App. We ended up having to enable
Repository metadata: read
- definitely feels buggy.