Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto update repo stats #3

Open
MysterAitch opened this issue Mar 28, 2020 · 1 comment
Open

Auto update repo stats #3

MysterAitch opened this issue Mar 28, 2020 · 1 comment

Comments

@MysterAitch
Copy link
Member

No description provided.

@MysterAitch
Copy link
Member Author

https://api.github.com/repos/javaparser/javaparser

It's easy enough to get the star and fork count from the api -- perhaps this can be used to update the count dynamically.

fetch("https://api.github.com/repos/javaparser/javaparser")
  .then((response) => response.json())
  .then(x => {
	  console.info(x);
	  console.info('stargazers_count', x.stargazers_count);
	  console.info('forks_count', x.forks_count);
  })

@MysterAitch MysterAitch changed the title Update repo stats Auto update repo stats Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant