mirror of
https://github.com/danbee/micropub.git
synced 2025-03-04 08:59:13 +00:00
Rename token
This commit is contained in:
parent
308cd75207
commit
37215f9b82
@ -2,14 +2,14 @@ require "github_api"
|
|||||||
|
|
||||||
module Micropub
|
module Micropub
|
||||||
class Github
|
class Github
|
||||||
API_TOKEN = ENV["GITHUB_API_TOKEN"]
|
TOKEN = ENV["GITHUB_TOKEN"]
|
||||||
USER = ENV["GITHUB_USER"]
|
USER = ENV["GITHUB_USER"]
|
||||||
REPO = ENV["GITHUB_REPO"]
|
REPO = ENV["GITHUB_REPO"]
|
||||||
|
|
||||||
CONTENT_PATH = "/content/blog"
|
CONTENT_PATH = "/content/blog"
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@github = ::Github.new(oauth_token: API_TOKEN)
|
@github = ::Github.new(oauth_token: TOKEN)
|
||||||
end
|
end
|
||||||
|
|
||||||
def post!(post)
|
def post!(post)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user