Skip to content

Commit

Permalink
Update docs (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethWussmann authored Mar 7, 2024
1 parent 0162204 commit 6a23343
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
14 changes: 6 additions & 8 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,12 @@ jobs:
githubSource:
# The user from which we want to archive:
user: ghost
# We wouldn't need to configure any filters, because by default we only have access to their public repos.
# This below would be the default config anyways:
#filter:
# # Only repos they own
# type: owner
# # Only archive public repos
# visibility:
# - public
filter:
# Only repos they own
type: owner
# Only archive public repos
visibility:
- public
```
## GitHub Access Tokens and Rate Limiting
Expand Down
4 changes: 0 additions & 4 deletions src/api/github/githubApiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ export class GitHubApiService {
page,
});

this.logger.info("GH REQUEST", {
url: `https://api.github.com/${this.user ? `users/${this.user}/repos` : "/user/repos"}?${new URLSearchParams(query).toString()}`,
});

const response = await fetch(
`https://api.github.com${this.user ? `/users/${this.user}/repos` : "/user/repos"}?${new URLSearchParams(query).toString()}`,
{
Expand Down
2 changes: 1 addition & 1 deletion src/jobs/reposJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class ReposJob extends Job<ReposJobDefinition> {
this.logger.info("Archiving user repos");
const userRepos = await this.githubApiService.getUserRepos(
this.definition.githubSource.filter?.visibility,
this.definition.githubSource.filter?.type,
this.definition.githubSource.filter?.type ?? "owner",
);

if (userRepos.length === 0) {
Expand Down

0 comments on commit 6a23343

Please sign in to comment.