Skip to content

Commit

Permalink
fix github file creation payload
Browse files Browse the repository at this point in the history
  • Loading branch information
mose committed Feb 13, 2018
1 parent 18e5218 commit 038efa0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/github.coffee
Expand Up @@ -15,6 +15,7 @@ moment = require 'moment-timezone'
querystring = require 'querystring'
util = require 'util'
Promise = require 'bluebird'
base64 = require('js-base64').Base64
octokit = require('@octokit/rest')()

class Github
Expand All @@ -37,10 +38,10 @@ class Github
)
octokit.repos.createFile({
owner: 'octokit',
repo: 'rest.js',
path: 'blah.txt',
message: 'blah blah',
content: 'YmxlZXAgYmxvb3A='
repo: @repo,
path: filepath,
message: 'Meetbot minutes',
content: base64.encode(text)
})


Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -22,6 +22,7 @@
"dependencies": {
"@octokit/rest": "^14.0.9",
"bluebird": "^3.5.1",
"js-base64": "^2.4.3",
"moment": "^2.20.1",
"moment-timezone": "^0.5.14"
},
Expand Down

0 comments on commit 038efa0

Please sign in to comment.