Skip to content

Commit 9521749

Browse files
✨ Slack source: add support for optional private channels (#37332)
Signed-off-by: Irving Popovetsky <[email protected]> Co-authored-by: Marcos Marx <[email protected]>
1 parent 87fad4b commit 9521749

File tree

6 files changed

+163
-16
lines changed

6 files changed

+163
-16
lines changed

airbyte-integrations/connectors/source-slack/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: c2281cee-86f9-4a86-bb48-d23286b4c7bd
13-
dockerImageTag: 1.0.0
13+
dockerImageTag: 1.1.0
1414
dockerRepository: airbyte/source-slack
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/slack
1616
githubIssueLabel: source-slack

airbyte-integrations/connectors/source-slack/poetry.lock

+146-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

airbyte-integrations/connectors/source-slack/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "1.0.0"
6+
version = "1.1.0"
77
name = "source-slack"
88
description = "Source implementation for Slack."
99
authors = [ "Airbyte <[email protected]>",]

airbyte-integrations/connectors/source-slack/source_slack/manifest.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ definitions:
128128
requester:
129129
$ref: "#/definitions/requester"
130130
request_parameters:
131-
types: "public_channel"
131+
types: "{{ 'public_channel,private_channel' if config['include_private_channels'] == true else 'public_channel' }}"
132132
record_selector:
133133
$ref: "#/definitions/selector"
134134
record_filter:

airbyte-integrations/connectors/source-slack/source_slack/spec.json

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
"title": "Join all channels",
3030
"description": "Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. "
3131
},
32+
"include_private_channels": {
33+
"type": "boolean",
34+
"default": false,
35+
"title": "Include private channels",
36+
"description": "Whether to read information from private channels that the bot is already in. If false, only public channels will be read. If true, the bot must be manually added to private channels. "
37+
},
3238
"channel_filter": {
3339
"type": "array",
3440
"default": [],

0 commit comments

Comments
 (0)