Show the custom apihost SLACK_API_URL hint only where Run on Slack apps need it
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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/.
- Lingua principale
- Go
- Stelle
- 321
- Fork
- 52
- Merge medio
- 17h 44m
- PR unite (30g)
- 138
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di slackapi/slack-cli
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Installer aborts on an existing same-named `slack` binary; prefer install + warning over hard abortApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
slackapi/slack-cli#671 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Tests fail when using fish (and possibly other shells)Forse già presa @Muhtasham l’ha presa 193 giorni fa. Apertabuild code health
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
slackapi/slack-cli#462 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
docs question
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
slackapi/slack-cli#343 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
server side issue
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
slackapi/slack-cli#342 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di slackapi/slack-cli
Issue simili
-
Linux 主机 macOS 主机
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Lee-xeo/Claude-Cage#1455 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
slavakurilyak/awesome-ai-agents#1137 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
Make the HTTP server's keep-alive and headers timeouts configurableForse già presa @mattgodbolt l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
compiler-explorer/compiler-explorer#9902 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno