Skip to content

Commit 4e46cbb

Browse files
Updating sent via pipedream link to handle connect case (#15621)
* Need to rev all other actions * Action versions * Update slack.app.mjs
1 parent bc10659 commit 4e46cbb

File tree

45 files changed

+66
-66
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+66
-66
lines changed

components/slack/actions/add-emoji-reaction/add-emoji-reaction.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-add-emoji-reaction",
55
name: "Add Emoji Reaction",
66
description: "Add an emoji reaction to a message. [See the documentation](https://api.slack.com/methods/reactions.add)",
7-
version: "0.0.12",
7+
version: "0.0.13",
88
type: "action",
99
props: {
1010
slack,

components/slack/actions/archive-channel/archive-channel.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "slack-archive-channel",
66
name: "Archive Channel",
77
description: "Archive a channel. [See the documentation](https://api.slack.com/methods/conversations.archive)",
8-
version: "0.0.20",
8+
version: "0.0.21",
99
type: "action",
1010
props: {
1111
slack,

components/slack/actions/common/send-message.mjs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export default {
1919
type: "boolean",
2020
optional: true,
2121
default: true,
22-
label: "Include link to workflow",
23-
description: "Defaults to `true`, includes a link to the workflow at the end of your Slack message.",
22+
label: "Include link to Pipedream",
23+
description: "Defaults to `true`, includes a link to Pipedream at the end of your Slack message.",
2424
},
2525
customizeBotSettings: {
2626
type: "boolean",
@@ -139,15 +139,21 @@ export default {
139139
methods: {
140140
_makeSentViaPipedreamBlock() {
141141
const workflowId = process.env.PIPEDREAM_WORKFLOW_ID;
142-
// The link is a URL without a protocol to prevent link unfurling. See
143-
// https://api.slack.com/reference/messaging/link-unfurling#classic_unfurl
144-
const link = `https://pipedream.com/@/${workflowId}?o=a&a=slack`;
142+
const baseLink = "https://pipedream.com";
143+
const linkText = !workflowId
144+
? "Pipedream Connect"
145+
: "Pipedream";
146+
147+
const link = !workflowId
148+
? `${baseLink}/connect`
149+
: `${baseLink}/@/${workflowId}?o=a&a=slack`;
150+
145151
return {
146152
"type": "context",
147153
"elements": [
148154
{
149155
"type": "mrkdwn",
150-
"text": `Sent via <${link}|Pipedream>`,
156+
"text": `Sent via <${link}|${linkText}>`,
151157
},
152158
],
153159
};

components/slack/actions/create-channel/create-channel.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-create-channel",
55
name: "Create a Channel",
66
description: "Create a new channel. [See the documentation](https://api.slack.com/methods/conversations.create)",
7-
version: "0.0.21",
7+
version: "0.0.22",
88
type: "action",
99
props: {
1010
slack,

components/slack/actions/create-reminder/create-reminder.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-create-reminder",
55
name: "Create Reminder",
66
description: "Create a reminder. [See the documentation](https://api.slack.com/methods/reminders.add)",
7-
version: "0.0.21",
7+
version: "0.0.22",
88
type: "action",
99
props: {
1010
slack,

components/slack/actions/delete-file/delete-file.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-delete-file",
55
name: "Delete File",
66
description: "Delete a file. [See the documentation](https://api.slack.com/methods/files.delete)",
7-
version: "0.0.20",
7+
version: "0.0.21",
88
type: "action",
99
props: {
1010
slack,

components/slack/actions/delete-message/delete-message.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-delete-message",
55
name: "Delete Message",
66
description: "Delete a message. [See the documentation](https://api.slack.com/methods/chat.delete)",
7-
version: "0.0.20",
7+
version: "0.0.21",
88
type: "action",
99
props: {
1010
slack,

components/slack/actions/find-message/find-message.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-find-message",
55
name: "Find Message",
66
description: "Find a Slack message. [See the documentation](https://api.slack.com/methods/search.messages)",
7-
version: "0.0.20",
7+
version: "0.0.21",
88
type: "action",
99
props: {
1010
slack,

components/slack/actions/find-user-by-email/find-user-by-email.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-find-user-by-email",
55
name: "Find User by Email",
66
description: "Find a user by matching against their email. [See the documentation](https://api.slack.com/methods/users.lookupByEmail)",
7-
version: "0.0.20",
7+
version: "0.0.21",
88
type: "action",
99
props: {
1010
slack,

components/slack/actions/get-file/get-file.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "slack-get-file",
55
name: "Get File",
66
description: "Return information about a file. [See the documentation](https://api.slack.com/methods/files.info)",
7-
version: "0.0.20",
7+
version: "0.0.21",
88
type: "action",
99
props: {
1010
slack,

0 commit comments

Comments
 (0)