Skip to content

Commit 61aaaf0

Browse files
committed
feat: Allow reading and writing project overview content
1 parent 44c4eb9 commit 61aaaf0

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linear-zapier",
3-
"version": "4.8.1",
3+
"version": "4.8.3",
44
"description": "Linear's Zapier integration",
55
"main": "index.js",
66
"license": "MIT",

src/creates/createProject.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const createProjectRequest = async (z: ZObject, bundle: Bundle) => {
2121
{
2222
name: bundle.inputData.name,
2323
description: bundle.inputData.description || "",
24+
content: bundle.inputData.content || "",
2425
statusId: bundle.inputData.statusId,
2526
teamIds,
2627
memberIds: bundle.inputData.members || [],
@@ -33,6 +34,7 @@ const createProjectRequest = async (z: ZObject, bundle: Bundle) => {
3334
mutation ZapierProjectCreate(
3435
$name: String!,
3536
$description: String!,
37+
$content: String,
3638
$statusId: String,
3739
$teamIds: [String!]!,
3840
$memberIds: [String!],
@@ -42,6 +44,7 @@ const createProjectRequest = async (z: ZObject, bundle: Bundle) => {
4244
projectCreate(input: {
4345
name: $name,
4446
description: $description,
47+
content: $content,
4548
statusId: $statusId,
4649
teamIds: $teamIds,
4750
memberIds: $memberIds,
@@ -101,6 +104,13 @@ export const createProject = {
101104
key: "description",
102105
type: "text",
103106
},
107+
{
108+
required: false,
109+
label: "Content",
110+
helpText: "The content of the project overview",
111+
key: "content",
112+
type: "text",
113+
},
104114
{
105115
required: false,
106116
label: "Status",

src/samples/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"id": "dc1a7af0-059e-4586-b779-d36a6a1b8478",
33
"url": "https://linear.app/linear/project/test-bb9746674991",
44
"name": "Test",
5-
"description": "A test project",
5+
"description": "A short summary of the project",
6+
"content": "This is a detailed description of the project, including **markdown** formatting.",
67
"priority": 0,
78
"createdAt": "2024-10-04T22:38:43.396Z",
89
"updatedAt": "2024-10-04T22:39:43.396Z",

src/searches/project.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const getProject = async (z: ZObject, bundle: Bundle) => {
2424
url
2525
name
2626
description
27+
content
2728
priority
2829
createdAt
2930
updatedAt

src/triggers/newProject.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ interface ProjectCommon {
1515
url: string;
1616
name: string;
1717
description: string;
18+
content: string;
1819
priority: number;
1920
createdAt: Date;
2021
updatedAt: Date;
@@ -120,6 +121,7 @@ const getProjectList =
120121
url: true,
121122
name: true,
122123
description: true,
124+
content: true,
123125
priority: true,
124126
createdAt: true,
125127
updatedAt: true,

0 commit comments

Comments
 (0)