Created
April 25, 2019 13:17
-
-
Save esouthren/0ff65fa1ba686761d7a4259d4d17d630 to your computer and use it in GitHub Desktop.
Transposit GitHub Connector Example
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
(params) => { | |
let tree = api.run("this.list_commits", {owner: params.owner, repo: params.repo}); | |
var commit_count = tree.length; | |
var random_commit = tree[Math.floor(Math.random() * commit_count)]; | |
return random_commit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment