comments

package
v7.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommentExpandOptionsValues = commentExpandOptionsValuesType{

	None: "none",

	Reactions: "reactions",

	RenderedText:     "renderedText",
	RenderedTextOnly: "renderedTextOnly",

	Children: "children",

	All: "all",
}
View Source
var CommentFormatValues = commentFormatValuesType{
	Markdown: "markdown",
	Html:     "html",
}
View Source
var CommentMentionTypeValues = commentMentionTypeValuesType{

	Person: "person",

	WorkItem: "workItem",

	PullRequest: "pullRequest",
}
View Source
var CommentReactionTypeValues = commentReactionTypeValuesType{
	Like:     "like",
	Dislike:  "dislike",
	Heart:    "heart",
	Hooray:   "hooray",
	Smile:    "smile",
	Confused: "confused",
}
View Source
var CommentSortOrderValues = commentSortOrderValuesType{

	Asc: "asc",

	Desc: "desc",
}
View Source
var CommentStateValues = commentStateValuesType{
	Active:   "active",
	Resolved: "resolved",
	Closed:   "closed",
}

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Url *string `json:"url,omitempty"`
	// The id of the artifact this comment belongs to
	ArtifactId *string `json:"artifactId,omitempty"`
	// IdentityRef of the creator of the comment.
	CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
	// The creation date of the comment.
	CreatedDate *azuredevops.Time `json:"createdDate,omitempty"`
	// The id assigned to the comment.
	Id *int `json:"id,omitempty"`
	// Indicates if the comment has been deleted.
	IsDeleted *bool `json:"isDeleted,omitempty"`
	// The mentions of the comment.
	Mentions *[]CommentMention `json:"mentions,omitempty"`
	// IdentityRef of the user who last modified the comment.
	ModifiedBy *webapi.IdentityRef `json:"modifiedBy,omitempty"`
	// The last modification date of the comment.
	ModifiedDate *azuredevops.Time `json:"modifiedDate,omitempty"`
	// The comment id of the parent comment, if any
	ParentId *int `json:"parentId,omitempty"`
	// The reactions on the comment.
	Reactions *[]CommentReaction `json:"reactions,omitempty"`
	// The rendered text of the comment
	RenderedText *string `json:"renderedText,omitempty"`
	// Replies for this comment
	Replies *CommentList `json:"replies,omitempty"`
	// Indicates the current state of the comment
	State *CommentState `json:"state,omitempty"`
	// The plaintext/markdown version of the comment
	Text *string `json:"text,omitempty"`
	// The current version of the comment
	Version *int `json:"version,omitempty"`
}

Comment on an artifact like Work Item or Wiki, etc.

type CommentAttachment

type CommentAttachment struct {
	Url *string `json:"url,omitempty"`
	// IdentityRef of the creator of the attachment.
	CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
	// The creation date of the attachment.
	CreatedDate *azuredevops.Time `json:"createdDate,omitempty"`
	// Unique Id of the attachment.
	Id *uuid.UUID `json:"id,omitempty"`
}

Represents an attachment to a comment.

type CommentCreateParameters

type CommentCreateParameters struct {
	// Optional CommentId of the parent in order to add a reply for an existing comment
	ParentId *int    `json:"parentId,omitempty"`
	Text     *string `json:"text,omitempty"`
}

Represents a request to create a work item comment.

type CommentExpandOptions

type CommentExpandOptions string

[Flags] Specifies the additional data retrieval options for comments.

type CommentFormat

type CommentFormat string

Format of the comment. Ex. Markdown, Html.

type CommentList

type CommentList struct {
	Url *string `json:"url,omitempty"`
	// List of comments in the current batch.
	Comments *[]Comment `json:"comments,omitempty"`
	// A string token that can be used to retrieving next page of comments if available. Otherwise null.
	ContinuationToken *string `json:"continuationToken,omitempty"`
	// The count of comments in the current batch.
	Count *int `json:"count,omitempty"`
	// Uri to the next page of comments if it is available. Otherwise null.
	NextPage *string `json:"nextPage,omitempty"`
	// Total count of comments on a work item.
	TotalCount *int `json:"totalCount,omitempty"`
}

Represents a list of comments.

type CommentMention

type CommentMention struct {
	Url *string `json:"url,omitempty"`
	// Id of the artifact this mention belongs to
	ArtifactId *string `json:"artifactId,omitempty"`
	// Id of the comment associated with this mention. Nullable to support legacy mentions which can potentially have null commentId
	CommentId *int `json:"commentId,omitempty"`
	// Value of the mentioned artifact. Expected Value varies by CommentMentionType: Person:         VSID associated with the identity Work Item:      ID of the work item Pull Request:   ID of the Pull Request
	MentionedArtifact *string `json:"mentionedArtifact,omitempty"`
	// The context which represent where this mentioned was parsed from
	Type *CommentMentionType `json:"type,omitempty"`
}

Contains information about various artifacts mentioned in the comment

type CommentMentionType

type CommentMentionType string

type CommentReaction

type CommentReaction struct {
	Url *string `json:"url,omitempty"`
	// The id of the comment this reaction belongs to.
	CommentId *int `json:"commentId,omitempty"`
	// Total number of reactions for the CommentReactionType.
	Count *int `json:"count,omitempty"`
	// Flag to indicate if the current user has engaged on this particular EngagementType (e.g. if they liked the associated comment).
	IsCurrentUserEngaged *bool `json:"isCurrentUserEngaged,omitempty"`
	// Type of the reaction.
	Type *CommentReactionType `json:"type,omitempty"`
}

Contains information about comment reaction for a particular reaction type.

type CommentReactionType

type CommentReactionType string

Represents different reaction types for a comment

type CommentResourceReference

type CommentResourceReference struct {
	Url *string `json:"url,omitempty"`
}

Base class for comment resource references

type CommentSortOrder

type CommentSortOrder string

type CommentState

type CommentState string

Represents the possible comment states.

type CommentUpdateParameters

type CommentUpdateParameters struct {
	// Set the current state of the comment
	State *CommentState `json:"state,omitempty"`
	// The updated text of the comment
	Text *string `json:"text,omitempty"`
}

Represents a request to update a comment.

type CommentVersion

type CommentVersion struct {
	Url *string `json:"url,omitempty"`
	// IdentityRef of the creator of the comment.
	CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
	// The creation date of the comment.
	CreatedDate *azuredevops.Time `json:"createdDate,omitempty"`
	// The id assigned to the comment.
	Id *int `json:"id,omitempty"`
	// Indicates if the comment has been deleted at this version.
	IsDeleted *bool `json:"isDeleted,omitempty"`
	// IdentityRef of the user who modified the comment at this version.
	ModifiedBy *webapi.IdentityRef `json:"modifiedBy,omitempty"`
	// The modification date of the comment for this version.
	ModifiedDate *azuredevops.Time `json:"modifiedDate,omitempty"`
	// The rendered content of the comment at this version.
	RenderedText *string `json:"renderedText,omitempty"`
	// Indicates the current state of the comment
	State *CommentState `json:"state,omitempty"`
	// The text of the comment at this version.
	Text *string `json:"text,omitempty"`
	// The version number.
	Version *int `json:"version,omitempty"`
}

Represents a specific version of a comment on a work item.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL