File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ We'll demonstrate fetching Pull Request comments by creating a Ruby script using
2929The following code should help you get started accessing comments from a Pull Request
3030using Octokit.rb:
3131
32+ #!ruby
3233 require 'octokit'
3334
3435 # !!! DO NOT EVER USE HARD-CODED VALUES IN A REAL APP !!!
@@ -51,11 +52,12 @@ the comments to fetch information about each one.
5152## Pull Request Comments on a Line
5253
5354Within the diff view, you can start a discussion on a particular aspect of a singular
54- change made within the Pull Request. These comments occur on the individual lines
55+ change made within the Pull Request. These comments occur on the individual lines
5556within a changed file. The endpoint URL for this discussion comes from [ the Pull Request Review API] [ PR Review API ] .
5657
5758The following code fetches all the Pull Request comments made on files, given a single Pull Request number:
5859
60+ #!ruby
5961 require 'octokit'
6062
6163 # !!! DO NOT EVER USE HARD-CODED VALUES IN A REAL APP !!!
@@ -86,6 +88,7 @@ they make use of [the commit comment API][commit comment API].
8688To retrieve the comments on a commit, you'll want to use the SHA1 of the commit.
8789In other words, you won't use any identifier related to the Pull Request. Here's an example:
8890
91+ #!ruby
8992 require 'octokit'
9093
9194 # !!! DO NOT EVER USE HARD-CODED VALUES IN A REAL APP !!!
You can’t perform that action at this time.
0 commit comments