com.atlassian.stash.commit.CommitService |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a general comment on the specified commit in the specified repository.
| |||||||||||
Adds a line comment to a commit diff in the specified repository.
| |||||||||||
Adds a file-level comment to a commit diff in the specified repository.
| |||||||||||
Adds a reply to a comment.
| |||||||||||
Deletes a comment.
| |||||||||||
Retrieves a the specified comment by its
ID . | |||||||||||
Streams diff output for the specified
paths at the specified changeset. | |||||||||||
Traverse the graph of commits in topological order, optionally supplying included commits to start from
and excluded commits to ignore.
| |||||||||||
Removes the current user as a watcher for the specified commit, which will prevent further notifications from
being dispatched to that user.
| |||||||||||
Updates the
text for the specified comment. | |||||||||||
Adds the current user as a watcher for the specified commit.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.stash.history.CommonHistoryService
|
Adds a general comment on the specified commit in the specified repository.
repository | the ID of the repository containing the commit |
---|---|
commitId | the ID of the commit within the repository |
commentText | the comment text |
Adds a line comment to a commit diff in the specified repository.
The request'stoHash
should generally be omitted. If it is provided,
it must match the commitId
. For merge commits, which have a diff for each parent, the desired diff can
be selected by providing the parent's ID in the fromHash
. If the
fromHash
is null
, the first parent will be assumed.repository | the ID of the repository containing the commit |
---|---|
commitId | the ID of the commit within the repository |
request | a request describing the comment to create |
ArgumentValidationException | if the request contains invalid data
|
---|
Adds a file-level comment to a commit diff in the specified repository.
The request'stoHash
should generally be omitted. If it is provided,
it must match the commitId
. For merge commits, which have a diff for each parent, the desired diff can
be selected by providing the parent's ID in the fromHash
. If the
fromHash
is null
, the first parent will be assumed.repository | the ID of the repository containing the commit |
---|---|
commitId | the ID of the commit within the repository |
request | a request describing the comment to create |
ArgumentValidationException | if the request contains invalid data
|
---|
Adds a reply to a comment.
repository | the ID of the repository containing the commit |
---|---|
commitId | the ID of the commit within the repository |
commentId | the ID of the comment to reply to |
commentText | the comment text |
NoSuchCommentException | if no comment exists with the specified ID |
---|
Deletes a comment.
repository | the ID of the repository containing the commit |
---|---|
commitId | the ID of the commit within the repository |
commentId | the ID of the comment to delete |
commentVersion | the expected version of the comment |
true
if the comment existed (and thus was deleted); otherwise false
CommentDeletionException | if the comment has replies |
---|---|
CommentOutOfDateException | if the version of the specified comment does not match the expected version |
Finds anchors
for file
and
line
comments on the specified path in the commit.
For merge commits, which have a diff for each parent, the parent ID can also be provided to
select the diff to retrieve comments from.
repository | the ID of the repository containing the commit |
---|---|
commitId | the ID of the commit within the repository |
parentId | the ID of the parent, used to select the desired diff for merge commits. If the parent ID is not provided the commit's first parent is automatically used if it has one |
path | the path of the file for which the anchors should be retrieved |
path
in the commit
Retrieves a the specified comment by its ID
.
repository | the ID of the repository containing the commit |
---|---|
commitId | the ID of the commit within the repository |
commentId | the ID of the comment to retrieve |
NoSuchCommentException | if no comment exists with the specified ID |
---|
Streams diff output for the specified paths
at the specified changeset.
request | the repository, starting and terminating changsets, paths to filter |
---|---|
callback | the callback for receiving the diff details |
Traverse the graph of commits in topological order, optionally supplying included commits to start from and excluded commits to ignore.
request | the traversal request describing the repository and the commits to include and exclude |
---|---|
callback | the callback to receive the traversed commits |
Removes the current user as a watcher for the specified commit, which will prevent further notifications from being dispatched to that user.
repository | the ID of the repository containing the commit |
---|---|
commitId | the ID of the commit within the repository |
true
if the watcher existed (and thus was removed); otherwise false
Updates the text
for the specified comment.
repository | the ID of the repository containing the commit |
---|---|
commitId | the ID of the commit within the repository |
commentId | the ID of the comment to update |
commentVersion | the expected version of the comment |
commentText | the new text for the comment |
CommentOutOfDateException | if the version of the specified comment does not match the expected version |
---|---|
NoSuchCommentException | if no comment exists with the specified ID |
Adds the current user as a watcher for the specified commit. Watchers receive notifications when new comments are added to the commit.
repository | the ID of the repository containing the commit |
---|---|
commitId | the ID of the commit within the repository |