-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GitHub Actions instead of Heroku
- Loading branch information
1 parent
5aaf193
commit bb8eccb
Showing
10 changed files
with
74 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# frozen_string_literal: true | ||
# # frozen_string_literal: true | ||
|
||
require './server' | ||
run SealApp | ||
# require './server' | ||
# run SealApp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
require "sinatra" | ||
require "./lib/seal" | ||
require "./lib/github_fetcher" | ||
require "./lib/message_builder" | ||
require "./lib/slack_poster" | ||
require "./lib/team_builder" | ||
# require "sinatra" | ||
# require "./lib/seal" | ||
# require "./lib/github_fetcher" | ||
# require "./lib/message_builder" | ||
# require "./lib/slack_poster" | ||
# require "./lib/team_builder" | ||
|
||
class SealApp < Sinatra::Base | ||
get "/" do | ||
"Hello Seal" | ||
end | ||
# class SealApp < Sinatra::Base | ||
# get "/" do | ||
# "Hello Seal" | ||
# end | ||
|
||
post "/bark/:team_name/:secret" do | ||
if params[:secret] == ENV["SEAL_SECRET"] | ||
team = TeamBuilder.build(env: ENV, team_name: params[:team_name]) | ||
Seal.new(team).bark | ||
"Seal received message with #{params[:team_name]} team name" | ||
end | ||
end | ||
# post "/bark/:team_name/:secret" do | ||
# if params[:secret] == ENV["SEAL_SECRET"] | ||
# team = TeamBuilder.build(env: ENV, team_name: params[:team_name]) | ||
# Seal.new(team).bark | ||
# "Seal received message with #{params[:team_name]} team name" | ||
# end | ||
# end | ||
|
||
post "/bark-quotes/:team_name/:secret" do | ||
if params[:secret] == ENV["SEAL_SECRET"] | ||
team = TeamBuilder.build(env: ENV, team_name: params[:team_name]) | ||
Seal.new(team).bark(mode: "quotes") | ||
"Seal received message with #{params[:team_name]} team name for quotes" | ||
end | ||
end | ||
end | ||
# post "/bark-quotes/:team_name/:secret" do | ||
# if params[:secret] == ENV["SEAL_SECRET"] | ||
# team = TeamBuilder.build(env: ENV, team_name: params[:team_name]) | ||
# Seal.new(team).bark(mode: "quotes") | ||
# "Seal received message with #{params[:team_name]} team name for quotes" | ||
# end | ||
# end | ||
# end |