Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
refs: #148
This pull request introduces significant changes to the Slack API implementation, including updates to the file upload process and changes to the command line interface (CLI) and configuration files. The most important changes are the deprecation of the
files.upload
API, the introduction of new APIs for file uploads, and the replacement of thechannel
parameter withchannel-id
for file uploads.API Changes:
CHANGELOG.md
: Thefiles.upload
API is now deprecated and replaced withfiles.getUploadURLExternal
andfiles.completeUploadExternal
. Thechannel
parameter for file uploads has been replaced withchannel-id
. The-filetype
option has been modified and replaced with-snippet-type
.CLI Changes:
internal/cli/cli.go
: Thechannel
parameter in the CLI has been replaced withchannel-id
. The-filetype
option has been marked as compatible and replaced with-snippet-type
. TheuploadSnippet
function now requires achannel-id
andsnippet-type
instead of achannel
andfiletype
. [1] [2] [3] [4]Configuration Changes:
README.md
,internal/config/config.go
,internal/config/config_test.go
: The configuration files and tests have been updated to replace thechannel
parameter withchannel-id
. TheNOTIFY_SLACK_SNIPPET_CHANNEL
environment variable and thesnippet_channel
option in the TOML configuration file have been deprecated. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]Test Updates:
internal/cli/cli_test.go
andinternal/config/config_test.go
: The tests have been updated to reflect the changes in the CLI and configuration files. Thechannel
parameter has been replaced withchannel-id
and the-filetype
option has been replaced with-snippet-type
. [1] [2] [3] [4] [5] [6] F93271deL112R99)