Skip to content

Commit 9470ca6

Browse files
committed
Syntax highlighting for Working with Comments guide.
1 parent 5e6f991 commit 9470ca6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

content/guides/working-with-comments.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ We'll demonstrate fetching Pull Request comments by creating a Ruby script using
2929
The following code should help you get started accessing comments from a Pull Request
3030
using 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

5354
Within 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
5556
within a changed file. The endpoint URL for this discussion comes from [the Pull Request Review API][PR Review API].
5657

5758
The 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].
8688
To retrieve the comments on a commit, you'll want to use the SHA1 of the commit.
8789
In 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 !!!

0 commit comments

Comments
 (0)