feat: Add support for backing up repositories owned by the current user #116
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support for backing up repos owned by the current user, without needing to specify the current user's username. This solves the issue of being unable to backup private personal repos (given the way the GitHub API works when requesting
/users/${username}/repos
regardless of whether your username matches${username}
.In addition to this, I've included support for a new
properties.query
field which can be used to pass query parameters to the GitHub API, allowing you to select which repos get included in a query (for example, you can filter repos for the current user to only includeowner
, or include any combination of the defaultowner,collaborator,organization_member
.Oh, and I should mention that we now handle cases where you don't specify an
OTEL_EXPORTER_OTLP_ENDPOINT
without reporting an error - and correctly fall back to logging to the terminal.