pingHook method

Future<bool> pingHook(
  1. String org,
  2. int id
)

Pings the organization hook.

API docs: https://developer.github.com/v3/orgs/hooks/#ping-a-hook

Implementation

Future<bool> pingHook(String org, int id) {
  return github
      .request('POST', '/orgs/$org/hooks/$id/pings')
      .then((response) => response.statusCode == 204);
}