1. Get the Reference of the branch you want to commit to and store the SHA for the latest commit (SHA-LATEST-COMMIT)
https://developer.github.com/v3/git/refs/#get-a-reference
const res = getReference( BRANCH );
const baseCommitSHA = res.object.sha;