Module: Pghub::IssueTitle

Defined in:
lib/pghub/issue_title.rb,
lib/pghub/issue_title/version.rb

Constant Summary collapse

VERSION =
"1.1.0"

Class Method Summary collapse

Class Method Details

.post(issue_path, input) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/pghub/issue_title.rb', line 9

def post(issue_path, input)
  issue_client = GithubAPI.new(issue_path_from(input, issue_path))
  content = issue_client.get_title

  comment_client = GithubAPI.new(issue_path)
  comment_client.post(content)
end