Show the custom apihost SLACK_API_URL hint only where Run on Slack apps need it
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 55/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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/.
- Langage dominant
- Go
- Étoiles
- 321
- Forks
- 52
- Merge moyen
- 17 h 44 min
- PR mergées (30 j)
- 138
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de slackapi/slack-cli
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
Installer aborts on an existing same-named `slack` binary; prefer install + warning over hard abortOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
slackapi/slack-cli#671 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Tests fail when using fish (and possibly other shells)Peut-être pris @Muhtasham l’a pris il y a 193 jours. Ouvertebuild code health
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
slackapi/slack-cli#462 · 4 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
docs question
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
slackapi/slack-cli#343 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
server side issue
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
slackapi/slack-cli#342 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de slackapi/slack-cli
Issues similaires
-
Linux 主机 macOS 主机
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Lee-xeo/Claude-Cage#1455 ·
Les mainteneurs répondent en général sous 1 jour
-
Project submission: SpecWithCodeOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
slavakurilyak/awesome-ai-agents#1137 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
-
Make the HTTP server's keep-alive and headers timeouts configurablePeut-être pris @mattgodbolt l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
compiler-explorer/compiler-explorer#9902 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour