Fragen\GitHub_Updater\Rest_Update::parse_github_webhook PHP Method

parse_github_webhook() private method

Parses GitHub webhook data.
private parse_github_webhook ( array $request_data ) : array
$request_data array
return array $response
    private function parse_github_webhook($request_data)
    {
        $response = array();
        $response['hash'] = $request_data['after'];
        $response['branch'] = array_pop(explode('/', $request_data['ref']));
        return $response;
    }