Skip to content

Commit

Permalink
Skip repo if we abuse markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
j0k3r committed Mar 7, 2017
1 parent edab60e commit e095af8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AppBundle/Consumer/SyncVersions.php
Expand Up @@ -162,7 +162,9 @@ private function doSyncVersions(Repo $repo)
$newRelease['message'] = $this->client->api('markdown')->render($newRelease['message'], 'gfm', $repo->getFullName());
} catch (\Exception $e) {
$this->logger->warning('<error>Failed to parse markdown: ' . $e->getMessage() . '</error>');
continue;

// it is usually a problem from the abuse detection mechanism, to avoid multiple call, we just skip to the next repo
return $newVersion;
}
}

Expand Down

0 comments on commit e095af8

Please sign in to comment.