This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Setup: | |
// Create a sheet with the first sheet called 'TrafficData'. Cell Values are: | |
// A1: Repo Traffic Collector | |
// A3: Organization B3: <org value> | |
// A4: Repo B4: <repo name> | |
// A7: Date, B7: Views, C7: Uniques, D7: Weeknumber | |
//Tools -> Script Editor | |
//Add this script, fill in your GitHub TOKEN (https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) | |
//Run the onOpen script - you will be warned it is insecure, but accept anyway. This should add a menu item to your sheet | |
//Use the Custom GitHub menu to run the getRepoTrafficStats function |