Skip to content

Commit

Permalink
Made the incoming funding link data from GitHub optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
daveverwer committed Nov 14, 2023
1 parent b8928f7 commit 2872a98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/App/Commands/Ingest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func updateRepository(on database: Database,

repository.defaultBranch = repoMetadata.defaultBranch
repository.forks = repoMetadata.forkCount
repository.fundingLinks = repoMetadata.fundingLinks
repository.fundingLinks = repoMetadata.fundingLinks ?? []
repository.homepageUrl = repoMetadata.homepageUrl?.trimmed
repository.isArchived = repoMetadata.isArchived
repository.isInOrganization = repoMetadata.isInOrganization
Expand Down
2 changes: 1 addition & 1 deletion Sources/App/Core/Github.swift
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ extension Github {
var defaultBranchRef: DefaultBranchRef?
var description: String?
var forkCount: Int
var fundingLinks: [FundingLink]
var fundingLinks: [FundingLink]?
var homepageUrl: String?
var isArchived: Bool
// periphery:ignore
Expand Down

0 comments on commit 2872a98

Please sign in to comment.