@ecubelabs/atlassian-mcp 1.2.0-next.2 → 1.2.0-next.4
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/dist/libs/jira-client.js +3 -30
- package/package.json +6 -1
package/dist/libs/jira-client.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { markdownToAdf } from "marklassian";
|
|
1
2
|
import { BaseApiService } from "./base-client.js";
|
|
2
3
|
import { atlassianConfig } from "../config.js";
|
|
3
4
|
export class JiraService extends BaseApiService {
|
|
@@ -173,21 +174,7 @@ export class JiraService extends BaseApiService {
|
|
|
173
174
|
}
|
|
174
175
|
// Optional fields
|
|
175
176
|
if (options.description) {
|
|
176
|
-
fields.description =
|
|
177
|
-
type: "doc",
|
|
178
|
-
version: 1,
|
|
179
|
-
content: [
|
|
180
|
-
{
|
|
181
|
-
type: "paragraph",
|
|
182
|
-
content: [
|
|
183
|
-
{
|
|
184
|
-
type: "text",
|
|
185
|
-
text: options.description,
|
|
186
|
-
},
|
|
187
|
-
],
|
|
188
|
-
},
|
|
189
|
-
],
|
|
190
|
-
};
|
|
177
|
+
fields.description = markdownToAdf(options.description);
|
|
191
178
|
}
|
|
192
179
|
if (options.assigneeAccountId) {
|
|
193
180
|
fields.assignee = { accountId: options.assigneeAccountId };
|
|
@@ -571,21 +558,7 @@ export class JiraService extends BaseApiService {
|
|
|
571
558
|
*/
|
|
572
559
|
async createComment(issueKey, options) {
|
|
573
560
|
const body = {
|
|
574
|
-
body:
|
|
575
|
-
type: "doc",
|
|
576
|
-
version: 1,
|
|
577
|
-
content: [
|
|
578
|
-
{
|
|
579
|
-
type: "paragraph",
|
|
580
|
-
content: [
|
|
581
|
-
{
|
|
582
|
-
type: "text",
|
|
583
|
-
text: options.body,
|
|
584
|
-
},
|
|
585
|
-
],
|
|
586
|
-
},
|
|
587
|
-
],
|
|
588
|
-
},
|
|
561
|
+
body: markdownToAdf(options.body),
|
|
589
562
|
};
|
|
590
563
|
if (options.visibility) {
|
|
591
564
|
body.visibility = options.visibility;
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecubelabs/atlassian-mcp",
|
|
3
|
-
"version": "1.2.0-next.
|
|
3
|
+
"version": "1.2.0-next.4",
|
|
4
4
|
"bin": "./dist/index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/Ecube-Labs/skynet.git"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
|
+
"lint": "eslint \"./src/**/*.ts\"",
|
|
9
10
|
"build": "tsc && node -e \"require('fs').chmodSync('dist/index.js', '755')\"",
|
|
10
11
|
"prepack": "yarn build"
|
|
11
12
|
},
|
|
@@ -22,12 +23,16 @@
|
|
|
22
23
|
"axios": "^1.7.9",
|
|
23
24
|
"axios-retry": "^4.5.0",
|
|
24
25
|
"dotenv": "^17.2.0",
|
|
26
|
+
"marklassian": "^1.1.0",
|
|
25
27
|
"p-limit": "^5.0.0",
|
|
26
28
|
"winston": "^3.17.0",
|
|
27
29
|
"zod": "^3.24.2"
|
|
28
30
|
},
|
|
29
31
|
"devDependencies": {
|
|
30
32
|
"@types/node": "^20.14.8",
|
|
33
|
+
"eslint": "^8.57.0",
|
|
34
|
+
"eslint-config-skynet": "^0.0.0",
|
|
35
|
+
"prettier": "^3.5.1",
|
|
31
36
|
"semantic-release": "^24.2.7",
|
|
32
37
|
"semantic-release-yarn": "^3.0.2",
|
|
33
38
|
"ts-node": "^10.9.2",
|