Skip to content

Commit

Permalink
fix(repo_ref): fallback to author as maintainer
Browse files Browse the repository at this point in the history
if the maintainers tag is omitted
  • Loading branch information
DanConwayDev committed Jul 2, 2024
1 parent 58cc0a9 commit 68a7fe6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/repo_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ impl TryFrom<nostr::Event> for RepoRef {
.context("invalid repository event")?,
);
}
} else {
r.maintainers = vec![event.pubkey];
}

Ok(r)
Expand Down

0 comments on commit 68a7fe6

Please sign in to comment.