-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub API is undefined #456
Comments
Just looked through the latest issues that didn't show up during my search of |
@steprescott The latest docker image is outdated: last update was 7 months ago. But a fix was merged recently. It should work if you build from source code. |
I think there were docker hub token leaks so it got disconnected and I'm not sure if they've been updated for the mono-repo either (because I have never used them) |
@orta is there possibility of adding DockerHub back into your release pipeline? I can make my own dockerfile but it might be useful for others to adopt Danger on different PAS. |
It's hooked back up, but it's failing - I'll leave getting that working to someone who uses it: https://cloud.docker.com/repository/registry-1.docker.io/dangersystems/peril/builds/9629ec84-80b9-426a-9882-53ab923282ea |
I can build the image locally. From the link above I can't see any logs as to why it failed. Happy to fix it but with
|
Docker autobuilds are now working after #463 |
Now the image has been updated I can use the GitHub API. Thanks. |
I am self hosting Peril on a Google App Engine instance using the latest DockerHub image.
My
dangerfile.ts
is called according to the events set in mysettings.json
file howeverdanger.github.api
isundefined
when that file is ran by danger.It's my understanding, from reading the comments, that
danger.github.api
should return ready to use instance ofoctokit/rest
.Danger can successfully post comments on my private repo so I feel that I have set Danger up correctly. I have attempted both with the utils function as well as via the api directly.
Utils example
Result
API example
Result
App Engine logs
Latest log first
Any advice on how to interact with
danger.github.api
or if there are setup steps that I am missing would be a great help.Similar issue
danger/danger-js#780
The text was updated successfully, but these errors were encountered: