Skip to content

retrieve default branch via regex#72

Merged
makermelissa merged 1 commit into
adafruit:masterfrom
askpatrickw:fix-71
Feb 5, 2021
Merged

retrieve default branch via regex#72
makermelissa merged 1 commit into
adafruit:masterfrom
askpatrickw:fix-71

Conversation

@askpatrickw
Copy link
Copy Markdown
Contributor

@askpatrickw askpatrickw commented Jan 27, 2021

  • Fixes Handle default branch name properly #71
  • Moved skipping non-mcu libraries to logging, output is cleaner now
  • Moved some logic into its own function get_requirements() which makes get_dependencies() a little cleaner too

I pretty quickly hit rate limiting using the GitHub API, so I am using a regex approach similar to what's described in the issue.

https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting
"For unauthenticated requests, the rate limit allows for up to 60 requests per hour. Unauthenticated requests are associated with the originating IP address, and not the user making requests."

@askpatrickw askpatrickw requested review from a team and makermelissa January 27, 2021 10:45
@askpatrickw
Copy link
Copy Markdown
Contributor Author

@makermelissa could you have a look at this PR for me? ty!

@makermelissa
Copy link
Copy Markdown
Collaborator

I'll take a look at it tomorrow. :)

Copy link
Copy Markdown
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

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

Looks great. Tested with requests and fakerequests.

@makermelissa makermelissa merged commit 23864f2 into adafruit:master Feb 5, 2021
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.

Handle default branch name properly

2 participants