Fix REDIS_URL and feed titles
This commit is contained in:
parent
a6ef74fa12
commit
fa53580d0c
4
app.rb
4
app.rb
|
@ -17,7 +17,7 @@ class MyApp < Sinatra::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
configure do
|
configure do
|
||||||
set :r, Redis.new
|
set :r, Redis.new(url: ENV.fetch('REDIS_URL'))
|
||||||
set :client, Octokit::Client.new(
|
set :client, Octokit::Client.new(
|
||||||
client_id: ENV.fetch('GITHUB_CLIENT_ID'),
|
client_id: ENV.fetch('GITHUB_CLIENT_ID'),
|
||||||
client_secret: ENV.fetch('GITHUB_CLIENT_SECRET'),
|
client_secret: ENV.fetch('GITHUB_CLIENT_SECRET'),
|
||||||
|
@ -70,7 +70,7 @@ class MyApp < Sinatra::Base
|
||||||
@owner_name = user
|
@owner_name = user
|
||||||
end
|
end
|
||||||
repos.each do |r|
|
repos.each do |r|
|
||||||
title = "Release notes from #{r}"
|
title = "#{r} Release Notes"
|
||||||
html_url = "https://github.com/#{r}/releases"
|
html_url = "https://github.com/#{r}/releases"
|
||||||
rss_url = "#{html_url}.atom"
|
rss_url = "#{html_url}.atom"
|
||||||
opml.add_outline(
|
opml.add_outline(
|
||||||
|
|
Loading…
Reference in New Issue