Class: Pronto::Bitbucket
Instance Method Summary
collapse
Methods inherited from Client
#env_pull_id, #initialize
Constructor Details
This class inherits a constructor from Pronto::Client
Instance Method Details
#approve_pull_request ⇒ Object
35
36
37
|
# File 'lib/pronto/bitbucket.rb', line 35
def approve_pull_request
client.approve_pull_request(slug, pull_id)
end
|
11
12
13
14
15
16
17
|
# File 'lib/pronto/bitbucket.rb', line 11
def (sha)
@comment_cache[sha.to_s] ||= begin
client.(slug, sha).map do ||
Comment.new(sha, .content, .filename, .line_to)
end
end
end
|
19
20
21
22
23
|
# File 'lib/pronto/bitbucket.rb', line 19
def ()
@config.logger.log("Creating commit comment on #{.sha}")
client.(slug, .sha, .body,
.path, .position)
end
|
25
26
27
28
29
30
31
32
33
|
# File 'lib/pronto/bitbucket.rb', line 25
def ()
if .path && .position
@config.logger.log("Creating pull request comment on #{pull_id}")
client.(slug, pull_id, .body,
.path, .position)
else
()
end
end
|
3
4
5
6
7
8
9
|
# File 'lib/pronto/bitbucket.rb', line 3
def (sha)
@comment_cache["#{pull_id}/#{sha}"] ||= begin
client.(slug, pull_id).map do ||
Comment.new(sha, .content, .filename, .line_to)
end
end
end
|
#unapprove_pull_request ⇒ Object
39
40
41
|
# File 'lib/pronto/bitbucket.rb', line 39
def unapprove_pull_request
client.unapprove_pull_request(slug, pull_id)
end
|