Show the custom apihost SLACK_API_URL hint only where Run on Slack apps need it
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
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 分鐘
- 30 天內合併 PR
- 138
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 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 一週以上 新手友好度 25/100
slackapi/slack-cli#343 · 1 則留言 · 1 個 reaction ·
維護者通常 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 天內回覆