From 207252f4d3301a8996d517f2d5e42cde49cabad3 Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Mon, 14 Jul 2025 15:40:11 -0700 Subject: [PATCH 1/2] fix: redirect links to the changelog to the current changelog --- slack_cli_hooks/hooks/__init__.py | 3 +-- slack_cli_hooks/hooks/check_update.py | 4 ++-- tests/slack_cli_hooks/hooks/test_check_update.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/slack_cli_hooks/hooks/__init__.py b/slack_cli_hooks/hooks/__init__.py index 2ec8be8..563ae41 100644 --- a/slack_cli_hooks/hooks/__init__.py +++ b/slack_cli_hooks/hooks/__init__.py @@ -1,2 +1 @@ -"""Slack CLI contract implementation for Bolt. -""" +"""Slack CLI contract implementation for Bolt.""" diff --git a/slack_cli_hooks/hooks/check_update.py b/slack_cli_hooks/hooks/check_update.py index 554b67d..ee2d1dd 100644 --- a/slack_cli_hooks/hooks/check_update.py +++ b/slack_cli_hooks/hooks/check_update.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import json -from http.client import HTTPResponse import sys +from http.client import HTTPResponse from types import ModuleType from typing import Any, Dict, List, Optional, TypedDict from urllib import request @@ -91,7 +91,7 @@ def build_release(dependency: ModuleType) -> Release: def build_output(dependencies: List[ModuleType] = DEPENDENCIES) -> OutputType: - output: OutputType = {"name": "Slack Bolt", "url": "https://api.slack.com/automation/changelog", "releases": []} + output: OutputType = {"name": "Slack Bolt", "url": "https://docs.slack.dev/changelog", "releases": []} errors = [] for dep in dependencies: diff --git a/tests/slack_cli_hooks/hooks/test_check_update.py b/tests/slack_cli_hooks/hooks/test_check_update.py index edcae65..f75aff8 100644 --- a/tests/slack_cli_hooks/hooks/test_check_update.py +++ b/tests/slack_cli_hooks/hooks/test_check_update.py @@ -145,6 +145,6 @@ def test_build_output(self): assert actual == { "name": "Slack Bolt", - "url": "https://api.slack.com/automation/changelog", + "url": "https://docs.slack.dev/changelog", "releases": [], } From f1647b9b2c7c6f2668f9993021af51edabbddb54 Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Mon, 14 Jul 2025 15:43:48 -0700 Subject: [PATCH 2/2] docs: replace links to the slack cli page with current tools documentation --- README.md | 4 ++-- slack_cli_hooks/__init__.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e294be7..b03fb66 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,12 @@

This library defines the contract between the -[Slack CLI](https://api.slack.com/automation/cli/install) and +[Slack CLI](https://tools.slack.dev/slack-cli/) and [Bolt for Python](https://slack.dev/bolt-python/). ## Overview -This library enables inter-process communication between the [Slack CLI](https://api.slack.com/automation/cli/install) and applications built with Bolt for Python. +This library enables inter-process communication between the [Slack CLI](https://tools.slack.dev/slack-cli/) and applications built with Bolt for Python. When used together, the CLI delegates various tasks to the Bolt application by invoking processes ("hooks") and then making use of the responses provided by each hook's `stdout`. diff --git a/slack_cli_hooks/__init__.py b/slack_cli_hooks/__init__.py index 7cca419..ed22943 100644 --- a/slack_cli_hooks/__init__.py +++ b/slack_cli_hooks/__init__.py @@ -1,7 +1,7 @@ """ -A Slack CLI hooks implementation in Python to build Bolt Slack apps leveraging the full power of the [Slack CLI](https://api.slack.com/automation/cli/install). Look at our [code examples](https://github.com/slackapi/python-slack-hooks/tree/main/examples) to learn how to build apps using the SLack CLI and Bolt. +A Slack CLI hooks implementation in Python to build Bolt Slack apps leveraging the full power of the [Slack CLI](https://tools.slack.dev/slack-cli/). Look at our [code examples](https://github.com/slackapi/python-slack-hooks/tree/main/examples) to learn how to build apps using the SLack CLI and Bolt. -* Slack CLI: https://api.slack.com/automation/cli/install +* Slack CLI: https://tools.slack.dev/slack-cli/ * Bolt Website: https://slack.dev/bolt-python/ * GitHub repository: https://github.com/slackapi/python-slack-hooks """ # noqa: E501