Should be accessed from GithubAPI::get_diff_comment
.
github :: PullComment :: commit_id=
Commit referenced by this comment.github :: PullComment :: original_commit_id=
Original commit id.github :: PullComment :: original_position
Original position in the diff.github :: PullComment :: original_position=
Original position in the diff.github :: PullComment :: position=
Position of the comment on the file.github :: PullComment :: pull_request_url
Link to the pull request on API.github :: PullComment :: pull_request_url=
Link to the pull request on API.github $ PullComment :: SELF
Type of this instance, automatically specialized in every classgithub $ PullComment :: core_serialize_to
Actual serialization ofself
to serializer
github $ PullComment :: from_deserializer
Create an instance of this class from thedeserializer
serialization :: Serializable :: accept_json_serializer
Refinable service to customize the serialization of this class to JSONserialization :: Serializable :: accept_msgpack_attribute_counter
Hook to customize the behavior of theAttributeCounter
serialization :: Serializable :: accept_msgpack_serializer
Hook to customize the serialization of this class to MessagePackserialization :: Serializable :: add_to_bundle
Called by[]=
to dynamically choose the appropriate method according
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
github :: PullComment :: commit_id=
Commit referenced by this comment.serialization :: Serializable :: core_serialize_to
Actual serialization ofself
to serializer
core :: Object :: defaultinit
github :: Comment :: defaultinit
serialization :: Serializable :: from_deserializer
Create an instance of this class from thedeserializer
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
serialization :: Serializable :: msgpack_extra_array_items
Hook to request a larger than usual metadata arraygithub :: PullComment :: original_commit_id=
Original commit id.github :: PullComment :: original_position
Original position in the diff.github :: PullComment :: original_position=
Original position in the diff.core :: Object :: output_class_name
Display class name on stdout (debug only).github :: PullComment :: position=
Position of the comment on the file.github :: PullComment :: pull_request_url
Link to the pull request on API.github :: PullComment :: pull_request_url=
Link to the pull request on API.serialization :: Serializable :: serialize_msgpack
Serializeself
to MessagePack bytes
serialization :: Serializable :: serialize_to
Serializeself
to serializer
serialization :: Serializable :: serialize_to_json
Serializeself
to JSON
serialization :: Serializable :: to_pretty_json
Serializeself
to plain pretty JSON
github :: Comment :: updated_at
Last update time as String (if any).github :: Comment :: updated_at=
Last update time as String (if any).Serializer::serialize
# Comments made on Github pull request diffs.
#
# Should be accessed from `GithubAPI::get_diff_comment`.
#
# See <https://developer.github.com/v3/pulls/comments/>.
class PullComment
super Comment
serialize
# Pull request that contains `self`.
fun pull_number: Int do return pull_request_url.split("/").last.to_i
# Link to the pull request on API.
var pull_request_url: String is writable
# Diff hunk.
var diff_hunk: String is writable
# Path of commented file.
var path: String is writable
# Position of the comment on the file.
var position: nullable Int is writable
# Original position in the diff.
var original_position: Int is writable
# Commit referenced by this comment.
var commit_id: String is writable
# Original commit id.
var original_commit_id: String is writable
end
lib/github/api.nit:930,1--962,3