Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/linear/actions/create-issue/create-issue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export default {
...utils.getAppProps(createIssue),
key: "linear-create-issue",
description: "Create an issue (OAuth). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api#creating-and-editing-issues)",
version: "0.4.6",
version: "0.4.7",
};

2 changes: 1 addition & 1 deletion components/linear/actions/get-issue/get-issue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export default {
...utils.getAppProps(getIssue),
key: "linear-get-issue",
description: "Get an issue by ID (OAuth). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api)",
version: "0.1.6",
version: "0.1.7",
};

2 changes: 1 addition & 1 deletion components/linear/actions/get-teams/get-teams.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
...getTeams,
key: "linear-get-teams",
description: "Get all the teams (OAuth). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api#creating-and-editing-issues)",
version: "0.2.6",
version: "0.2.7",
props: {
linearApp,
},
Expand Down
2 changes: 1 addition & 1 deletion components/linear/actions/search-issues/search-issues.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export default {
...utils.getAppProps(searchIssues),
key: "linear-search-issues",
description: "Search issues (OAuth). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api)",
version: "0.2.6",
version: "0.2.7",
};

2 changes: 1 addition & 1 deletion components/linear/actions/update-issue/update-issue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export default {
...utils.getAppProps(updateIssue),
key: "linear-update-issue",
description: "Update an issue (OAuth). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api#creating-and-editing-issues)",
version: "0.1.6",
version: "0.1.7",
};

6 changes: 5 additions & 1 deletion components/linear/linear.app.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import linearApp from "@pipedream/linear_app";
//import linearApp from "@pipedream/linear_app";
import linearApp from "../linear_app/linear_app.app.mjs";

// TODO: Will update above statement to import from @pipedream/linear_app
// after updates to linear_app are published

