remy / mit-license

Hosted MIT License with details controlled through this repo

Home Page:mit-license.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

POST API doesn't work

Richienb opened this issue · comments

An error is thrown here:

mit-license/routes/post.js

Lines 100 to 113 in ce12c0a

await Promise.all([
github.repos.createOrUpdateFileContents({
owner: 'remy',
repo: 'mit-license',
path: `users/${id}.json`,
message: `Automated creation of user ${id}.`,
content: toBase64(JSON.stringify(userData, 0, 2)),
committer: {
name: 'MIT License Bot',
email: 'remy@leftlogic.com',
},
}),
writeJsonFile(path.join(directoryName, '..', 'users', `${id}.json`), userData, {indent: undefined}),
])

@remy Check if your personal access token still works. Otherwise, it might be an API change.