algorithmic modeling for Rhino
i've just made this component :
a component that request github server to get the last commit's comment for a specific file
i've put on my github several scripts and i wanted to check if i use the last one on my computer.
When i commit on github i use comment's like "v0.5 blabla".
so when in grasshopper and i input the name of my script i get the last comment made
Args:
github [STR] : name of the github repository to request USERNAME/REPO_NAME
script [STR]: name of the script you re looking for
check [BOOL]: do the check?
authorization [BOOL] : does it need authentification?
token [STR]: the token for authorization
Returns:
version: the commit's comment
Limitation :
API rate limit can be exceeded, but here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.
https://developer.github.com/v3/#rate-limiting
It doesn't use the search api of github, maybe can be optimized?
Tags:
Hi,
Very nice tool. I have just started to use git like workflows for all of my work and finding it very useful.
In my experience of using grasshopper, I was very loose with my naming conventions especially when doing things quickly, so I was thinking that it would be nice to be able to version control my scripts and use the git tools for rolling back, branching etc. Are you using it for something similar? Have you done any development on the grasshopper component since November last year? Where is the source code?
Thanks,
John
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by