@zerodot/sentry 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -11
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,19 +1,61 @@
|
|
|
1
1
|
# @zerodot/sentry
|
|
2
2
|
|
|
3
|
-
Sentry
|
|
3
|
+
<img src="https://raw.githubusercontent.com/zerodot-io/nodes/main/packages/sentry/sentry.svg" alt="Sentry logo" width="48" height="48">
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Work with issues, projects, and organizations in Sentry. List, get, update, and delete issues, and list and get projects and organizations. Connect with a Sentry auth token. Works with sentry.io and with a self-hosted Sentry.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Install
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
In zerodot, go to **System > Nodes** and install **Sentry**.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
- **Project**: List, Get
|
|
13
|
-
- **Issue**: List, Get, Update, Delete
|
|
11
|
+
Manual: install `@zerodot/sentry` where the web app and the worker run, and add it to `ZERODOT_NODE_PACKAGES`.
|
|
14
12
|
|
|
15
|
-
##
|
|
13
|
+
## Nodes
|
|
16
14
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
### Sentry (`sentry.api`)
|
|
16
|
+
|
|
17
|
+
The node uses the Sentry Web API under `/api/0` of the **Server** URL.
|
|
18
|
+
|
|
19
|
+
- **Organization**: list, get
|
|
20
|
+
- **Project**: list, get
|
|
21
|
+
- **Issue**: list, get, update, delete
|
|
22
|
+
|
|
23
|
+
**Required fields.**
|
|
24
|
+
- Organization get and Project list need **Organization Slug**.
|
|
25
|
+
- Project get and Issue list need **Organization Slug** and **Project Slug**.
|
|
26
|
+
- Issue get, update, and delete need **Issue ID**.
|
|
27
|
+
- Issue update uses **Status** and **Assigned To**. Leave a field empty to keep its current value.
|
|
28
|
+
|
|
29
|
+
**Query.** Issue list sends **Query** to Sentry as the search query. For example, `is:unresolved`. When it is empty, the node sends no query, and Sentry applies its own default.
|
|
30
|
+
|
|
31
|
+
**Limit and Return All.** When **Return All** is off, the node returns at most **Limit** items (default 50, from 1 to 5000). When it is on, the node follows the pagination links of Sentry and returns up to 5000 items. Each request asks for up to 100 items.
|
|
32
|
+
|
|
33
|
+
**Output.** List operations give an array of the items as Sentry returns them. Get and update give one object. Delete gives `{ "success": true }` when Sentry sends no body.
|
|
34
|
+
|
|
35
|
+
**Update.** Update sends the status and the assignee to Sentry. Use a status such as `resolved`, `unresolved`, or `ignored`. The node does not check the value.
|
|
36
|
+
|
|
37
|
+
**Delete.** Delete removes the issue in Sentry. The node does not ask for a confirmation.
|
|
38
|
+
|
|
39
|
+
**Errors and limits.** When Sentry returns an error, the node fails with the status code and the message of Sentry. For 403 and 404 errors, the message also says to check the IDs and the token. A redirect makes the request fail. The node refuses a pagination link to another host. The **Timeout** (`timeoutMs`) of a request is 30000 ms by default, and up to 300000 ms.
|
|
40
|
+
|
|
41
|
+
**Binary data.** The node does not read or write binary data.
|
|
42
|
+
|
|
43
|
+
## Credentials
|
|
44
|
+
|
|
45
|
+
- **Sentry auth token** (`sentry.token`):
|
|
46
|
+
- **Auth Token** (`authToken`): a Sentry auth token. This field is secret.
|
|
47
|
+
- **Server** (`server`): the base URL of Sentry. The default is `https://sentry.io`. Set it to the URL of your self-hosted Sentry.
|
|
48
|
+
|
|
49
|
+
The token needs the scopes for the operations that you use. The code does not list the scopes.
|
|
50
|
+
|
|
51
|
+
Setup steps:
|
|
52
|
+
|
|
53
|
+
1. In Sentry, create an auth token with the scopes that you need.
|
|
54
|
+
2. In zerodot, create a **Sentry auth token** credential.
|
|
55
|
+
3. Paste the token into **Auth Token**.
|
|
56
|
+
4. For a self-hosted Sentry, set **Server** to your base URL. For sentry.io, keep the default.
|
|
57
|
+
5. Save the credential. zerodot calls the organizations endpoint to test it.
|
|
58
|
+
|
|
59
|
+
## License
|
|
60
|
+
|
|
61
|
+
AGPL-3.0-only
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerodot/sentry",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Work with issues, projects, and organizations in Sentry. Use it to list, inspect, update, or resolve issues and explore projects.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
|
+
"homepage": "https://github.com/zerodot-io/nodes/tree/main/packages/sentry",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "git+https://github.com/zerodot-io/nodes.git",
|