Show the custom apihost SLACK_API_URL hint only where Run on Slack apps need it
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with ResolveAPIHost in internal/auth/auth.go and the deploy flow in internal/pkg/platform/deploy.go; trace where the host is resolved and whether SLACK_API_URL is added. Check how env and run handle Run on Slack apps before deciding whether they also need the hint. Done when the hint appears only in relevant cases, includes the full command and /api/, and matches nearby debug or info output.
索引モデルが issue の本文から書いたものです。
説明
Description
The env set SLACK_API_URL <host>/api/ hint for a custom API host prints from ResolveAPIHost in internal/auth/auth.go, which runs for every command. The hint only matters for apps that use Run on Slack infrastructure, and it only matters when the CLI doesn't already set the value:
SetSelectedAuthsetsSLACK_API_URLfor local app processes, andrunpasses it to the local Deno runtime.deployininternal/pkg/platform/deploy.goaddsSLACK_API_URLto the Run on Slack environment, but only for hosts that matchIsAPIHostSlackDev.
So the hint shows on commands where there's nothing to do, like auth list, and the one case that needs it, a deploy to a custom host that isn't a dev host, gets the same generic line.
Proposal
- Placement: print the hint from
deploywhen the resolved host isn't production anddeploydoesn't addSLACK_API_URLitself. Decide whetherenvorrunfor a Run on Slack app also warrants it. - Wording: name the apps it applies to and show the full command with the correct value, for example: Apps using Run on Slack infrastructure should set
SLACK_API_URLto use a custom API host. Runslack env set SLACK_API_URL <host>/api/. - Keep it a debug or info message, matching the nearby
deployoutput.
Follows #893, which corrects the value in the current hint to include /api/.
- 主要言語
- Go
- スター
- 321
- フォーク
- 52
- 平均マージ
- 17時間 44分
- マージ済み PR(30日)
- 138
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
slackapi/slack-cli のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Installer aborts on an existing same-named `slack` binary; prefer install + warning over hard abortオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
slackapi/slack-cli#671 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Tests fail when using fish (and possibly other shells)対応中かも @Muhtasham が 193 日前に担当しました。 オープンbuild code health
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
slackapi/slack-cli#462 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
docs question
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
slackapi/slack-cli#343 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
server side issue
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
slackapi/slack-cli#342 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
slackapi/slack-cli の issue をすべて見る
似ている issue
-
Linux 主机 macOS 主机
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Lee-xeo/Claude-Cage#1455 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
slavakurilyak/awesome-ai-agents#1137 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
Make the HTTP server's keep-alive and headers timeouts configurable対応中かも @mattgodbolt が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
compiler-explorer/compiler-explorer#9902 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信