Comments (1)
Here is what I use now for input.json file. It can't be changed to README.md. Finding related files with each change can be tricky assuming there can be cases that not all the files get updated. Then there should be a recursive search to find the file. This functionality will be only useful for the viewer.
function get_commit_history(member, forkName, name){
var dates = [];
var inputFileHistory = "https://api.github.com/repos/" + member + "/" + forkName + "/commits?path=" + name + "/input.json";
var inputHistoryString = UrlFetchApp.fetch(inputFileHistory).getContentText();
var inputHistoryData = JSON.parse(inputHistoryString);
// collect all dates
for (d = 0; d < inputHistoryData.length; d++){
var commit = inputHistoryData[d];
// adding milliseconds to date > http://stackoverflow.com/questions/6683872/why-does-my-date-object-in-google-apps-script-return-nan
var dt = Date.parse(commit.commit.committer.date.replace("Z", ".000Z"));
var dtt = new Date(dt);
dates.push(dtt);
}
// sort list of dates
dates.sort();
return dates
}
from hydra.
Related Issues (20)
- Fix sorting by
- Update Wiki for Dynamo
- Dynamo 3D Preview Capture HOT 1
- Dynamo 3D Preview Capture
- Dynamo/Grasshopper Organization HOT 2
- Dynamo Customizer to Hydra HOT 3
- Add sort by most discussed (or something similar based on comments)
- connection to DynamoWorks HOT 2
- BUG: List of Hydras Not Updating HOT 6
- replaceState changed the history
- Rewrite the back-end to be more stable and handle more hits HOT 3
- Link comments to Ladybug Tools forum
- Not all examples are being displayed for a given fork HOT 1
- change full update to only parsing the updated forks
- Creating another Hydrashare HOT 6
- JSON Dump Error
- hydrashare.github.io not loading HOT 1
- Runtime Error: expected string got NoneType HOT 1
- Brittany Benson
- conexwise.com
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hydra.