Skip to content

Instantly share code, notes, and snippets.

@jshawl jshawl/
Last active Aug 29, 2015

What would you like to do?

Which forks have updates?

You can use the GitHub API.

Get forks of a repo

repo = getJSON(
forksURL = repo.forks_url;
forks = getJSON(forksURL);

Get last updated time from forks

for ( fork in forks ) {
  if ( fork.updated_time > fork.created_time ) {
    notify( 'The fork - ' + repo.html_url + 'has been updated since it was forked')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.