class PullRequest
Attributes
comment[RW]
content[RW]
from_fork[RW]
head_sha[RW]
id[RW]
target_head_sha[RW]
wip[RW]
Public Class Methods
new(content)
click to toggle source
# File lib/prophet/pull_request.rb, line 11 def initialize(content) @content = content @id = content.number @head_sha = content.head.sha @from_fork = content.head.attrs[:repo].attrs[:fork] if content.head.attrs[:repo] @wip = content.labels.map(&:name).map(&:downcase).include? 'wip' end