- Source:
Type Definitions
-
CommitJSON
-
Describes a single, specific commit.
Type:
- Object
- Source:
Properties:
Name Type Description idstring An identifier for the commit. For Git repositories, this is the SHA-1 hash.
displayIdstring An identifier for the commit suitable for displaying in the UI.
-
CommitRangeJSON
-
Describes a range of commits, with a topographical beginning (since) and end (until).
Type:
- Object
- Source:
Properties:
Name Type Description sinceRevisionJSON.CommitJSON The first revision of the range of commits.
untilRevisionJSON.CommitJSON The last revision of the range of commits.
-
FileChangeJSON
-
Metadata about a change to a file.
Type:
- Object
- Source:
Properties:
Name Type Argument Description repositoryJSON.RepositoryJSON The repository containing the file that was changed.
commitRangeJSON.CommitRangeJSON The since revision and the until revision of the file change.
pathJSON.PathJSON The path to the changed content.
srcPathJSON.PathJSON <optional>
The path at which the changed content originated, if different from
path.diffObject <optional>
The diff of the file change. The structure matches the structure for diffs
retrieved via the REST API. This is only provided for handling diffs as
activity items for a pull request. For other usages, diffs must be retrieved
from the server. -
ParticipantJSON
-
Describes a pull request participant in Stash.
Type:
- Object
- Source:
Properties:
Name Type Description approvedboolean Whether this participant has approved the pull request.
rolestring "AUTHOR", "REVIEWER", or "PARTICIPANT"
userJSON.StashUserJSON The user participating in the pull request.
-
PathJSON
-
Describe a Path in Stash
Type:
- Object
- Source:
Properties:
Name Type Description componentsArray.<string> an array of path components
extensionstring file extension, if any (and an empty string if there isn't)
namestring the file name
-
ProjectJSON
-
Describes a project in Stash.
Type:
- Object
- Source:
Properties:
Name Type Description idnumber An identifier for the project.
namestring The name of the project.
keystring The key of the project.
publicboolean True if the project is publicly accessible.
avatarUrlstring A URL to the project's avatar.
-
PullRequestJSON
-
Describes a pull request in Stash.
Type:
- Object
- Source:
Properties:
Name Type Description authorJSON.ParticipantJSON The author of the pull request.
createdDatestring The date the pull request was first created, in ISO-8601 form.
descriptionstring The user-provided description for this pull request.
descriptionAsHtmlstring The rendered HTML result for the user-provided description.
idnumber The ID of the pull request, unique within its repository.
fromRefJSON.RefJSON The ref describing the source of this pull request.
participantsArray.<JSON.ParticipantJSON> Non-reviewer participants in the pull request.
reviewersArray.<JSON.ParticipantJSON> Explicitly listed reviewers of the pull request.
titlestring The title of the pull request.
toRefJSON.RefJSON The ref describing the target/destination of this pull request.
updatedDatestring The date the pull request was last updated, in ISO-8601 form.
versionnumber A number describing the version of this pull request, updated when the pull request is changed.
-
RefJSON
-
Describes a ref in Stash (e.g. a Git branch or tag).
Type:
- Object
- Source:
Properties:
Name Type Description displayIdstring A user-facing id for the ref. No guarantees are made about the format of the output.
idstring A unique identifier for the ref, within its repository.
isDefaultboolean Whether this is the default ref for the repository.
hashstring Tags can also have a hash property when they aren't simply pointers to a commit. It points to the rich tag object
latestCommitstring The hash for the most recent commit on the branch.
repositoryJSON.RepositoryJSON The repository this ref is associated with.
typeObject Contains an id property with value 'tag', 'branch', or 'commit', describing the kind of ref this is.
-
RepositoryJSON
-
Describes a repository in Stash.
Type:
- Object
- Source:
Properties:
Name Type Description idnumber An identifier for the repository.
namestring The name of the repository.
slugstring The slug of the repository which is a URL-friendly variant of its name.
projectJSON.ProjectJSON The project the repository belongs to.
scmIdstring The identifier of the repository's SCM.
publicboolean True if the repository is publicly accessible.
cloneUrlstring The repository's HTTP clone URL.
-
StashUserJSON
-
Describes a user in Stash.
Type:
- Object
- Source:
Properties:
Name Type Argument Description activeboolean True if the user is an active user.
avatarUrlstring <optional>
A URL where the user's avatar can be retrieved. This property's availability depends on the caller providing a requested avatarSize when the user data is requested.
displayNamestring The user's human-readable name. E.g. Adam Ahmed
emailAddressstring The user's email address.
idnumber A numeric unique ID for the user.
namestring The login/username for the user.
slugstring A URL-safe id for the user. Use this when constructing URLs for user information.
typestring Currently "NORMAL" or "SERVICE", where "SERVICE" users are not backed by a Crowd entity and cannot authenticate via the UI.