export default {
...linearApp,
Expand Down
2 changes: 1 addition & 1 deletion components/linear/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/linear",
"version": "0.5.8",
"version": "0.6.0",
"description": "Pipedream Linear Components",
"main": "linear.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export default {
...utils.getAppProps(commentCreatedInstant),
key: "linear-comment-created-instant",
description: "Emit new event when a new comment is created (OAuth). [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
version: "0.1.8",
version: "0.1.9",
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export default {
...utils.getAppProps(issueCreatedInstant),
key: "linear-issue-created-instant",
description: "Emit new event when a new issue is created (OAuth). [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
version: "0.3.8",
version: "0.3.9",
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export default {
...utils.getAppProps(issueUpdatedInstant),
key: "linear-issue-updated-instant",
description: "Emit new event when an issue is updated (OAuth). See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
version: "0.3.8",
version: "0.3.9",
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export default {
...utils.getAppProps(newIssueStatusUpdated),
key: "linear-new-issue-status-updated",
description: "Emit new event when the status of an issue is updated (OAuth). [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
version: "0.1.8",
version: "0.1.9",
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//import projectUpdatedInstant from
//"@pipedream/linear_app/sources/project-updated-instant/project-updated-instant.mjs";
import projectUpdatedInstant from "../../../linear_app/sources/project-updated-instant/project-updated-instant.mjs";

// TODO: Will update above statement to import from @pipedream/linear_app
// after updates to linear_app are published

import utils from "../../common/utils.mjs";

/* eslint-disable pipedream/required-properties-type */
/* eslint-disable pipedream/required-properties-name */
/* eslint-disable pipedream/required-properties-version */

export default {
...projectUpdatedInstant,
...utils.getAppProps(projectUpdatedInstant),
key: "linear-project-updated-instant",
description: "Emit new event when a project is updated (OAuth). [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
version: "0.0.1",
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "linear_app-create-issue",
name: "Create Issue",
description: "Create an issue (API Key). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api#creating-and-editing-issues)",
version: "0.4.5",
version: "0.4.6",
props: {
linearApp,
teamId: {
Expand Down
2 changes: 1 addition & 1 deletion components/linear_app/actions/get-issue/get-issue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "linear_app-get-issue",
name: "Get Issue",
description: "Get an issue by ID (API Key). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api)",
version: "0.1.5",
version: "0.1.6",
type: "action",
props: {
linearApp,
Expand Down
2 changes: 1 addition & 1 deletion components/linear_app/actions/get-teams/get-teams.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "linear_app-get-teams",
name: "Get Teams",
description: "Get all the teams (API Key). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api)",
version: "0.2.5",
version: "0.2.6",
type: "action",
props: {
linearApp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "Search Issues",
description: "Search issues (API Key). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api)",
type: "action",
version: "0.2.5",
version: "0.2.6",
props: {
linearApp,
query: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Update Issue",
description: "Update an issue (API Key). See the docs [here](https://developers.linear.app/docs/graphql/working-with-the-graphql-api#creating-and-editing-issues)",
type: "action",
version: "0.1.5",
version: "0.1.6",
props: {
linearApp,
teamId: {
Expand Down
35 changes: 35 additions & 0 deletions components/linear_app/common/fragments.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,39 @@ export default {
}
}
`,
project: `
fragment Project on Project {
id
name
creator {
id
}
lead {
id
}
status {
id
}
color
completedIssueCountHistory
completedScopeHistory
createdAt
description
inProgressScopeHistory
issueCountHistory
name
priority
progress
scope
scopeHistory
slackIssueComments
slackIssueStatuses
slackNewIssue
slugId
sortOrder
state
updatedAt
url
}
`,
};
26 changes: 22 additions & 4 deletions components/linear_app/common/queries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,31 @@ export default {
${fragments.comment}
`,
listProjects: `
query ListProjects {
projects {
query ListProjects(
$filter: ProjectFilter,
$before: String,
$after: String,
$first: Int,
$last: Int,
$orderBy: PaginationOrderBy
) {
projects(
filter: $filter,
before: $before,
after: $after,
first: $first,
last: $last,
orderBy: $orderBy
) {
pageInfo {
...PageInfo
}
nodes {
id
name
...Project
}
}
}
${fragments.project}
${fragments.pageInfo}
`,
};
2 changes: 1 addition & 1 deletion components/linear_app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/linear_app",
"version": "0.5.7",
"version": "0.6.0",
"description": "Pipedream Linear_app Components",
"main": "linear_app.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Created Comment (Instant)",
description: "Emit new event when a new comment is created. [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
type: "source",
version: "0.1.7",
version: "0.1.8",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Created Issue (Instant)",
description: "Emit new event when a new issue is created. [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
type: "source",
version: "0.3.7",
version: "0.3.8",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Updated Issue (Instant)",
description: "Emit new event when an issue is updated. [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
type: "source",
version: "0.3.7",
version: "0.3.8",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
name: "New Issue Status Updated (Instant)",
description: "Emit new event when the status of an issue is updated. [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
type: "source",
version: "0.1.7",
version: "0.1.8",
dedupe: "unique",
props: {
linearApp: common.props.linearApp,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import common from "../common/webhook.mjs";
import constants from "../../common/constants.mjs";
import linearApp from "../../linear_app.app.mjs";

export default {
...common,
key: "linear_app-project-updated-instant",
name: "New Updated Project (Instant)",
description: "Emit new event when a project is updated. [See the documentation](https://developers.linear.app/docs/graphql/webhooks)",
type: "source",
version: "0.0.1",
dedupe: "unique",
props: {
linearApp,
teamIds: {
label: "Team IDs",
type: "string[]",
propDefinition: [
linearApp,
"teamId",
],
reloadProps: true,
},
db: "$.service.db",
},
methods: {
...common.methods,
getResourceTypes() {
return [
constants.RESOURCE_TYPE.PROJECT,
];
},
getWebhookLabel() {
return "Project updated";
},
getResourcesFn() {
return this.linearApp.listProjects;
},
getResourcesFnArgs() {
return {
orderBy: "updatedAt",
filter: {
accessibleTeams: {
id: {
in: this.teamIds,
},
},
},
};
},
getResource(project) {
return this.linearApp.getProject(project.id);
},
getMetadata(resource) {
const {
name,
data,
updatedAt,
} = resource;
const ts = Date.parse(data?.updatedAt || updatedAt);
return {
id: `${resource.id}-${ts}`,
summary: `Project Updated: ${data?.name || name}`,
ts,
};
},
},
};
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading