@hesed/sentry 0.1.0 → 0.2.0
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
CHANGED
|
@@ -26,7 +26,7 @@ $ npm install -g @hesed/sentry
|
|
|
26
26
|
$ sentry COMMAND
|
|
27
27
|
running command...
|
|
28
28
|
$ sentry (--version)
|
|
29
|
-
@hesed/sentry/0.
|
|
29
|
+
@hesed/sentry/0.2.0 linux-x64 node-v22.22.0
|
|
30
30
|
$ sentry --help [COMMAND]
|
|
31
31
|
USAGE
|
|
32
32
|
$ sentry COMMAND
|
|
@@ -59,11 +59,11 @@ Add Sentry authentication
|
|
|
59
59
|
|
|
60
60
|
```
|
|
61
61
|
USAGE
|
|
62
|
-
$ sentry sentry auth add
|
|
62
|
+
$ sentry sentry auth add -o <value> -t <value> [--json] [-u <value>]
|
|
63
63
|
|
|
64
64
|
FLAGS
|
|
65
|
-
-o, --organization=<value> Sentry organization slug:
|
|
66
|
-
-t, --token=<value> Auth Token:
|
|
65
|
+
-o, --organization=<value> (required) Sentry organization slug:
|
|
66
|
+
-t, --token=<value> (required) Auth Token:
|
|
67
67
|
-u, --url=<value> [default: https://sentry.io/api/0] Sentry base URL:
|
|
68
68
|
|
|
69
69
|
GLOBAL FLAGS
|
|
@@ -76,7 +76,7 @@ EXAMPLES
|
|
|
76
76
|
$ sentry sentry auth add
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
_See code: [src/commands/sentry/auth/add.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
79
|
+
_See code: [src/commands/sentry/auth/add.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/auth/add.ts)_
|
|
80
80
|
|
|
81
81
|
## `sentry sentry auth test`
|
|
82
82
|
|
|
@@ -96,7 +96,7 @@ EXAMPLES
|
|
|
96
96
|
$ sentry sentry auth test
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
_See code: [src/commands/sentry/auth/test.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
99
|
+
_See code: [src/commands/sentry/auth/test.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/auth/test.ts)_
|
|
100
100
|
|
|
101
101
|
## `sentry sentry auth update`
|
|
102
102
|
|
|
@@ -104,12 +104,12 @@ Update existing authentication
|
|
|
104
104
|
|
|
105
105
|
```
|
|
106
106
|
USAGE
|
|
107
|
-
$ sentry sentry auth update
|
|
107
|
+
$ sentry sentry auth update -o <value> -t <value> -u <value> [--json]
|
|
108
108
|
|
|
109
109
|
FLAGS
|
|
110
|
-
-o, --organization=<value> Sentry organization slug
|
|
111
|
-
-t, --token=<value> Auth Token
|
|
112
|
-
-u, --url=<value> Sentry base URL
|
|
110
|
+
-o, --organization=<value> (required) Sentry organization slug
|
|
111
|
+
-t, --token=<value> (required) Auth Token
|
|
112
|
+
-u, --url=<value> (required) Sentry base URL
|
|
113
113
|
|
|
114
114
|
GLOBAL FLAGS
|
|
115
115
|
--json Format output as json.
|
|
@@ -121,7 +121,7 @@ EXAMPLES
|
|
|
121
121
|
$ sentry sentry auth update
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
-
_See code: [src/commands/sentry/auth/update.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
124
|
+
_See code: [src/commands/sentry/auth/update.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/auth/update.ts)_
|
|
125
125
|
|
|
126
126
|
## `sentry sentry event get PROJECTSLUG EVENTID`
|
|
127
127
|
|
|
@@ -145,7 +145,7 @@ EXAMPLES
|
|
|
145
145
|
$ sentry sentry event get my-project abc123def456
|
|
146
146
|
```
|
|
147
147
|
|
|
148
|
-
_See code: [src/commands/sentry/event/get.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
148
|
+
_See code: [src/commands/sentry/event/get.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/event/get.ts)_
|
|
149
149
|
|
|
150
150
|
## `sentry sentry event source-maps PROJECTSLUG EVENTID`
|
|
151
151
|
|
|
@@ -171,7 +171,7 @@ EXAMPLES
|
|
|
171
171
|
$ sentry sentry event source-maps my-project abc123def456
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
-
_See code: [src/commands/sentry/event/source-maps.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
174
|
+
_See code: [src/commands/sentry/event/source-maps.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/event/source-maps.ts)_
|
|
175
175
|
|
|
176
176
|
## `sentry sentry issue event ISSUEID EVENTID`
|
|
177
177
|
|
|
@@ -197,7 +197,7 @@ EXAMPLES
|
|
|
197
197
|
$ sentry sentry issue event 123456789 abc123def456
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
_See code: [src/commands/sentry/issue/event.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
200
|
+
_See code: [src/commands/sentry/issue/event.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/issue/event.ts)_
|
|
201
201
|
|
|
202
202
|
## `sentry sentry issue events ISSUEID`
|
|
203
203
|
|
|
@@ -227,7 +227,7 @@ EXAMPLES
|
|
|
227
227
|
$ sentry sentry issue events 123456789
|
|
228
228
|
```
|
|
229
229
|
|
|
230
|
-
_See code: [src/commands/sentry/issue/events.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
230
|
+
_See code: [src/commands/sentry/issue/events.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/issue/events.ts)_
|
|
231
231
|
|
|
232
232
|
## `sentry sentry issue get ISSUEID`
|
|
233
233
|
|
|
@@ -250,7 +250,7 @@ EXAMPLES
|
|
|
250
250
|
$ sentry sentry issue get 123456789
|
|
251
251
|
```
|
|
252
252
|
|
|
253
|
-
_See code: [src/commands/sentry/issue/get.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
253
|
+
_See code: [src/commands/sentry/issue/get.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/issue/get.ts)_
|
|
254
254
|
|
|
255
255
|
## `sentry sentry issue hashes ISSUEID`
|
|
256
256
|
|
|
@@ -274,7 +274,7 @@ EXAMPLES
|
|
|
274
274
|
$ sentry sentry issue hashes 123456789
|
|
275
275
|
```
|
|
276
276
|
|
|
277
|
-
_See code: [src/commands/sentry/issue/hashes.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
277
|
+
_See code: [src/commands/sentry/issue/hashes.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/issue/hashes.ts)_
|
|
278
278
|
|
|
279
279
|
## `sentry sentry issue tag ISSUEID TAGKEY`
|
|
280
280
|
|
|
@@ -299,7 +299,7 @@ EXAMPLES
|
|
|
299
299
|
$ sentry sentry issue tag 123456789 browser
|
|
300
300
|
```
|
|
301
301
|
|
|
302
|
-
_See code: [src/commands/sentry/issue/tag.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
302
|
+
_See code: [src/commands/sentry/issue/tag.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/issue/tag.ts)_
|
|
303
303
|
|
|
304
304
|
## `sentry sentry issue tag-values ISSUEID TAGKEY`
|
|
305
305
|
|
|
@@ -325,7 +325,7 @@ EXAMPLES
|
|
|
325
325
|
$ sentry sentry issue tag-values 123456789 browser
|
|
326
326
|
```
|
|
327
327
|
|
|
328
|
-
_See code: [src/commands/sentry/issue/tag-values.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
328
|
+
_See code: [src/commands/sentry/issue/tag-values.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/issue/tag-values.ts)_
|
|
329
329
|
|
|
330
330
|
## `sentry sentry issue update ISSUEID`
|
|
331
331
|
|
|
@@ -358,7 +358,7 @@ EXAMPLES
|
|
|
358
358
|
$ sentry sentry issue update 123456789 --assigned-to user@example.com
|
|
359
359
|
```
|
|
360
360
|
|
|
361
|
-
_See code: [src/commands/sentry/issue/update.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
361
|
+
_See code: [src/commands/sentry/issue/update.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/issue/update.ts)_
|
|
362
362
|
|
|
363
363
|
## `sentry sentry org issues`
|
|
364
364
|
|
|
@@ -390,7 +390,7 @@ EXAMPLES
|
|
|
390
390
|
$ sentry sentry org issues --query "is:unresolved" --limit 50
|
|
391
391
|
```
|
|
392
392
|
|
|
393
|
-
_See code: [src/commands/sentry/org/issues.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
393
|
+
_See code: [src/commands/sentry/org/issues.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/org/issues.ts)_
|
|
394
394
|
|
|
395
395
|
## `sentry sentry project events PROJECTSLUG`
|
|
396
396
|
|
|
@@ -419,7 +419,7 @@ EXAMPLES
|
|
|
419
419
|
$ sentry sentry project events my-project
|
|
420
420
|
```
|
|
421
421
|
|
|
422
|
-
_See code: [src/commands/sentry/project/events.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
422
|
+
_See code: [src/commands/sentry/project/events.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/project/events.ts)_
|
|
423
423
|
|
|
424
424
|
## `sentry sentry project issues PROJECTSLUG`
|
|
425
425
|
|
|
@@ -449,5 +449,5 @@ EXAMPLES
|
|
|
449
449
|
$ sentry sentry project issues my-project --query "is:unresolved"
|
|
450
450
|
```
|
|
451
451
|
|
|
452
|
-
_See code: [src/commands/sentry/project/issues.ts](https://github.com/hesedcasa/sentry/blob/v0.
|
|
452
|
+
_See code: [src/commands/sentry/project/issues.ts](https://github.com/hesedcasa/sentry/blob/v0.2.0/src/commands/sentry/project/issues.ts)_
|
|
453
453
|
<!-- commandsstop -->
|
|
@@ -23,7 +23,7 @@ export default class AuthAdd extends Command {
|
|
|
23
23
|
const { flags } = await this.parse(AuthAdd);
|
|
24
24
|
const authToken = flags.token ?? (await input({ message: 'Auth Token:', required: true }));
|
|
25
25
|
const organization = flags.organization ?? (await input({ message: 'Organization slug:', required: true }));
|
|
26
|
-
const host =
|
|
26
|
+
const host = await input({ default: 'https://sentry.io/api/0', message: 'Sentry base URL:', required: true });
|
|
27
27
|
const configPath = path.join(this.config.configDir, 'sentry-config.json');
|
|
28
28
|
const auth = {
|
|
29
29
|
auth: {
|
|
@@ -16,7 +16,11 @@ export default class IssueUpdate extends Command {
|
|
|
16
16
|
'has-seen': Flags.boolean({ allowNo: true, description: 'Mark issue as seen/unseen', required: false }),
|
|
17
17
|
'is-bookmarked': Flags.boolean({ allowNo: true, description: 'Bookmark or unbookmark issue', required: false }),
|
|
18
18
|
'is-public': Flags.boolean({ allowNo: true, description: 'Make issue public or private', required: false }),
|
|
19
|
-
'is-subscribed': Flags.boolean({
|
|
19
|
+
'is-subscribed': Flags.boolean({
|
|
20
|
+
allowNo: true,
|
|
21
|
+
description: 'Subscribe or unsubscribe from issue',
|
|
22
|
+
required: false,
|
|
23
|
+
}),
|
|
20
24
|
status: Flags.string({
|
|
21
25
|
description: 'Issue status (resolved, resolvedInNextRelease, unresolved, ignored)',
|
|
22
26
|
options: ['resolved', 'resolvedInNextRelease', 'unresolved', 'ignored'],
|
package/oclif.manifest.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"char": "o",
|
|
20
20
|
"description": "Sentry organization slug:",
|
|
21
21
|
"name": "organization",
|
|
22
|
-
"required":
|
|
22
|
+
"required": true,
|
|
23
23
|
"hasDynamicHelp": false,
|
|
24
24
|
"multiple": false,
|
|
25
25
|
"type": "option"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"char": "t",
|
|
29
29
|
"description": "Auth Token:",
|
|
30
30
|
"name": "token",
|
|
31
|
-
"required":
|
|
31
|
+
"required": true,
|
|
32
32
|
"hasDynamicHelp": false,
|
|
33
33
|
"multiple": false,
|
|
34
34
|
"type": "option"
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"char": "o",
|
|
114
114
|
"description": "Sentry organization slug",
|
|
115
115
|
"name": "organization",
|
|
116
|
-
"required":
|
|
116
|
+
"required": true,
|
|
117
117
|
"hasDynamicHelp": false,
|
|
118
118
|
"multiple": false,
|
|
119
119
|
"type": "option"
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"char": "t",
|
|
123
123
|
"description": "Auth Token",
|
|
124
124
|
"name": "token",
|
|
125
|
-
"required":
|
|
125
|
+
"required": true,
|
|
126
126
|
"hasDynamicHelp": false,
|
|
127
127
|
"multiple": false,
|
|
128
128
|
"type": "option"
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"char": "u",
|
|
132
132
|
"description": "Sentry base URL",
|
|
133
133
|
"name": "url",
|
|
134
|
-
"required":
|
|
134
|
+
"required": true,
|
|
135
135
|
"hasDynamicHelp": false,
|
|
136
136
|
"multiple": false,
|
|
137
137
|
"type": "option"
|
|
@@ -933,5 +933,5 @@
|
|
|
933
933
|
]
|
|
934
934
|
}
|
|
935
935
|
},
|
|
936
|
-
"version": "0.
|
|
936
|
+
"version": "0.2.0"
|
|
937
937
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hesed/sentry",
|
|
3
3
|
"description": "CLI for Sentry error tracking API interaction",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"author": "Hesed",
|
|
6
6
|
"bin": {
|
|
7
7
|
"sentry": "./bin/run.js"
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"oclif": "^4",
|
|
33
33
|
"prettier": "^3.8.1",
|
|
34
34
|
"shx": "^0.4.0",
|
|
35
|
+
"sinon": "^21.0.1",
|
|
35
36
|
"ts-node": "^10",
|
|
36
37
|
"ts-prune": "^0.10.3",
|
|
37
38
|
"typescript": "^5"
|