Releases
Provides methods for interacting with Releases in the Sentry API.
Table of Contents
-
Methods
- create(orgSlugprojectSlugbodycallback)
- createFile(orgSlugprojectSlugversionformDatacallback)
- delete(orgSlugprojectSlugversioncallback)
- deleteFile(orgSlugprojectSlugversionfileIdcallback)
- files(orgSlugprojectSlugversioncallback)
- get(orgSlugprojectSlugversioncallback)
- getFile(orgSlugprojectSlugversionfileIDcallback)
- update(orgSlugprojectSlugversionbodycallback)
- updateFile(orgSlugprojectSlugversionfileIdbodycallback)
Constructor
Releases
-
client
Parameters:
-
client
Client
Methods
create
-
orgSlug
-
projectSlug
-
body
-
callback
Create a new release.
Parameters:
-
orgSlug
StringOrganization slug.
-
projectSlug
StringProject slug.
-
body
Object-
version
StringA version identifier for this release. Can be a version number, a commit hash etc.
-
ref
StringAan optional commit reference. This is useful if a tagged version has been provided.
-
url
StringA URL that points to the release. This can be the path to an online interface to the sourcecode for instance.
-
dateStarted
DateAn optional date that indicates when the release process started.
-
dateReleased
DateAn optional date that indicates when the release went live. If not provided the current time is assumed.
-
-
callback
Function
Returns:
createFile
-
orgSlug
-
projectSlug
-
version
-
formData
-
callback
Upload a new file.
Parameters:
-
orgSlug
StringOrganization slug.
-
projectSlug
StringProject slug.
-
version
StringRelease version.
-
formData
Object-
name
StringThe name (full path) of the file.
-
file
FileThe multipart encoded file.
-
header
StringThis parameter can be supplied multiple times to attach headers to the file. Each header is a string in the format key:value. For instance it can be used to define a content type.
-
-
callback
Function
Returns:
delete
-
orgSlug
-
projectSlug
-
version
-
callback
Delete a release.
Parameters:
-
orgSlug
StringOrganization slug.
-
projectSlug
StringProject slug.
-
version
StringRelease version.
-
callback
Function
Returns:
deleteFile
-
orgSlug
-
projectSlug
-
version
-
fileId
-
callback
Delete a file.
Parameters:
-
orgSlug
StringOrganization slug.
-
projectSlug
StringProject slug.
-
version
StringRelease version.
-
fileId
StringThe ID of the file to delete.
-
callback
Function
Returns:
files
-
orgSlug
-
projectSlug
-
version
-
callback
List all files.
Parameters:
-
orgSlug
StringOrganization slug.
-
projectSlug
StringProject slug.
-
version
StringRelease version.
-
callback
Function
Returns:
get
-
orgSlug
-
projectSlug
-
version
-
callback
Retrieve a release.
Parameters:
-
orgSlug
StringOrganization slug.
-
projectSlug
StringProject slug.
-
version
StringRelease version.
-
callback
Function
Returns:
getFile
-
orgSlug
-
projectSlug
-
version
-
fileID
-
callback
Retrieve a file.
Parameters:
-
orgSlug
StringOrganization slug.
-
projectSlug
StringProject slug.
-
version
StringRelease version.
-
fileID
StringFile ID.
-
callback
Function
Returns:
update
-
orgSlug
-
projectSlug
-
version
-
body
-
callback
Update a release.
Parameters:
-
orgSlug
StringOrganization slug.
-
projectSlug
StringProject slug.
-
version
StringRelease version.
-
body
Object-
ref
StringAan optional commit reference. This is useful if a tagged version has been provided.
-
url
StringA URL that points to the release. This can be the path to an online interface to the sourcecode for instance.
-
dateStarted
DateAn optional date that indicates when the release process started.
-
dateReleased
DateAn optional date that indicates when the release went live. If not provided the current time is assumed.
-
-
callback
Function
Returns:
updateFile
-
orgSlug
-
projectSlug
-
version
-
fileId
-
body
-
callback
Update a file.
Parameters:
-
orgSlug
StringOrganization slug.
-
projectSlug
StringProject slug.
-
version
StringRelease version.
-
fileId
StringThe ID of the file to update.
-
body
Object-
name
StringThe new name of the file.
-
-
callback
Function