Skip to content

Fix "arduino-library" Topic Detection #179

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

Closed

Conversation

nkaaf
Copy link
Contributor

@nkaaf nkaaf commented Feb 5, 2024

Fixes #178
The bug was probably introduced in PR #171

This PR fixes the detection if the topic "arduino-library" is present. This fixed code creates a temporary file where the Github API response is written. If the status code is 200 (ok), the repository is public and the temporary file contains the entire response. If the repository does not exist or is private, the status code is 404 (not found). In this first case, the content of the temporary file is parsed to check whether the arduino-library topic exists.

@nkaaf
Copy link
Contributor Author

nkaaf commented Feb 6, 2024

Close due to discussion in #178.

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.

Fault Detection of 'arduino-library' topic due to bash script error
1 participant