danger / peril

☢️ Serious and immediate danger.
https://danger.systems
MIT License
460 stars 58 forks source link

Expose GitHub GraphQL API? #453

Open ashfurrow opened 5 years ago

ashfurrow commented 5 years ago

Hey! So we were building a new feature for Artsy's Peril use and wanted to use GitHub's GraphQL api. danger.github.api returns an octokit/rest.js instance, but I'm wondering if Peril could expose an octokit/graphql.js instance as well? Or is this maybe already exposed, but I can't see it? A workaround exists but getting first-party support would be awesome.

If this seems like a worthwhile feature, I'd be down to work on it 👍

orta commented 5 years ago

This isn't really a peril-level abstraction, it's a danger one - regardless I could see danger supporting that for sure.

Looks like they share their dependencies anyway 👍

ashfurrow commented 5 years ago

Ah right, of course! Okay cool, I'll dig into that tomorrow at Peer Lab 👍