Show the custom apihost SLACK_API_URL hint only where Run on Slack apps need it
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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/.
- Ngôn ngữ chính
- Go
- Star
- 321
- Fork
- 52
- Merge trung bình
- 17 giờ 44 phút
- Pull request đã merge (30 ngày)
- 138
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của slackapi/slack-cli
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Installer aborts on an existing same-named `slack` binary; prefer install + warning over hard abortĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
slackapi/slack-cli#671 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Tests fail when using fish (and possibly other shells)Có thể đã có người làm @Muhtasham đã nhận 193 ngày trước. Đang mởbuild code health
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
slackapi/slack-cli#462 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs question
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
slackapi/slack-cli#343 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
server side issue
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
slackapi/slack-cli#342 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của slackapi/slack-cli
Issue tương tự
-
Linux 主机 macOS 主机
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Lee-xeo/Claude-Cage#1455 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Project submission: SpecWithCodeĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
slavakurilyak/awesome-ai-agents#1137 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
Make the HTTP server's keep-alive and headers timeouts configurableCó thể đã có người làm @mattgodbolt đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
compiler-explorer/compiler-explorer#9902 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày