I hereby claim:
- I am benwinding on github.
- I am benwinding (https://keybase.io/benwinding) on keybase.
- I have a public key whose fingerprint is FCA9 AF47 6706 5323 F1E5 B2CB 7321 6BD2 7ABD 8A6F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Run on your repositories page (github.com/$USERNAME/?tab=repositories), while logged in
getRepoId = (repoName) => fetch('https://github.com/benwinding/' + repoName)
.then(res => res.text())
.then(resText => {
const repoId = /content="repository\:([0-9]*)"/g.exec(resText)[1];
// THIS TOKEN NEEDS TO BE CHOSEN BETTER, WORKS ON SOME
const authToken = resText.split(/name="authenticity_token" value="([\w\/=]*)"/g).filter(t => t.endsWith('=='));
console.log({ repoName, repoId, authToken })