There is two kinds of comments:
CommitComment
are made on a commit page.IssueComment
are made on an issue or pull request page.PullComment
are made on the diff associated to a pull request.github :: Comment :: defaultinit
github :: Comment :: updated_at
Last update time as String (if any).github :: Comment :: updated_at=
Last update time as String (if any).github $ Comment :: core_serialize_to
Actual serialization ofself
to serializer
github $ Comment :: 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.
serialization :: Serializable :: core_serialize_to
Actual serialization ofself
to serializer
github :: Comment :: defaultinit
core :: Object :: 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 arraycore :: Object :: output_class_name
Display class name on stdout (debug only).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
# A Github comment
#
# There is two kinds of comments:
#
# * `CommitComment` are made on a commit page.
# * `IssueComment` are made on an issue or pull request page.
# * `PullComment` are made on the diff associated to a pull request.
abstract class Comment
serialize
# Identifier of this comment.
var id: Int is writable
# User that made this comment.
var user: User is writable
# Creation time as String.
var created_at: String is writable
# Last update time as String (if any).
var updated_at: nullable String is writable
# Comment body text.
var body: String is writable
# Does the comment contain an acknowledgement (+1)
fun is_ack: Bool do
return body.has("\\+1\\b".to_re) or body.has(":+1:") or body.has(":shipit:")
end
end
lib/github/api.nit:816,1--845,3