I have been trying to create a simple Probot app that amongst other things will merge PRs on certain criteria being met. (I am aware prebuilt solutions are available, however not only do they not quite fit my needs, I won't learn anything).
Using context.github.pulls.merge(context.issue())
returns: ERROR probot: Resource not accessible by integration
I have tried replacing context.issue() with the object the docs suggest its looking for. Googling although difficult to find similar issues, suggest its a permission issue, I have double checked the permissions and at one stage given the app every permission.
Things worth noting:
- There are no github actions setup on this repo
- The repo belongs to a testing org, the bot app has access to all repos in the org
- The repo was initially private, but have also tested in public
Any nudge in the right direction will be greatly appreciated.
Thanks