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

fix(delete-env): proper warning on 404 #159

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

mtfurlan
Copy link
Contributor

@mtfurlan mtfurlan commented Nov 2, 2023

When we get a 404 deleting an environment there should be a better
warning than "unexpected error encountered: HttpError: Not Found"
Document in the readme that the user for the PAT must have admin on the
repo, not just write or manage.

When we get a 404 deleting an environment there should be a better
warning than "unexpected error encountered: HttpError: Not Found"
Document in the readme that the user for the PAT must have admin on the
repo, not just write or manage.
@mmkoles
Copy link

mmkoles commented Nov 10, 2023

Thanks for the PR.
It helped me to resolve why my env deletions are failing 👍

Copy link

@mmkoles mmkoles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sguha00
Copy link

sguha00 commented Mar 4, 2024

@mtfurlan I've been strugging with getting delete-env to work. Does this work with fine-grained personal access tokens or just the classic tokens?

@mtfurlan
Copy link
Contributor Author

mtfurlan commented Mar 5, 2024

Yeah, this repo works with PATs, but as I have in the readme change, the PAT needs repo scope permissions, and the owner of the PAT needs to be admin on the repo.

@bobheadxi bobheadxi merged commit 648679e into bobheadxi:main Mar 26, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants