Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flag to gh api allowing disable HTTP redirect following #8055

Open
andyfeller opened this issue Sep 23, 2023 · 4 comments
Open

Add flag to gh api allowing disable HTTP redirect following #8055

andyfeller opened this issue Sep 23, 2023 · 4 comments
Labels
core This issue is not accepting PRs from outside contributors enhancement a request to improve CLI gh-api relating to the gh api command

Comments

@andyfeller
Copy link
Contributor

Describe the feature or problem you’d like to solve

Several GitHub API endpoints return URLs that GitHub CLI follows by default. This is normally okay for some, however there are use cases where users would like not to follow the redirect:

Similar to work done in #7106, it should be possible to add a flag that allows the user to disable redirect following; this is suggested to avoid breaking the default behavior up to now

Proposed solution

  • GitHub API endpoints that return URLs can be used without forcing the user to download or access the resource
  • Simplifies certain extensions

Additional context

Add any other context like screenshots or mockups are helpful, if applicable.

@andyfeller andyfeller added the enhancement a request to improve CLI label Sep 23, 2023
@cliAutomation cliAutomation added the needs-triage needs to be reviewed label Sep 23, 2023
@Valecia2023

This comment was marked as spam.

@Valecia2023

This comment was marked as spam.

@peterramaldes
Copy link
Contributor

As I understood, this already done by #7106, right?

@andyfeller
Copy link
Contributor Author

As I understood, this already done by #7106, right?

This was something selectively done in gh repo delete, yes.

For this issues, I was thinking for a way that gh api executions that result in a URL would simply return the url rather than Go http.Client going on to request the URL itself.

@andyfeller andyfeller added gh-api relating to the gh api command and removed needs-triage needs to be reviewed labels Oct 2, 2023
@samcoe samcoe added the core This issue is not accepting PRs from outside contributors label Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core This issue is not accepting PRs from outside contributors enhancement a request to improve CLI gh-api relating to the gh api command
Projects
None yet
Development

No branches or pull requests

5 participants