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

[chore] throw error if GITHUB_TOKEN env is not set #27677

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

VihasMakwana
Copy link
Contributor

Description:
running make gengithub or make update-codeowners with an incorrect token or without setting the token throws the same following error:
https://api.github.com/orgs/open-telemetry/members?per_page=50: 401 Bad credentials []

It makes sense to throw an error if the user has forgotten to set the GITHUB_TOKEN variable and it also distinguishes between the two cases (incorrect token and token not set)

@atoulme atoulme changed the title chore: throw error if GITHUB_TOKEN env is not set [chore] throw error if GITHUB_TOKEN env is not set Oct 15, 2023
@songy23 songy23 added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Oct 16, 2023
@codeboten codeboten merged commit 6263925 into open-telemetry:main Oct 16, 2023
88 of 89 checks passed
@github-actions github-actions bot added this to the next release milestone Oct 16, 2023
@VihasMakwana VihasMakwana deleted the chore-githubgen branch October 16, 2023 17:25
JaredTan95 pushed a commit to openinsight-proj/opentelemetry-collector-contrib that referenced this pull request Oct 18, 2023
)

running `make gengithub` or `make update-codeowners` with an incorrect
token or without setting the token throws the same following error:
```https://api.github.com/orgs/open-telemetry/members?per_page=50: 401 Bad credentials []```

It makes sense to throw an error if the user has forgotten to set the GITHUB_TOKEN variable and it also distinguishes between the two cases (incorrect token and token not set)
jmsnll pushed a commit to jmsnll/opentelemetry-collector-contrib that referenced this pull request Nov 12, 2023
)

running `make gengithub` or `make update-codeowners` with an incorrect
token or without setting the token throws the same following error:
```https://api.github.com/orgs/open-telemetry/members?per_page=50: 401 Bad credentials []```

It makes sense to throw an error if the user has forgotten to set the GITHUB_TOKEN variable and it also distinguishes between the two cases (incorrect token and token not set)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/githubgen Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants