You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/28 14:02:31 UTC
[GitHub] [airflow] subkanthi commented on a change in pull request #17247: Fixed SlackAPIFileOperator to upload file and file content
subkanthi commented on a change in pull request #17247:
URL: https://github.com/apache/airflow/pull/17247#discussion_r678331597
##########
File path: airflow/providers/slack/operators/slack.py
##########
@@ -161,15 +161,25 @@ class SlackAPIFileOperator(SlackAPIOperator):
.. code-block:: python
+ # Send file with filename and filetype
slack = SlackAPIFileOperator(
- task_id="slack_file_upload",
- dag=dag,
- slack_conn_id="slack",
- channel="#general",
- initial_comment="Hello World!",
- filename="hello_world.csv",
- filetype="csv",
- content="hello,world,csv,file",
+ task_id="slack_file_upload",
Review comment:
@uranusjr Thats the sample code for the docs, I can fix it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org