protected function getImportedCommits()
    {
        $environment = $this->getEnvironment();
        $slug = $environment['slug'];
        $branch = $environment['branch'];

        $imported = $this->api->get("/api/v1/$slug/$branch");
        if ($imported === false) {
            throw new Exception('Failed to reach API.');
        }

        return json_decode($imported, true);
    }
protected function getImportedCommits()
    {
        $environment = $this->getEnvironment();
        $slug = $environment['slug'];
        $branch = $environment['branch'];

        $imported = $this->api->get("/api/v1/$slug/$branch");
        if ($imported === false) {
            throw new Exception('Failed to reach API.');
        }

        return json_decode($imported, true);
    }
protected function getImportedCommits ( ) { $ environment = $ this -> getEnvironment ( ) ; $ slug = $ environment [ 'slug' ] ; $ branch = $ environment [ 'branch' ] ; $ imported = $ this -> api -> get ( "/api/v1/$slug/$branch" ) ; if ( $ imported === false ) { throw new Exception ( 'Failed to reach API.' ) ; } return json_decode ( $ imported , true ) ; }
Returns array of commit hashes that have already been imported.

@return string[]

@throws Exception
Returns array of commit hashes that have already been imported .